Borrar filtros
Borrar filtros

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 visualización (últimos 30 días)
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 comentarios

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 8 de Feb. de 2019
remove the {i} in the plot or else change valid_points1 to Valid_points
  2 comentarios
Regina N
Regina N el 8 de Feb. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Object Properties en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by