I’m new to MATLAB. I’m using VL_Feat library. I’m trying to construct a code that can calculate number of matching points between two images. Up to now I know how to match two images. What I want to get is number of matching points.
As an example “X key points found in image 1” “Y key points found in image 2” “z matches”
Can anyone help me?
im1Path = fullfile(vl_root, 'data', 'roofs1.jpg') ;
im2Path = fullfile(vl_root, 'data', 'roofs2.jpg') ;
im1 = imread(im1Path) ;
im2 = imread(im2Path) ;
[f1,d1] = vl_sift(im2single(rgb2gray(im1))) ;
[f2,d2] = vl_sift(im2single(rgb2gray(im2))) ;
[matches, scores] = vl_ubcmatch(d1,d2) ;
fprintf(' %d a counts.\n', vl_ubcmatch(d1,d2));