Brute-force matcher for features matching.
m = immatch_BruteForce(des1,des2,normType);
First descriptor
Second descriptor
One of NORM_L1, NORM_L2, NORM_HAMMING, NORM_HAMMING2. L1 and L2 norms are preferable choices for SIFT and SURF descriptors, NORM_HAMMING should be used with ORB, BRISK and BRIEF, NORM_HAMMING2 should be used with ORB when WTA_K==3 or 4 (see ORB::ORB constructor description).
Mathching matrix
This function used to Brute-force matcher to match the given descriptors.
// Read the image and rotate it by 45 degrees S = imread(fullpath(getIPCVpath() + "/images/balloons_gray.png")); S2 = imrotate(S,45); // Use the ORB to detect features f1 = imdetect_ORB(S) f2 = imdetect_ORB(S2) // Extract the descriptor d1 = imextract_DescriptorORB(S,f1); d2 = imextract_DescriptorORB(S2,f2); // Feature matching m = immatch_BruteForce(d1,d2,4) // Find the 10 best matches [fout1,fout2,mout] = imbestmatches(f1,f2,m,10); // Draw the matches SS = imdrawmatches(S,S2,fout1,fout2,mout); // Show the comparison imshow(SS); | ![]() | ![]() |
1. OpenCV 2.4 Online Documentation