Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
79d51c33
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,发现更多精彩内容 >>
提交
79d51c33
编写于
9月 09, 2013
作者:
A
Alexander Mordvintsev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
expose findEssentialMat, decomposeEssentialMat and recoverPose to Python
上级
77a2529e
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
20 addition
and
3 deletion
+20
-3
modules/calib3d/include/opencv2/calib3d.hpp
modules/calib3d/include/opencv2/calib3d.hpp
+3
-3
modules/python/src2/cv2.cpp
modules/python/src2/cv2.cpp
+17
-0
未找到文件。
modules/calib3d/include/opencv2/calib3d.hpp
浏览文件 @
79d51c33
...
...
@@ -262,16 +262,16 @@ CV_EXPORTS Mat findFundamentalMat( InputArray points1, InputArray points2,
double
param1
=
3.
,
double
param2
=
0.99
);
//! finds essential matrix from a set of corresponding 2D points using five-point algorithm
CV_EXPORTS
Mat
findEssentialMat
(
InputArray
points1
,
InputArray
points2
,
CV_EXPORTS
_W
Mat
findEssentialMat
(
InputArray
points1
,
InputArray
points2
,
double
focal
=
1.0
,
Point2d
pp
=
Point2d
(
0
,
0
),
int
method
=
RANSAC
,
double
prob
=
0.999
,
double
threshold
=
1.0
,
OutputArray
mask
=
noArray
()
);
//! decompose essential matrix to possible rotation matrix and one translation vector
CV_EXPORTS
void
decomposeEssentialMat
(
InputArray
E
,
OutputArray
R1
,
OutputArray
R2
,
OutputArray
t
);
CV_EXPORTS
_W
void
decomposeEssentialMat
(
InputArray
E
,
OutputArray
R1
,
OutputArray
R2
,
OutputArray
t
);
//! recover relative camera pose from a set of corresponding 2D points
CV_EXPORTS
int
recoverPose
(
InputArray
E
,
InputArray
points1
,
InputArray
points2
,
CV_EXPORTS
_W
int
recoverPose
(
InputArray
E
,
InputArray
points1
,
InputArray
points2
,
OutputArray
R
,
OutputArray
t
,
double
focal
=
1.0
,
Point2d
pp
=
Point2d
(
0
,
0
),
InputOutputArray
mask
=
noArray
()
);
...
...
modules/python/src2/cv2.cpp
浏览文件 @
79d51c33
...
...
@@ -688,6 +688,23 @@ bool pyopencv_to(PyObject* obj, Point2f& p, const char* name)
return
PyArg_ParseTuple
(
obj
,
"ff"
,
&
p
.
x
,
&
p
.
y
)
>
0
;
}
template
<
>
bool
pyopencv_to
(
PyObject
*
obj
,
Point2d
&
p
,
const
char
*
name
)
{
(
void
)
name
;
if
(
!
obj
||
obj
==
Py_None
)
return
true
;
if
(
!!
PyComplex_CheckExact
(
obj
))
{
Py_complex
c
=
PyComplex_AsCComplex
(
obj
);
p
.
x
=
saturate_cast
<
double
>
(
c
.
real
);
p
.
y
=
saturate_cast
<
double
>
(
c
.
imag
);
return
true
;
}
return
PyArg_ParseTuple
(
obj
,
"dd"
,
&
p
.
x
,
&
p
.
y
)
>
0
;
}
template
<
>
PyObject
*
pyopencv_from
(
const
Point
&
p
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录