Commit 31bd84de authored by Francisco Facioni's avatar Francisco Facioni Committed by Francisco Facioni

LSD: Removes unused code

parent dc3d0cbc
...@@ -474,7 +474,6 @@ void LineSegmentDetectorImpl::flsd(std::vector<Vec4f>& lines, ...@@ -474,7 +474,6 @@ void LineSegmentDetectorImpl::flsd(std::vector<Vec4f>& lines,
std::vector<RegionPoint> reg(img_width * img_height); std::vector<RegionPoint> reg(img_width * img_height);
// Search for line segments // Search for line segments
unsigned int ls_count = 0;
for(size_t i = 0, list_size = list.size(); i < list_size; ++i) for(size_t i = 0, list_size = list.size(); i < list_size; ++i)
{ {
unsigned int adx = list[i].p.x + list[i].p.y * img_width; unsigned int adx = list[i].p.x + list[i].p.y * img_width;
...@@ -505,7 +504,6 @@ void LineSegmentDetectorImpl::flsd(std::vector<Vec4f>& lines, ...@@ -505,7 +504,6 @@ void LineSegmentDetectorImpl::flsd(std::vector<Vec4f>& lines,
} }
} }
// Found new line // Found new line
++ls_count;
// Add the offset // Add the offset
rec.x1 += 0.5; rec.y1 += 0.5; rec.x1 += 0.5; rec.y1 += 0.5;
...@@ -524,13 +522,6 @@ void LineSegmentDetectorImpl::flsd(std::vector<Vec4f>& lines, ...@@ -524,13 +522,6 @@ void LineSegmentDetectorImpl::flsd(std::vector<Vec4f>& lines,
if(w_needed) widths.push_back(rec.width); if(w_needed) widths.push_back(rec.width);
if(p_needed) precisions.push_back(rec.p); if(p_needed) precisions.push_back(rec.p);
if(n_needed && doRefine >= LSD_REFINE_ADV) nfas.push_back(log_nfa); if(n_needed && doRefine >= LSD_REFINE_ADV) nfas.push_back(log_nfa);
// //Add the linesID to the region on the image
// for(unsigned int el = 0; el < reg_size; el++)
// {
// region.data[reg[i].x + reg[i].y * width] = ls_count;
// }
} }
} }
} }
......
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