proj_match_points_ransac(Image1, Image2 : : Rows1, Cols1, Rows2, Cols2, GrayMatchMethod, MaskSize, RowMove, ColMove, RowTolerance, ColTolerance, Rotation, MatchThreshold, EstimationMethod, DistanceThreshold, RandSeed : HomMat2D, Points1, Points2)通过寻找点之间的对应关系来计算两个图像之间的投影变换矩阵。
//sad 以角点为中心 左右窗口内对应像素灰度值之差 的绝对值 再求和 结果最小时 即为匹配点。 先确定左窗口,再遍历右窗口。 单位:灰度值之差的和
//ncc 计算两幅图像匹配区域的互相关性 最大时 即为匹配点。 单位: 相似程度 0--1
//MatchThreshold 左右角点匹配时的阈值, ssd sad --应小于此值; ncc--应大于此值
// RowTolerance, ColTolerance 在右图像中找左图像的匹配点时, 限定右图像中的遍历范围: 在右图像中,以左图像中的点坐标为中心,RowTolerance X ColTolerance的区域内找匹配点。
// the center of the search window in the second image with respect to the position of the current point in the first image
//RowMove ColMove 右窗口遍历时的 步距, 单位为像素
//Rotation 待拼接图像的最大角度偏差 角度遍历范围 (或 拼接时的角度步距?)
//ransac -- Once the initial matching is complete, a randomized search algorithm (RANSAC) is used to determine the transformation matrix HomMat2D
//DistanceThreshold -- 试算变换矩阵HomMat2D时, 实际点 与 预测点 之间的距离偏差 阈值, 单位为像素
//EstimationMethod -- 变换 与 匹配点 确定后 ,进一步优化精确化 变换矩阵 时 选用的方式 gold_standard normalized_dlt
//RandSeed -- RANSAC算法中 给定一个随机数, 使RANSAC算法具有重复性。 只要是正的,结果一样。
//Points1 匹配点 序号 图像1中
//Points1 匹配点 序号 图像2中
欢迎一起交流学习!