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

    %% Display MSER Feature Regions from the MSERRegions Object  
% Detect and display the first 10 regions contained in the MSERRegions object.   

%% 
% Detect MSER features. 

I = imread('cameraman.tif');
regions = detectMSERFeatures(I);  

%% 
% Display the first 10 regions in the MSERRegions object. 

imshow(I); hold on;
plot(regions(1:10),'showPixelList', true);