* dev_display_shape_matching_results (ModelID, 'red', Row5, Column5, Angle, 1, 1, 0)
*利用模板进行模板匹配,输出坐标角度匹配分数等参数
vector_angle_to_rigid (0, 0, 0, Row5, Column5, Angle, HomMat2D)
*从模板匹配函数的结果进行目标仿射变换,把参考图像变为当前图像
affine_trans_contour_xld (ModelContours, ContoursAffinTrans1, HomMat2D)
*建立仿射变换
* hom_mat2d_identity (HomMat2D)
*从点和角度计算刚性仿射变换,找出模板和卡尺工具的对应关系
* vector_angle_to_rigid (Row11, Column11, 0, Row5, Column5, Angle, HomMat2D)
* affine_trans_point_2d (HomMat2D, [Row1,Row2],[Column1,Column2], QRow, QCol)
* affine_trans_point_2d (HomMat2D, [Row3,Row4],[Column3,Column4], QRow1, QCol1)
04-20
6307
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-26
1818
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-13
1581
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)