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

    %% Extract MSER Features from an Image

% Copyright 2015 The MathWorks, Inc.


%%   Read image.
    I = imread('cameraman.tif');
    
%%   Find features using MSER with SURF feature descriptor. 
    regions = detectMSERFeatures(I);
    [features, valid_points] = extractFeatures(I,regions,'Upright',true);
    
%%   Display SURF features corresponding to the MSER ellipse centers.
    figure; imshow(I); hold on;
    plot(valid_points,'showOrientation',true);