finding coordinates of matching points
Afficher commentaires plus anciens
function num=match(im1,im2)
[im1,des1,loc1]=sift('img13.pgm');
[im2,des2,loc2]=sift('img14.pgm');
distRatio=0.65;
des2t =des2';
for i = 1 : size(des1,1)
dotprods = des1(i,:) * des2t;
[vals,indx] = sort(acos(dotprods));
if (vals(1) < distRatio * vals(2))
match(i) = indx(1);
else
match(i) = 0;
end
end
im3 = appendimages(im1,im2);
figure('Position', [100 100 size(im3,2) size(im3,1)]);
colormap('gray');
cols1 = size(im1,2);
imshow(im3);
for i = 1: size(des1,1)
if (match(i) > 0)
line([loc1(i,2) loc2(match(i),2)+cols1], ...
[loc1(i,1) loc2(match(i),1)], 'Color', 'c');
end
end
hold off
num = sum(match >0);
fprintf('Found %d matches.\n', num);
I WANT TO FIND THE COORDINATES OF MATCHING POINTS OF TWO IMAGES.I M GETTING THE MATCHING POINTS IN IMAGE.above is my code.kindly some one help me to find the coordinates of the matching points
Réponses (0)
Catégories
En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!