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
6f3d6ded
Commit
6f3d6ded
authored
Jul 21, 2013
by
Daniel Angelov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test case to strict, as overlapping lines (based on random places) may occur.
parent
68e348f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test_lsd.cpp
modules/imgproc/test/test_lsd.cpp
+4
-4
No files found.
modules/imgproc/test/test_lsd.cpp
View file @
6f3d6ded
...
...
@@ -70,7 +70,7 @@ void LSDBase::GenerateLines(Mat& image, const unsigned int numLines)
int
y
=
rng
.
uniform
(
10
,
img_size
.
width
-
10
);
Point
p1
(
y
,
10
);
Point
p2
(
y
,
img_size
.
height
-
10
);
line
(
image
,
p1
,
p2
,
Scalar
(
255
),
1
);
line
(
image
,
p1
,
p2
,
Scalar
(
255
),
3
);
}
}
...
...
@@ -123,7 +123,7 @@ TEST_F(Imgproc_LSD_ADV, constColor)
TEST_F
(
Imgproc_LSD_ADV
,
lines
)
{
const
unsigned
int
numOfLines
=
3
;
const
unsigned
int
numOfLines
=
1
;
GenerateLines
(
test_image
,
numOfLines
);
LineSegmentDetector
*
detector
=
createLineSegmentDetectorPtr
(
LSD_REFINE_ADV
);
detector
->
detect
(
test_image
,
lines
);
...
...
@@ -160,7 +160,7 @@ TEST_F(Imgproc_LSD_STD, constColor)
TEST_F
(
Imgproc_LSD_STD
,
lines
)
{
const
unsigned
int
numOfLines
=
3
;
//1
const
unsigned
int
numOfLines
=
1
;
GenerateLines
(
test_image
,
numOfLines
);
LineSegmentDetector
*
detector
=
createLineSegmentDetectorPtr
(
LSD_REFINE_STD
);
detector
->
detect
(
test_image
,
lines
);
...
...
@@ -197,7 +197,7 @@ TEST_F(Imgproc_LSD_NONE, constColor)
TEST_F
(
Imgproc_LSD_NONE
,
lines
)
{
const
unsigned
int
numOfLines
=
3
;
//1
const
unsigned
int
numOfLines
=
1
;
GenerateLines
(
test_image
,
numOfLines
);
LineSegmentDetector
*
detector
=
createLineSegmentDetectorPtr
(
LSD_REFINE_NONE
);
detector
->
detect
(
test_image
,
lines
);
...
...
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