Clear Filters
Clear Filters

finding coordinates of matching points

1 view (last 30 days)
Preetam Sundaray
Preetam Sundaray on 13 Jun 2012
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

Answers (0)

Categories

Find more on Fractals in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!