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
d8488e77
Commit
d8488e77
authored
Feb 07, 2011
by
Ilya Lysenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for the asymmetric pattern detection
parent
4d65de17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
achesscorners.cpp
tests/cv/src/achesscorners.cpp
+12
-2
No files found.
tests/cv/src/achesscorners.cpp
View file @
d8488e77
...
...
@@ -74,7 +74,7 @@ void show_points( const Mat& gray, const Mat& u, const vector<Point2f>& v, Size
}
enum
Pattern
{
CHESSBOARD
,
CIRCLES_GRID
};
enum
Pattern
{
CHESSBOARD
,
CIRCLES_GRID
,
ASYMMETRIC_CIRCLES_GRID
};
class
CV_ChessboardDetectorTest
:
public
CvTest
{
...
...
@@ -149,6 +149,9 @@ void CV_ChessboardDetectorTest::run( int /*start_from */)
case
CIRCLES_GRID
:
run_batch
(
"circles_list.dat"
);
break
;
case
ASYMMETRIC_CIRCLES_GRID
:
run_batch
(
"acircles_list.dat"
);
break
;
}
}
...
...
@@ -171,6 +174,9 @@ void CV_ChessboardDetectorTest::run_batch( const string& filename )
case
CIRCLES_GRID
:
folder
=
string
(
ts
.
get_data_path
())
+
"cameracalibration/circles/"
;
break
;
case
ASYMMETRIC_CIRCLES_GRID
:
folder
=
string
(
ts
.
get_data_path
())
+
"cameracalibration/asymmetric_circles/"
;
break
;
}
FileStorage
fs
(
folder
+
filename
,
FileStorage
::
READ
);
...
...
@@ -229,7 +235,10 @@ void CV_ChessboardDetectorTest::run_batch( const string& filename )
result
=
findChessboardCorners
(
gray
,
pattern_size
,
v
,
CV_CALIB_CB_ADAPTIVE_THRESH
|
CV_CALIB_CB_NORMALIZE_IMAGE
);
break
;
case
CIRCLES_GRID
:
result
=
findCirclesGrid
(
gray
,
pattern_size
,
v
);
result
=
findCirclesGrid
(
gray
,
pattern_size
,
v
,
CALIB_CB_SYMMETRIC_GRID
);
break
;
case
ASYMMETRIC_CIRCLES_GRID
:
result
=
findCirclesGrid
(
gray
,
pattern_size
,
v
,
CALIB_CB_ASYMMETRIC_GRID
);
break
;
}
show_points
(
gray
,
Mat
(),
v
,
pattern_size
,
result
);
...
...
@@ -441,5 +450,6 @@ bool CV_ChessboardDetectorTest::checkByGenerator()
CV_ChessboardDetectorTest
chessboard_detector_test
(
CHESSBOARD
,
"chessboard-detector"
,
"cvFindChessboardCorners"
);
CV_ChessboardDetectorTest
circlesgrid_detector_test
(
CIRCLES_GRID
,
"circlesgrid-detector"
,
"findCirclesGrid"
);
CV_ChessboardDetectorTest
asymmetric_circlesgrid_detector_test
(
ASYMMETRIC_CIRCLES_GRID
,
"asymmetric-circlesgrid-detector"
,
"findCirclesGrid"
);
/* End of file. */
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