其他分享
首页 > 其他分享> > 40、关于仿射变换矩阵的Row(X)、Col(Y)

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

 

标签:0.9,rad,HomMat2D,point,Image,40,Col,仿射变换
来源: https://www.cnblogs.com/ihh2021/p/16332828.html