@@ -1220,12 +1220,17 @@ class CV_EXPORTS_W Subdiv2D
12201220// ! @addtogroup imgproc_feature
12211221// ! @{
12221222
1223+ /* * @example samples/cpp/lsd_lines.cpp
1224+ An example using the LineSegmentDetector
1225+ \image html building_lsd.png "Sample output image" width=434 height=300
1226+ */
1227+
12231228/* * @brief Line segment detector class
12241229
12251230following the algorithm described at @cite Rafael12 .
12261231
1227- @note Implementation has been removed due original code license conflict
1228-
1232+ @note Implementation has been removed from OpenCV version 3.4.6 to 3.4.15 and version 4.1.0 to 4.5.3 due original code license conflict.
1233+ restored again after [Computation of a NFA](https://github.com/rafael-grompone-von-gioi/binomial_nfa) code published under the MIT license.
12291234*/
12301235class CV_EXPORTS_W LineSegmentDetector : public Algorithm
12311236{
@@ -1239,8 +1244,8 @@ class CV_EXPORTS_W LineSegmentDetector : public Algorithm
12391244
12401245 @param image A grayscale (CV_8UC1) input image. If only a roi needs to be selected, use:
12411246 `lsd_ptr-\>detect(image(roi), lines, ...); lines += Scalar(roi.x, roi.y, roi.x, roi.y);`
1242- @param lines A vector of Vec4i or Vec4f elements specifying the beginning and ending point of a line. Where
1243- Vec4i/ Vec4f is (x1, y1, x2, y2), point 1 is the start, point 2 - end. Returned lines are strictly
1247+ @param lines A vector of Vec4f elements specifying the beginning and ending point of a line. Where
1248+ Vec4f is (x1, y1, x2, y2), point 1 is the start, point 2 - end. Returned lines are strictly
12441249 oriented depending on the gradient.
12451250 @param width Vector of widths of the regions, where the lines are found. E.g. Width of line.
12461251 @param prec Vector of precisions with which the lines are found.
@@ -1288,8 +1293,6 @@ to edit those, as to tailor it for their own application.
12881293@param log_eps Detection threshold: -log10(NFA) \> log_eps. Used only when advance refinement is chosen.
12891294@param density_th Minimal density of aligned region points in the enclosing rectangle.
12901295@param n_bins Number of bins in pseudo-ordering of gradient modulus.
1291-
1292- @note Implementation has been removed due original code license conflict
12931296 */
12941297CV_EXPORTS_W Ptr<LineSegmentDetector> createLineSegmentDetector (
12951298 int refine = LSD_REFINE_STD, double scale = 0.8 ,
0 commit comments