halcon算子说明

时间:2020-09-24 22:05:26   收藏:0   阅读:59

1.shape_trans_xld 获取的最小外接矩形点顺序

shape_trans_xld(ContoursAffineTrans, XLDTrans,rectangle2)
get_contour_xld(XLDTrans, Row1, Col1)
tuple_min(Row1,rowMin)
tuple_find(Row1,rowMin,rowIndices)
tuple_min(Col1,minCol)
tuple_find(Col1,minCol,colIndices)

     使用对称和不对称的轮廓,经过0~360°,每次旋转10°,反复测试。上面获取的值。得到如下规律:

     1.返回的第一个点一定是行坐标最小值;

      2.返回的第二个点一定是列坐标最小值;

     3.点顺序逆时针

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!