Skip to content

Commit 698f805

Browse files
committed
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2 parents 96742da + f220e98 commit 698f805

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

modules/ccalib/include/opencv2/ccalib/omnidir.hpp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@
3939
//
4040
//M*/
4141

42-
#include <opencv2/core.hpp>
43-
#include <vector>
44-
4542
#ifndef __OPENCV_OMNIDIR_HPP__
4643
#define __OPENCV_OMNIDIR_HPP__
4744

45+
#include "opencv2/core.hpp"
46+
#include "opencv2/core/affine.hpp"
47+
#include <vector>
48+
4849
namespace cv
4950
{
5051
namespace omnidir
@@ -102,6 +103,10 @@ namespace omnidir
102103
CV_EXPORTS_W void projectPoints(InputArray objectPoints, OutputArray imagePoints, InputArray rvec, InputArray tvec,
103104
InputArray K, double xi, InputArray D, OutputArray jacobian = noArray());
104105

106+
/** @overload */
107+
CV_EXPORTS void projectPoints(InputArray objectPoints, OutputArray imagePoints, const Affine3d& affine,
108+
InputArray K, double xi, InputArray D, OutputArray jacobian = noArray());
109+
105110
/** @brief Undistort 2D image points for omnidirectional camera using CMei's model
106111
107112
@param distorted Array of distorted image points, vector of Vec2f
@@ -126,15 +131,15 @@ namespace omnidir
126131
@param R Rotation transform between the original and object space : 3x3 1-channel, or vector: 3x1/1x3, with depth CV_32F or CV_64F
127132
@param P New camera matrix (3x3) or new projection matrix (3x4)
128133
@param size Undistorted image size.
129-
@param mltype Type of the first output map that can be CV_32FC1 or CV_16SC2 . See convertMaps()
134+
@param m1type Type of the first output map that can be CV_32FC1 or CV_16SC2 . See convertMaps()
130135
for details.
131136
@param map1 The first output map.
132137
@param map2 The second output map.
133138
@param flags Flags indicates the rectification type, RECTIFY_PERSPECTIVE, RECTIFY_CYLINDRICAL, RECTIFY_LONGLATI and RECTIFY_STEREOGRAPHIC
134139
are supported.
135140
*/
136141
CV_EXPORTS_W void initUndistortRectifyMap(InputArray K, InputArray D, InputArray xi, InputArray R, InputArray P, const cv::Size& size,
137-
int mltype, OutputArray map1, OutputArray map2, int flags);
142+
int m1type, OutputArray map1, OutputArray map2, int flags);
138143

139144
/** @brief Undistort omnidirectional images to perspective images
140145

modules/ccalib/src/omnidir.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ namespace cv { namespace
7575

7676
/////////////////////////////////////////////////////////////////////////////
7777
//////// projectPoints
78+
void cv::omnidir::projectPoints(InputArray objectPoints, OutputArray imagePoints,
79+
const Affine3d& affine, InputArray K, double xi, InputArray D, OutputArray jacobian)
80+
{
81+
projectPoints(objectPoints, imagePoints, affine.rvec(), affine.translation(), K, xi, D, jacobian);
82+
}
83+
7884
void cv::omnidir::projectPoints(InputArray objectPoints, OutputArray imagePoints,
7985
InputArray rvec, InputArray tvec, InputArray K, double xi, InputArray D, OutputArray jacobian)
8086
{

0 commit comments

Comments
 (0)