rgb2gray函数 功能:将彩色图片转变为灰度图 detectSURFFeatures函数 功能:利用The Speeded-Up Robust Features(SURF)算法检测点特征 语法:points = detectSURFFeatures(I); points = detectSURFFeatures(I,Name,Value); 其中,其中,I为2-D灰度图像,points为返回的SURF检测算法检测到的blob,Name必须为用单引号对包含的如下字符串名称,Vaule为对应Name的值
extractFeatures函数
功能:返回从二进制或强度图像中提取的特征向量(也称为描述符)及其对应位置。
matchFeatures(features1,features2)
功能:是表示了计算从features1中的第一个特征向量到最后一个特征向量与features2中所有特征向量的距离(由参数’Metric’决定),并且比较的时候是分组比较的,组内为features1中的一个特征向量与features2中所有特征向量的距离。
estimateGeometricTransform函数
功能:估计匹配点的几何变换
tform = estimateGeometricTransform(matchedPoints1,matchedPoints2, transformType) \
返回二维矩阵,即变换矩阵。matchedPoints1 和matchedPoints2 可以是 cornerPoints objects,SURFPoints objects, MSERRegions objects, BRISKPoints objects, or M-by-2
matrices of [x,y] coordinates.
transformType参数可以是:‘similarity’或‘affine’或‘projective’ matchedPoints1和matchedPoints1之间的异常点使用M-estimator SAmple Consensus(MSAC)算法进行排除。MSAC是Random Sample Consensus(RANSAC)的变形。如果transformType设置成‘similarity’或‘affine’返回值tform是一个affine2d类型(二维仿射几何变换),否则是projective2d
boxPolygon函数 功能:画图框出