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
b421ebef
Commit
b421ebef
authored
Sep 14, 2017
by
Vladislav Sovrasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imgproc: slightly change the signature of undistortPoints overload
parent
701c7e56
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
test_undistort_points.cpp
modules/calib3d/test/test_undistort_points.cpp
+1
-1
imgproc.hpp
modules/imgproc/include/opencv2/imgproc.hpp
+2
-3
undistort.cpp
modules/imgproc/src/undistort.cpp
+3
-3
No files found.
modules/calib3d/test/test_undistort_points.cpp
View file @
b421ebef
...
...
@@ -107,7 +107,7 @@ TEST(Calib3d_Undistort, stop_criteria)
const
double
maxError
=
1e-6
;
TermCriteria
criteria
(
TermCriteria
::
MAX_ITER
+
TermCriteria
::
EPS
,
100
,
maxError
);
std
::
vector
<
Point2d
>
pt_undist_vec
;
undistortPoints
(
pt_distorted_vec
,
pt_undist_vec
,
cameraMatrix
,
distCoeffs
,
criteria
);
undistortPoints
(
pt_distorted_vec
,
pt_undist_vec
,
cameraMatrix
,
distCoeffs
,
noArray
(),
noArray
(),
criteria
);
std
::
vector
<
Point2d
>
pt_redistorted_vec
;
std
::
vector
<
Point3d
>
pt_undist_vec_homogeneous
;
...
...
modules/imgproc/include/opencv2/imgproc.hpp
View file @
b421ebef
...
...
@@ -3040,10 +3040,9 @@ CV_EXPORTS_W void undistortPoints( InputArray src, OutputArray dst,
@note Default version of cv::undistortPoints does 5 iterations to compute undistorted points.
*/
CV_EXPORTS_AS
(
undistortPoints
Ext
)
void
undistortPoints
(
InputArray
src
,
OutputArray
dst
,
CV_EXPORTS_AS
(
undistortPoints
Iter
)
void
undistortPoints
(
InputArray
src
,
OutputArray
dst
,
InputArray
cameraMatrix
,
InputArray
distCoeffs
,
TermCriteria
criteria
,
InputArray
R
=
noArray
(),
InputArray
P
=
noArray
());
InputArray
R
,
InputArray
P
,
TermCriteria
criteria
);
//! @} imgproc_transform
...
...
modules/imgproc/src/undistort.cpp
View file @
b421ebef
...
...
@@ -475,15 +475,15 @@ void cv::undistortPoints( InputArray _src, OutputArray _dst,
InputArray
_Rmat
,
InputArray
_Pmat
)
{
undistortPoints
(
_src
,
_dst
,
_cameraMatrix
,
_distCoeffs
,
TermCriteria
(
TermCriteria
::
MAX_ITER
,
5
,
0.01
),
_Rmat
,
_Pmat
);
undistortPoints
(
_src
,
_dst
,
_cameraMatrix
,
_distCoeffs
,
_Rmat
,
_Pmat
,
TermCriteria
(
TermCriteria
::
MAX_ITER
,
5
,
0.01
)
);
}
void
cv
::
undistortPoints
(
InputArray
_src
,
OutputArray
_dst
,
InputArray
_cameraMatrix
,
InputArray
_distCoeffs
,
TermCriteria
criteria
,
InputArray
_Rmat
,
InputArray
_Pmat
)
InputArray
_Pmat
,
TermCriteria
criteria
)
{
Mat
src
=
_src
.
getMat
(),
cameraMatrix
=
_cameraMatrix
.
getMat
();
Mat
distCoeffs
=
_distCoeffs
.
getMat
(),
R
=
_Rmat
.
getMat
(),
P
=
_Pmat
.
getMat
();
...
...
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