Effacer les filtres
Effacer les filtres

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 vue (au cours des 30 derniers jours)
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 commentaires
Regina N
Regina N le 8 Fév 2019
Feature_Storing is the name of function that i have created.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 8 Fév 2019
remove the {i} in the plot or else change valid_points1 to Valid_points
  2 commentaires
Regina N
Regina N le 8 Fév 2019
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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Object Properties dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by