码迷,mamicode.com
首页 > 其他好文 > 详细

fit_line_contour_xld的bug

时间:2020-04-05 11:46:59      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:not   distance   ESS   origin   turn   ret   line   结果   input   

fit_line_contour_xld (BottomEdgeContours, ‘huber‘, -1, 0, 5, 2, RowBegin, ColBegin, RowEnd, ColEnd, Nr, Nc, Dist) 
存在bug,结果RowBegin, ColBegin, RowEnd, ColEnd两点重合,这个时候需要Nr, Nc, Dist计算直线。

fit_line_contour_xld approximates the XLD contours Contours by line segments. It does not perform a segmentation of the input contours. Thus, one has to make sure that each contour corresponds to one and only one line segment. The operator returns for each contour the start point (RowBegin, ColBegin), the end point (RowEnd, ColEnd), and the regression line to the contour given by the normal vector (Nr, Nc) of the line and its distance Dist from the origin, i.e., the line equation is given by

fit_line_contour_xld的bug

标签:not   distance   ESS   origin   turn   ret   line   结果   input   

原文地址:https://www.cnblogs.com/QuincyYi/p/12636024.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!