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
f29912b5
Commit
f29912b5
authored
Mar 29, 2012
by
Ilya Lysenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added wrappers of cvCorrectMatches (#1350)
parent
0404b298
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
calib3d.hpp
modules/calib3d/include/opencv2/calib3d/calib3d.hpp
+3
-0
triangulate.cpp
modules/calib3d/src/triangulate.cpp
+15
-0
No files found.
modules/calib3d/include/opencv2/calib3d/calib3d.hpp
View file @
f29912b5
...
...
@@ -678,6 +678,9 @@ CV_EXPORTS_W void triangulatePoints( InputArray projMatr1, InputArray projMatr2,
InputArray
projPoints1
,
InputArray
projPoints2
,
OutputArray
points4D
);
CV_EXPORTS_W
void
correctMatches
(
InputArray
F
,
InputArray
points1
,
InputArray
points2
,
OutputArray
newPoints1
,
OutputArray
newPoints2
);
template
<>
CV_EXPORTS
void
Ptr
<
CvStereoBMState
>::
delete_obj
();
/*!
...
...
modules/calib3d/src/triangulate.cpp
View file @
f29912b5
...
...
@@ -423,3 +423,18 @@ void cv::triangulatePoints( InputArray _projMatr1, InputArray _projMatr2,
cvTriangulatePoints
(
&
cvMatr1
,
&
cvMatr2
,
&
cvPoints1
,
&
cvPoints2
,
&
cvPoints4D
);
}
void
cv
::
correctMatches
(
InputArray
_F
,
InputArray
_points1
,
InputArray
_points2
,
OutputArray
_newPoints1
,
OutputArray
_newPoints2
)
{
Mat
F
=
_F
.
getMat
();
Mat
points1
=
_points1
.
getMat
(),
points2
=
_points2
.
getMat
();
CvMat
cvPoints1
=
points1
,
cvPoints2
=
points2
;
CvMat
cvF
=
F
;
_newPoints1
.
create
(
points1
.
size
(),
points1
.
type
());
_newPoints2
.
create
(
points2
.
size
(),
points2
.
type
());
CvMat
cvNewPoints1
=
_newPoints1
.
getMat
(),
cvNewPoints2
=
_newPoints2
.
getMat
();
cvCorrectMatches
(
&
cvF
,
&
cvPoints1
,
&
cvPoints2
,
&
cvNewPoints1
,
&
cvNewPoints2
);
}
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