标签: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
标签:not distance ESS origin turn ret line 结果 input
原文地址:https://www.cnblogs.com/QuincyYi/p/12636024.html