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

    %% Extract SURF Features from an Image

% Copyright 2015 The MathWorks, Inc.


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

%%   Find and extract features.
    points = detectSURFFeatures(I);
    [features, valid_points] = extractFeatures(I, points);
    
%%   Display and plot ten strongest SURF features. 
    figure; imshow(I); hold on;
    plot(valid_points.selectStrongest(10),'showOrientation',true);