Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
31bd84de
Commit
31bd84de
authored
Sep 18, 2016
by
Francisco Facioni
Committed by
Francisco Facioni
Sep 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LSD: Removes unused code
parent
dc3d0cbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
lsd.cpp
modules/imgproc/src/lsd.cpp
+0
-9
No files found.
modules/imgproc/src/lsd.cpp
View file @
31bd84de
...
@@ -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;
// }
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment