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

    %% Detect MSER Features in an Image  

%% 
% Load an image. 
I = imread('cameraman.tif');  

%% 
% Detect and store regions. 
regions = detectMSERFeatures(I);   

%% 
% Display the centroids and axes of detected regions. 

imshow(I); hold on;
plot(regions);