Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
cefa1dc5
O
Opencv
项目概览
Greenplum
/
Opencv
大约 1 年 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cefa1dc5
编写于
11月 21, 2015
作者:
P
Pavel Rojtberg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
switch mask type from vector<int> to vector<uchar>
上级
81e814d9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
8 deletion
+8
-8
modules/calib3d/src/fisheye.cpp
modules/calib3d/src/fisheye.cpp
+6
-6
modules/calib3d/src/fisheye.hpp
modules/calib3d/src/fisheye.hpp
+1
-1
modules/calib3d/test/test_fisheye.cpp
modules/calib3d/test/test_fisheye.cpp
+1
-1
未找到文件。
modules/calib3d/src/fisheye.cpp
浏览文件 @
cefa1dc5
...
@@ -53,7 +53,7 @@ namespace cv { namespace
...
@@ -53,7 +53,7 @@ namespace cv { namespace
double
dalpha
;
double
dalpha
;
};
};
void
subMatrix
(
const
Mat
&
src
,
Mat
&
dst
,
const
std
::
vector
<
int
>&
cols
,
const
std
::
vector
<
int
>&
rows
);
void
subMatrix
(
const
Mat
&
src
,
Mat
&
dst
,
const
std
::
vector
<
uchar
>&
cols
,
const
std
::
vector
<
uchar
>&
rows
);
}}
}}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
...
@@ -899,7 +899,7 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO
...
@@ -899,7 +899,7 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO
intrinsicLeft_errors
.
isEstimate
=
intrinsicLeft
.
isEstimate
;
intrinsicLeft_errors
.
isEstimate
=
intrinsicLeft
.
isEstimate
;
intrinsicRight_errors
.
isEstimate
=
intrinsicRight
.
isEstimate
;
intrinsicRight_errors
.
isEstimate
=
intrinsicRight
.
isEstimate
;
std
::
vector
<
int
>
selectedParams
;
std
::
vector
<
uchar
>
selectedParams
;
std
::
vector
<
int
>
tmp
(
6
*
(
n_images
+
1
),
1
);
std
::
vector
<
int
>
tmp
(
6
*
(
n_images
+
1
),
1
);
selectedParams
.
insert
(
selectedParams
.
end
(),
intrinsicLeft
.
isEstimate
.
begin
(),
intrinsicLeft
.
isEstimate
.
end
());
selectedParams
.
insert
(
selectedParams
.
end
(),
intrinsicLeft
.
isEstimate
.
begin
(),
intrinsicLeft
.
isEstimate
.
end
());
selectedParams
.
insert
(
selectedParams
.
end
(),
intrinsicRight
.
isEstimate
.
begin
(),
intrinsicRight
.
isEstimate
.
end
());
selectedParams
.
insert
(
selectedParams
.
end
(),
intrinsicRight
.
isEstimate
.
begin
(),
intrinsicRight
.
isEstimate
.
end
());
...
@@ -999,7 +999,7 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO
...
@@ -999,7 +999,7 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO
cv
::
Vec6d
oldTom
(
Tcur
[
0
],
Tcur
[
1
],
Tcur
[
2
],
omcur
[
0
],
omcur
[
1
],
omcur
[
2
]);
cv
::
Vec6d
oldTom
(
Tcur
[
0
],
Tcur
[
1
],
Tcur
[
2
],
omcur
[
0
],
omcur
[
1
],
omcur
[
2
]);
//update all parameters
//update all parameters
cv
::
subMatrix
(
J
,
J
,
selectedParams
,
std
::
vector
<
int
>
(
J
.
rows
,
1
));
cv
::
subMatrix
(
J
,
J
,
selectedParams
,
std
::
vector
<
uchar
>
(
J
.
rows
,
1
));
int
a
=
cv
::
countNonZero
(
intrinsicLeft
.
isEstimate
);
int
a
=
cv
::
countNonZero
(
intrinsicLeft
.
isEstimate
);
int
b
=
cv
::
countNonZero
(
intrinsicRight
.
isEstimate
);
int
b
=
cv
::
countNonZero
(
intrinsicRight
.
isEstimate
);
cv
::
Mat
deltas
;
cv
::
Mat
deltas
;
...
@@ -1050,7 +1050,7 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO
...
@@ -1050,7 +1050,7 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO
}
}
namespace
cv
{
namespace
{
namespace
cv
{
namespace
{
void
subMatrix
(
const
Mat
&
src
,
Mat
&
dst
,
const
std
::
vector
<
int
>&
cols
,
const
std
::
vector
<
int
>&
rows
)
void
subMatrix
(
const
Mat
&
src
,
Mat
&
dst
,
const
std
::
vector
<
uchar
>&
cols
,
const
std
::
vector
<
uchar
>&
rows
)
{
{
CV_Assert
(
src
.
channels
()
==
1
);
CV_Assert
(
src
.
channels
()
==
1
);
...
@@ -1435,11 +1435,11 @@ void cv::internal::ComputeJacobians(InputArrayOfArrays objectPoints, InputArrayO
...
@@ -1435,11 +1435,11 @@ void cv::internal::ComputeJacobians(InputArrayOfArrays objectPoints, InputArrayO
}
}
}
}
std
::
vector
<
int
>
idxs
(
param
.
isEstimate
);
std
::
vector
<
uchar
>
idxs
(
param
.
isEstimate
);
idxs
.
insert
(
idxs
.
end
(),
6
*
n
,
1
);
idxs
.
insert
(
idxs
.
end
(),
6
*
n
,
1
);
subMatrix
(
JJ2
,
JJ2
,
idxs
,
idxs
);
subMatrix
(
JJ2
,
JJ2
,
idxs
,
idxs
);
subMatrix
(
ex3
,
ex3
,
std
::
vector
<
int
>
(
1
,
1
),
idxs
);
subMatrix
(
ex3
,
ex3
,
std
::
vector
<
uchar
>
(
1
,
1
),
idxs
);
}
}
void
cv
::
internal
::
EstimateUncertainties
(
InputArrayOfArrays
objectPoints
,
InputArrayOfArrays
imagePoints
,
void
cv
::
internal
::
EstimateUncertainties
(
InputArrayOfArrays
objectPoints
,
InputArrayOfArrays
imagePoints
,
...
...
modules/calib3d/src/fisheye.hpp
浏览文件 @
cefa1dc5
...
@@ -10,7 +10,7 @@ struct CV_EXPORTS IntrinsicParams
...
@@ -10,7 +10,7 @@ struct CV_EXPORTS IntrinsicParams
Vec2d
c
;
Vec2d
c
;
Vec4d
k
;
Vec4d
k
;
double
alpha
;
double
alpha
;
std
::
vector
<
int
>
isEstimate
;
std
::
vector
<
uchar
>
isEstimate
;
IntrinsicParams
();
IntrinsicParams
();
IntrinsicParams
(
Vec2d
f
,
Vec2d
c
,
Vec4d
k
,
double
alpha
=
0
);
IntrinsicParams
(
Vec2d
f
,
Vec2d
c
,
Vec4d
k
,
double
alpha
=
0
);
...
...
modules/calib3d/test/test_fisheye.cpp
浏览文件 @
cefa1dc5
...
@@ -368,7 +368,7 @@ TEST_F(fisheyeTest, EtimateUncertainties)
...
@@ -368,7 +368,7 @@ TEST_F(fisheyeTest, EtimateUncertainties)
double
thresh_cond
=
1e6
;
double
thresh_cond
=
1e6
;
int
check_cond
=
1
;
int
check_cond
=
1
;
param
.
Init
(
cv
::
Vec2d
(
theK
(
0
,
0
),
theK
(
1
,
1
)),
cv
::
Vec2d
(
theK
(
0
,
2
),
theK
(
1
,
2
)),
theD
);
param
.
Init
(
cv
::
Vec2d
(
theK
(
0
,
0
),
theK
(
1
,
1
)),
cv
::
Vec2d
(
theK
(
0
,
2
),
theK
(
1
,
2
)),
theD
);
param
.
isEstimate
=
std
::
vector
<
int
>
(
9
,
1
);
param
.
isEstimate
=
std
::
vector
<
uchar
>
(
9
,
1
);
param
.
isEstimate
[
4
]
=
0
;
param
.
isEstimate
[
4
]
=
0
;
errors
.
isEstimate
=
param
.
isEstimate
;
errors
.
isEstimate
=
param
.
isEstimate
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录