Skip to content

Commit 6d25233

Browse files
authored
Update fast_line_detector.cpp
1 parent 5e4bb49 commit 6d25233

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

modules/ximgproc/src/fast_line_detector.cpp

-16
Original file line numberDiff line numberDiff line change
@@ -678,21 +678,5 @@ void FastLineDetectorImpl::additionalOperationsOnSegment(const Mat& src, SEGMENT
678678
return;
679679
}
680680

681-
void FastLineDetectorImpl::drawSegment(InputOutputArray image, const SEGMENT& seg, Scalar bgr, int thickness, bool directed)
682-
{
683-
double gap = 10.0;
684-
double ang = (double)seg.angle;
685-
double arrow_angle = 30.0;
686-
687-
Point2i p1;
688-
p1.x = cvRound(seg.x2 - gap*cos(arrow_angle * CV_PI / 180.0 + ang));
689-
p1.y = cvRound(seg.y2 - gap*sin(arrow_angle * CV_PI / 180.0 + ang));
690-
pointInboardTest(image.size(), p1);
691-
692-
line(image, Point(cvRound(seg.x1), cvRound(seg.y1)),
693-
Point(cvRound(seg.x2), cvRound(seg.y2)), bgr, thickness, 1);
694-
if(directed)
695-
line(image, Point(cvRound(seg.x2), cvRound(seg.y2)), p1, bgr, thickness, 1);
696-
}
697681
} // namespace cv
698682
} // namespace ximgproc

0 commit comments

Comments
 (0)