40、关于仿射变换矩阵的Row(X)、Col(Y)
find_shape_model (Image, ModelId, rad(-90), rad(180), 0.9, 1, 0.5, 'least_squares', 5, 0.9, ModelRow111, ModelColumn111, ModelAngle111, ModelScore111)
line1Row:=[512,33]
line1Col:=[463,463]
read_image (Image, ImageFiles[Index])
find_shape_model (Image, ModelId, rad(-90), rad(180), 0.9, 1, 0.5, 'least_squares', 5, 0.9, ModelRow222, ModelColumn222,
ModelAngle222, ModelScore222)
vector_angle_to_rigid( ModelRow111, ModelColumn111, ModelAngle111,
ModelRow222, ModelColumn222, ModelAngle222,
HomMat2D)
affine_trans_point_2d (HomMat2D, line1Row, line1Col, Qx1, Qy1)
gen_cross_contour_xld (Cross1, Qx1, Qy1, 6, 0)
如上面做仿射变换时,经常会写反上面红色和蓝色的变量。可以查看帮助文档
affine_trans_point_2d( : : HomMat2D, Px, Py : Qx, Qy)
不用关注xy,只关注row和column