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
ce00d38b
Commit
ce00d38b
authored
6 years ago
by
fegorsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for symmetric circles with clustering
parent
30bf4a5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
test_chesscorners.cpp
modules/calib3d/test/test_chesscorners.cpp
+19
-0
No files found.
modules/calib3d/test/test_chesscorners.cpp
View file @
ce00d38b
...
...
@@ -468,5 +468,24 @@ TEST(Calib3d_AsymmetricCirclesPatternDetector, accuracy) { CV_ChessboardDetector
TEST
(
Calib3d_AsymmetricCirclesPatternDetectorWithClustering
,
accuracy
)
{
CV_ChessboardDetectorTest
test
(
ASYMMETRIC_CIRCLES_GRID
,
CALIB_CB_CLUSTERING
);
test
.
safe_run
();
}
#endif
TEST
(
Calib3d_CirclesPatternDetectorWithClustering
,
accuracy
)
{
cv
::
String
dataDir
=
string
(
TS
::
ptr
()
->
get_data_path
())
+
"cv/cameracalibration/circles/"
;
cv
::
Mat
expected
;
FileStorage
fs
(
dataDir
+
"circles_corners15.dat"
,
FileStorage
::
READ
);
fs
[
"corners"
]
>>
expected
;
fs
.
release
();
cv
::
Mat
image
=
cv
::
imread
(
dataDir
+
"circles15.png"
);
std
::
vector
<
Point2f
>
centers
;
cv
::
findCirclesGrid
(
image
,
Size
(
10
,
8
),
centers
,
CALIB_CB_SYMMETRIC_GRID
|
CALIB_CB_CLUSTERING
);
ASSERT_EQ
(
expected
.
total
(),
centers
.
size
());
double
error
=
calcError
(
centers
,
expected
);
ASSERT_LE
(
error
,
precise_success_error_level
);
}
}}
// namespace
/* End of file. */
This diff is collapsed.
Click to expand it.
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