% If your image is a color image, you should first convert it using
% the rgb2gray function
I = imread('cameraman.tif');
harrisFeatures = detectHarrisFeatures(I);
surfFeatures = detectSURFFeatures(I);
[features1, valid_points1] = extractFeatures(I,harrisFeatures);
[features2, valid_points2] = extractFeatures(I,surfFeatures);
subplot(1,2,1)
imshow(I); hold on
plot(valid_points1);
subplot(1,2,2)
imshow(I); hold on
plot(valid_points2.selectStrongest(50),'showOrientation',true);
1Local feature detection% If your image is a color image, you should first convert it using % the rgb2gray functionI = imread('cameraman.tif');harrisFeatures = detectHarrisFeatures(I);surfFeatures = detectSURFFeatures(I);[features1, valid_points1.