Unrecognized function or variable 'extractDe​scrAppeara​nce'. error

10 visualizaciones (últimos 30 días)
ba nnvxbdf
ba nnvxbdf el 30 de Oct. de 2022
Editada: Jan el 30 de Oct. de 2022
Hi, my code works well but it doesnt show figure 3 and 4 and i get this error
Unrecognized function or variable 'extractDescrAppearance'. error
at line 28 - colour_h1 = extractDescrAppearance(img1,key_point1);
here where i think the error starts
colour_h1 = extractDescrAppearance(img1,key_point1);
gradient_h1 = extractDescrGradient(img1,key_point1);
colour_h2 = extractDescrAppearance(img2,key_point2);
gradient_h2 = extractDescrGradient(img2,key_point2);
colour_h2(1:30,:)=randn(size(colour_h2(1:30,:)));
D = pdist2(colour_h1,colour_h2); figure(5); clf; imagesc(D);
matchlist = matchDescrs(colour_h1,colour_h2);
figure(3);imshow(img_raw1); hold on;
figure(4);imshow(img_raw2); hold on;
clist='rgbcmykrgbcmykrgbcmyk';
k=1;i=1;
while(i<numel(matchlist)&&k<21)
if(matchlist(i)<1), i=i+1; continue; end
figure(3); plot(key_point1(i,1),key_point1(matchlist(i),2),[clist(k),'*']);
figure(4); plot(key_point2(i,1),key_point2(matchlist(i),2),[clist(k),'*']);
k=k+1;i=i+1;
end

Respuestas (1)

Jan
Jan el 30 de Oct. de 2022
Editada: Jan el 30 de Oct. de 2022
Neither extractDescrAppearance nor extractDescrGradient is a known Matlab command. Searching in the net does not find a match. So it is your turn to find out, which functions are meant. Did you write them by your own? Are they stored in a folder belonging to the Matlan path?
Note:
k=1;i=1;
while ...
k=k+1; i=i+1;
end
k and i have the same value. What is the reason to use two variables with the same value?

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by