Commit 42d942e1 authored by Iago Suárez's avatar Iago Suárez

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

parent 7267e94b
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment