www.gusucode.com > vision 源码程序 matlab案例代码 > vision/PlotMSERRegionsExample.m

    %% Plot MSER Regions  
% Extract MSER features and plot the regions.   

%% 
% Read image and extract MSER features. 
% 
I = imread('cameraman.tif');
regions = detectMSERFeatures(I);
imshow(I); hold on;
plot(regions);  

%% 
% Plot MSER Regions. 
% 
figure; imshow(I); hold on;
plot(regions,'showPixelList',true,'showEllipses',false);
hold off;