1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Clearing data into the detect method of the class cv::LineSegmentDetectorImpl

This commit is contained in:
Iago Suárez
2017-11-04 17:12:20 +01:00
parent 7267e94be7
commit 42d942e19c
+3
View File
@@ -430,6 +430,9 @@ void LineSegmentDetectorImpl::detect(InputArray _image, OutputArray _lines,
if(w_needed) Mat(w).copyTo(_width);
if(p_needed) Mat(p).copyTo(_prec);
if(n_needed) Mat(n).copyTo(_nfa);
// Clear used structures
list.clear();
}
void LineSegmentDetectorImpl::flsd(std::vector<Vec4f>& lines,