Halcon 获取XLD轮廓全局属性值

使用算子:get_contour_global_attrib_xld(Contour : : Name : Attrib)

query_contour_global_attribs_xld 可用于查询特定的轮廓设置了哪些全局属性

 'bright_dark'

 每个输出XLD轮廓的转换类型存储在属性“bright_dark”中。如果连接线形成明暗转换(从左到右,从起点到终点),则将其设置为1.0,否则将其设置为0.0。

示例性XLD轮廓(红色和绿色)沿着整流网格的边缘(从起点到终点的方向由箭头指示)。转换类型存储在属性“bright_dark”中,红色轮廓为1.0,绿色轮廓为0.0。

The attribute 'bright_dark' is added by the following operator:

connect_grid_points

 'cont_approx'

轮廓的最佳近似方法由属性'cont_approx'表示:对于'cont_approx'=-1,轮廓的最佳近似方法是用一条线段表示,对于'cont_approx'=0,用一条椭圆曲线表示,对于'cont_approx'=1,用一条圆弧表示。

The attribute 'cont_approx' is added by the following operator:

segment_contours_xld

 'is_hole'  对于包含孔的边界,将全局轮廓属性'is_hole'设置为1,否则设置为0。
 'regr_dev_dist'

轮廓线点与回归线之间(欧几里得)距离的标准差。

The attribute 'regr_dev_dist' is added by the following operator:

regress_contours_xld

 'regr_dist'

回归线到图像坐标系统原点的最小距离。

The attribute 'regr_dev_dist' is added by the following operator:

regress_contours_xld

 'regr_mean_dist'

包含每个等高线点到回归线之间的欧式距离的平均值。

The attribute 'regr_dev_dist' is added by the following operator:

regress_contours_xld

 'regr_norm_col'

 回归线单位法向量的列坐标,法向量从原点指向该线。

The attribute 'regr_dev_dist' is added by the following operator:

regress_contours_xld

 'regr_norm_row'

 回归线单位法向量的行坐标,法向量从原点指向该线。

The attribute 'regr_dev_dist' is added by the following operator:

regress_contours_xld

 

 

绘制属性“regr_dist”、“regr_norm_col”、“regr_norm_row”的草图,用于回归XLD轮廓(红色)。'regr_mean_dist'和'regr_dev_dist'是从轮廓线点到回归线(实心黑线)的距离(黑色箭头)计算得到的。

 

posted @ 2020-05-11 19:49  Z大山  阅读(3630)  评论(0编辑  收藏  举报