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
72384798
Commit
72384798
authored
Sep 10, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Sep 10, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1415 from znah:sfm_py
parents
54c68309
79d51c33
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
calib3d.hpp
modules/calib3d/include/opencv2/calib3d.hpp
+3
-3
cv2.cpp
modules/python/src2/cv2.cpp
+17
-0
No files found.
modules/calib3d/include/opencv2/calib3d.hpp
View file @
72384798
...
...
@@ -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
View file @
72384798
...
...
@@ -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
)
{
...
...
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