二维测量分析直线跟圆的例子
第一步,阈值化找到要测量的区域
threshold
第二步,用边缘函数查找边轮廓
edge_sub_pix
第三步,对边进行分割,抽取直线跟圆弧
segment_contour_xld
get_contour_global_attrib_xld (SingleSegment, 'cont_approx', Attrib)//根据分割的类型选择 Attrib == -1是直线 1是圆 0是椭圆
第一步,阈值化找到要测量的区域
threshold
第二步,用边缘函数查找边轮廓
edge_sub_pix
第三步,对边进行分割,抽取直线跟圆弧
segment_contour_xld
get_contour_global_attrib_xld (SingleSegment, 'cont_approx', Attrib)//根据分割的类型选择 Attrib == -1是直线 1是圆 0是椭圆