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
ae4c72a1
Unverified
Commit
ae4c72a1
authored
Sep 30, 2018
by
Alexander Alekhin
Committed by
GitHub
Sep 30, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12668 from alalek:calib3d_chessboardsb_updates
parents
ea92c2b1
e4f71994
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
5 deletions
+21
-5
chessboard.cpp
modules/calib3d/src/chessboard.cpp
+0
-0
test_chesscorners.cpp
modules/calib3d/test/test_chesscorners.cpp
+11
-5
check.hpp
modules/core/include/opencv2/core/check.hpp
+2
-0
check.cpp
modules/core/src/check.cpp
+8
-0
No files found.
modules/calib3d/src/chessboard.cpp
View file @
ae4c72a1
This diff is collapsed.
Click to expand it.
modules/calib3d/test/test_chesscorners.cpp
View file @
ae4c72a1
...
@@ -409,6 +409,8 @@ bool CV_ChessboardDetectorTest::checkByGenerator()
...
@@ -409,6 +409,8 @@ bool CV_ChessboardDetectorTest::checkByGenerator()
int
progress
=
0
;
int
progress
=
0
;
for
(
int
i
=
0
;
i
<
test_num
;
++
i
)
for
(
int
i
=
0
;
i
<
test_num
;
++
i
)
{
{
SCOPED_TRACE
(
cv
::
format
(
"test_num=%d"
,
test_num
));
progress
=
update_progress
(
progress
,
i
,
test_num
,
0
);
progress
=
update_progress
(
progress
,
i
,
test_num
,
0
);
ChessBoardGenerator
cbg
(
sizes
[
i
%
sizes_num
]);
ChessBoardGenerator
cbg
(
sizes
[
i
%
sizes_num
]);
...
@@ -439,13 +441,17 @@ bool CV_ChessboardDetectorTest::checkByGenerator()
...
@@ -439,13 +441,17 @@ bool CV_ChessboardDetectorTest::checkByGenerator()
}
}
double
err
=
calcErrorMinError
(
cbg
.
cornersSize
(),
corners_found
,
corners_generated
);
double
err
=
calcErrorMinError
(
cbg
.
cornersSize
(),
corners_found
,
corners_generated
);
if
(
err
>
rough_success_error_level
)
EXPECT_LE
(
err
,
rough_success_error_level
)
<<
"bad accuracy of corner guesses"
;
#if 0
if (err >= rough_success_error_level)
{
{
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"bad accuracy of corner guesses"
);
imshow("cb", cb);
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_BAD_ACCURACY
);
Mat cb_corners = cb.clone();
res
=
false
;
cv::drawChessboardCorners(cb_corners, cbg.cornersSize(), Mat(corners_found), found);
return
res
;
imshow("corners", cb_corners);
waitKey(0);
}
}
#endif
}
}
/* ***** negative ***** */
/* ***** negative ***** */
...
...
modules/core/include/opencv2/core/check.hpp
View file @
ae4c72a1
...
@@ -69,6 +69,7 @@ CV_EXPORTS void CV_NORETURN check_failed_auto(const int v1, const int v2, const
...
@@ -69,6 +69,7 @@ CV_EXPORTS void CV_NORETURN check_failed_auto(const int v1, const int v2, const
CV_EXPORTS
void
CV_NORETURN
check_failed_auto
(
const
size_t
v1
,
const
size_t
v2
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_auto
(
const
size_t
v1
,
const
size_t
v2
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_auto
(
const
float
v1
,
const
float
v2
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_auto
(
const
float
v1
,
const
float
v2
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_auto
(
const
double
v1
,
const
double
v2
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_auto
(
const
double
v1
,
const
double
v2
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_auto
(
const
Size_
<
int
>
v1
,
const
Size_
<
int
>
v2
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_MatDepth
(
const
int
v1
,
const
int
v2
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_MatDepth
(
const
int
v1
,
const
int
v2
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_MatType
(
const
int
v1
,
const
int
v2
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_MatType
(
const
int
v1
,
const
int
v2
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_MatChannels
(
const
int
v1
,
const
int
v2
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_MatChannels
(
const
int
v1
,
const
int
v2
,
const
CheckContext
&
ctx
);
...
@@ -77,6 +78,7 @@ CV_EXPORTS void CV_NORETURN check_failed_auto(const int v, const CheckContext& c
...
@@ -77,6 +78,7 @@ CV_EXPORTS void CV_NORETURN check_failed_auto(const int v, const CheckContext& c
CV_EXPORTS
void
CV_NORETURN
check_failed_auto
(
const
size_t
v
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_auto
(
const
size_t
v
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_auto
(
const
float
v
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_auto
(
const
float
v
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_auto
(
const
double
v
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_auto
(
const
double
v
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_auto
(
const
Size_
<
int
>
v
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_MatDepth
(
const
int
v
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_MatDepth
(
const
int
v
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_MatType
(
const
int
v
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_MatType
(
const
int
v
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_MatChannels
(
const
int
v
,
const
CheckContext
&
ctx
);
CV_EXPORTS
void
CV_NORETURN
check_failed_MatChannels
(
const
int
v
,
const
CheckContext
&
ctx
);
...
...
modules/core/src/check.cpp
View file @
ae4c72a1
...
@@ -113,6 +113,10 @@ void check_failed_auto(const double v1, const double v2, const CheckContext& ctx
...
@@ -113,6 +113,10 @@ void check_failed_auto(const double v1, const double v2, const CheckContext& ctx
{
{
check_failed_auto_
<
double
>
(
v1
,
v2
,
ctx
);
check_failed_auto_
<
double
>
(
v1
,
v2
,
ctx
);
}
}
void
check_failed_auto
(
const
Size_
<
int
>
v1
,
const
Size_
<
int
>
v2
,
const
CheckContext
&
ctx
)
{
check_failed_auto_
<
Size_
<
int
>
>
(
v1
,
v2
,
ctx
);
}
template
<
typename
T
>
static
CV_NORETURN
template
<
typename
T
>
static
CV_NORETURN
...
@@ -163,6 +167,10 @@ void check_failed_auto(const double v, const CheckContext& ctx)
...
@@ -163,6 +167,10 @@ void check_failed_auto(const double v, const CheckContext& ctx)
{
{
check_failed_auto_
<
double
>
(
v
,
ctx
);
check_failed_auto_
<
double
>
(
v
,
ctx
);
}
}
void
check_failed_auto
(
const
Size_
<
int
>
v
,
const
CheckContext
&
ctx
)
{
check_failed_auto_
<
Size_
<
int
>
>
(
v
,
ctx
);
}
}}
// namespace
}}
// namespace
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