Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenCV
opencv
提交
3cf367c9
O
opencv
项目概览
OpenCV
/
opencv
上一次同步 10 个月
通知
995
Star
71100
Fork
55580
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
3cf367c9
编写于
3月 30, 2023
作者:
A
Alexander Smorkalov
提交者:
GitHub
3月 30, 2023
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #23271 from stefan523:aruco_testcase_fixes
Aruco/Charuco test case fixes for floating point for loops
上级
352f92e4
c643af0b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
6 deletion
+6
-6
modules/objdetect/test/test_arucodetection.cpp
modules/objdetect/test/test_arucodetection.cpp
+1
-1
modules/objdetect/test/test_boarddetection.cpp
modules/objdetect/test/test_boarddetection.cpp
+2
-2
modules/objdetect/test/test_charucodetection.cpp
modules/objdetect/test/test_charucodetection.cpp
+3
-3
未找到文件。
modules/objdetect/test/test_arucodetection.cpp
浏览文件 @
3cf367c9
...
...
@@ -247,7 +247,7 @@ void CV_ArucoDetectionPerspective::run(int) {
aruco
::
ArucoDetector
detector
(
aruco
::
getPredefinedDictionary
(
aruco
::
DICT_6X6_250
),
params
);
// detect from different positions
for
(
double
distance
=
0.1
;
distance
<
0.7
;
distance
+=
0.2
)
{
for
(
double
distance
:
{
0.1
,
0.3
,
0.5
,
0.7
}
)
{
for
(
int
pitch
=
0
;
pitch
<
360
;
pitch
+=
(
distance
==
0.1
?
60
:
180
))
{
for
(
int
yaw
=
70
;
yaw
<=
120
;
yaw
+=
40
){
int
currentId
=
iter
%
250
;
...
...
modules/objdetect/test/test_boarddetection.cpp
浏览文件 @
3cf367c9
...
...
@@ -51,7 +51,7 @@ void CV_ArucoBoardPose::run(int) {
aruco
::
DetectorParameters
detectorParameters
=
detector
.
getDetectorParameters
();
// for different perspectives
for
(
double
distance
=
0.2
;
distance
<=
0.4
;
distance
+=
0.15
)
{
for
(
double
distance
:
{
0.2
,
0.35
}
)
{
for
(
int
yaw
=
-
55
;
yaw
<=
50
;
yaw
+=
25
)
{
for
(
int
pitch
=
-
55
;
pitch
<=
50
;
pitch
+=
25
)
{
vector
<
int
>
tmpIds
;
...
...
@@ -162,7 +162,7 @@ void CV_ArucoRefine::run(int) {
aruco
::
DetectorParameters
detectorParameters
=
detector
.
getDetectorParameters
();
// for different perspectives
for
(
double
distance
=
0.2
;
distance
<=
0.4
;
distance
+=
0.2
)
{
for
(
double
distance
:
{
0.2
,
0.4
}
)
{
for
(
int
yaw
=
-
60
;
yaw
<
60
;
yaw
+=
30
)
{
for
(
int
pitch
=
-
60
;
pitch
<=
60
;
pitch
+=
30
)
{
aruco
::
GridBoard
gridboard
(
Size
(
3
,
3
),
0.02
f
,
0.005
f
,
detector
.
getDictionary
());
...
...
modules/objdetect/test/test_charucodetection.cpp
浏览文件 @
3cf367c9
...
...
@@ -109,7 +109,7 @@ void CV_CharucoDetection::run(int) {
Mat
distCoeffs
(
5
,
1
,
CV_64FC1
,
Scalar
::
all
(
0
));
// for different perspectives
for
(
double
distance
=
0.2
;
distance
<=
0.4
;
distance
+=
0.2
)
{
for
(
double
distance
:
{
0.2
,
0.4
}
)
{
for
(
int
yaw
=
-
55
;
yaw
<=
50
;
yaw
+=
25
)
{
for
(
int
pitch
=
-
55
;
pitch
<=
50
;
pitch
+=
25
)
{
...
...
@@ -213,7 +213,7 @@ void CV_CharucoPoseEstimation::run(int) {
Mat
distCoeffs
(
5
,
1
,
CV_64FC1
,
Scalar
::
all
(
0
));
// for different perspectives
for
(
double
distance
=
0.2
;
distance
<=
0.3
;
distance
+=
0.1
)
{
for
(
double
distance
:
{
0.2
,
0.25
}
)
{
for
(
int
yaw
=
-
55
;
yaw
<=
50
;
yaw
+=
25
)
{
for
(
int
pitch
=
-
55
;
pitch
<=
50
;
pitch
+=
25
)
{
...
...
@@ -332,7 +332,7 @@ void CV_CharucoDiamondDetection::run(int) {
detector
.
setCharucoParameters
(
charucoParameters
);
// for different perspectives
for
(
double
distance
=
0.2
;
distance
<=
0.3
;
distance
+=
0.1
)
{
for
(
double
distance
:
{
0.2
,
0.22
}
)
{
for
(
int
yaw
=
-
50
;
yaw
<=
50
;
yaw
+=
25
)
{
for
(
int
pitch
=
-
50
;
pitch
<=
50
;
pitch
+=
25
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录