天天看點

halcon 仿射變換了解

1.hom_mat2d_identity (HomMat2DIdentity)

初始化一個矩陣[1.0, 0.0, 0.0, 0.0, 1.0, 0.0]

2.hom_mat2d_translate (HomMat2DIdentity, Row, Column, HomMat2DTranslate)

把矩陣平移到Row,Column  

3.affine_trans_contour_xld (ShapeModel, ShapeModelTrans, HomMat2DTranslate)

把 ShapeModel應用到 上面的那個矩陣上,生成新的區域ShapeModelTrans

繼續閱讀