Keep SURF features from many images
Show older comments
Hello everybody,
Currently I wanted to extract SURF feature, let say from bunch of images stored in one folder. I run the following code, I managed to get the feature from the last image only. How can we keep the features for all images we extracted?
Thanks.
srcFiles = dir('D:\Phd Study\Matlab Food\fooddemo\try\*.jpg'); % the folder in which ur images exists
for i = 1 : length(srcFiles)
filename = strcat('D:\Phd Study\Matlab Food\fooddemo\try\',srcFiles(i).name);
I = imread(filename);
a=rgb2gray(I);
points = detectSURFFeatures(a);
[features, valid_points] = extractFeatures(a, points);
end
figure; imshow(I); hold on;
plot(valid_points.selectStrongest(10),'showOrientation',true);
Accepted Answer
More Answers (0)
Categories
Find more on Image Category Classification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!