得分为两个向量的haris MATLAB

时间:2017-07-29 21:40:09

标签: matlab matching feature-extraction

我有两个从两个掌纹图像中提取的匹配特征向量:

I1 = imread('PolyU_001_F_08.bmp');
I2 =  imread('PolyU_001_F_01.bmp' );
points1 = detectHarrisFeatures(I1);
points2 = detectHarrisFeatures(I2);
[features1,valid_points1] = extractFeatures(I1,points1);
[features2,valid_points2] = extractFeatures(I2,points2);
indexPairs = matchFeatures(features1,features2);
matchedPoints1 = valid_points1(indexPairs(:,1),:);
matchedPoints2 = valid_points2(indexPairs(:,2),:);

我怎样才能得到两个向量之间相似性的最终得分,以便我可以根据阈值判断它是否匹配。

1 个答案:

答案 0 :(得分:0)

在功能匹配后,您需要应用一些转换模型(使用RANSAC或MSAC),这将为您提供质量指标:

[tform,inlierPtsDistorted,inlierPtsOriginal] =  estimateGeometricTransform(matchedPoints1,matchedPoints2,'similarity');
xoffset=tform.T(3,1);
yoffset=tform.T(3,2);