10.特征匹配
特征匹配器 BFMatcher matcher = BFMatcher.create(NORM_L2, false); MatOfKeyPoint keyPoints2 = new MatOfKeyPoint(); featureDetector.detectAndCompute(img2, new MatOfRect(), keyPoints2, descriptors2); List mlist = new ArrayList<>();*/ 匹配特征 Mat matches = matcher.match(keyPoints1, descriptors2, mlist); 绘制匹配点 Mat imgOut = new Mat(); Imgproc.drawMatches(imgOut, keypoints1, keypoints2, matches, new Scalar(0, 0, 255));