フィルターのクリア

I have using following code for SURF feature extraction and storing. but i get error every time...plz help to fix it.thank you.

1 回表示 (過去 30 日間)
srcFiles = dir('C:\Users\LENOVO\Desktop\Genuine\1\*.png'); % the folder in which ur images exists
Features = cell(length(srcFiles),1) ;
Valid_points =cell(length(srcFiles),1) ;
for i = 1 : length(srcFiles)
filename = strcat('C:\Users\LENOVO\Desktop\Genuine\1\',srcFiles(i).name);
I1 = rgb2gray(imread(filename));
points1 = detectSURFFeatures(I1);
[features1, valid_points1] = extractFeatures(I1, points1);
Features{i} = features1 ;
Valid_points{i} = valid_points1 ;
figure; imshow(I1);hold on;
plot(valid_points1{i}.selectStrongest(10),'showOrientation',true);
end
Features;
Valid_points;
  3 件のコメント
KSSV
KSSV 2019 年 2 月 8 日
What is Feature_storing?
Regina N
Regina N 2019 年 2 月 8 日
Feature_Storing is the name of function that i have created.

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

採用された回答

Walter Roberson
Walter Roberson 2019 年 2 月 8 日
remove the {i} in the plot or else change valid_points1 to Valid_points
  2 件のコメント
Regina N
Regina N 2019 年 2 月 8 日
Thank you for answering but its not working again show the same error as follow:
Error using Feature_storing (line 13)
Cell contents reference from a non-cell array object.
Walter Roberson
Walter Roberson 2019 年 2 月 8 日
What is your code for line 13 now?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Object Properties についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by