MATLAB Answers

Is the following code is sufficient for feature detection, extraction of multiple images and storing them into single cell for classification?

조회 수: 2(최근 30일)
Regina N
Regina N 9 Feb 2019
편집: Regina N 9 Feb 2019
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); hold on;
[features1, valid_points] = extractFeatures(I1, points1);
Features{i} = features1 ;
Valid_points{i} = valid_points ;
figure; imshow(I1);
I got a blank graph:
blank graph.png
And i got following error using above code
Error using Feature_storing (line 13)
Cell contents reference from a non-cell array object.

  댓글 수: 0

로그인 to comment.

채택된 답변

YT 9 Feb 2019
Look closely what you're exactly trying to plot
Valid_points{i} = valid_points;
figure; imshow(I1);
Giving variables the same name (except first letter uppercase) is not only confusing for you but also for others that might ever have to read your code. You probably either want to

  댓글 수: 1

Regina N
Regina N 9 Feb 2019
ohk im correcting you tell me, is this code ok to store the extracted features.
help me to solve the error which is occured.

로그인 to comment.

추가 답변(0개)

이 질문에 답변하려면 로그인을(를) 수행하십시오.

Translated by