how to get SURF feature vector values of multiple images

2 ビュー (過去 30 日間)
KDR
KDR 2016 年 11 月 14 日
コメント済み: Walter Roberson 2017 年 7 月 27 日
Hello, i have extracted surf features from multiple images using the following code.But only the last image feature value is stored in the feature variable used in the code. how to get all the feature vector values..
Thank you... Code:
srcFiles = dir('F:\MTECH\MATLAB\Begin\photos\*.jpg');
for i = 1 : length(srcFiles)
filename = strcat('F:\MTECH\MATLAB\Begin\photos\',srcFiles(i).name);
I1 = rgb2gray(imread(filename));
points1 = detectSURFFeatures(I1);
[features2, valid_points1] = extractFeatures(I1, points1);
figure; imshow(I1); hold on;
plot(valid_points1.selectStrongest(10),'showOrientation',true);
columnvector = rand(1,64);
finalFeature = sum(columnvector(:));
sprintf('%s %d','finalFeature = ' , finalFeature)
end

採用された回答

Walter Roberson
Walter Roberson 2016 年 11 月 14 日
finalFeature(i) = sum(columnvector(:));
sprintf('%s %d','finalFeature = ' , finalFeature(i))
  7 件のコメント
Siti Suhaila
Siti Suhaila 2017 年 7 月 27 日
I'm also a bit confused with rand(). It shows that my final features resulted differently every time we run the code.
Walter Roberson
Walter Roberson 2017 年 7 月 27 日
I think the line with the rand() is "dummy code", put in to allow the framework to be developed but intended for replacement later.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by