mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Merge pull request #21931 from victor1234:calib3d-add-undistortImagePoints
Add undistortImagePoints function * Add undistortImagePoints function undistortPoints has unclear interface and additional functionality. New function computes only undistorted image points position * Add undistortImagePoints test * Add TermCriteria * Fix layout
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#define OPENCV_CALIB3D_HPP
|
||||
|
||||
#include "opencv2/core.hpp"
|
||||
#include "opencv2/core/types.hpp"
|
||||
#include "opencv2/features2d.hpp"
|
||||
#include "opencv2/core/affine.hpp"
|
||||
|
||||
@@ -3721,6 +3722,21 @@ void undistortPoints(InputArray src, OutputArray dst,
|
||||
InputArray cameraMatrix, InputArray distCoeffs,
|
||||
InputArray R, InputArray P, TermCriteria criteria);
|
||||
|
||||
/**
|
||||
* @brief Compute undistorted image points position
|
||||
*
|
||||
* @param src Observed points position, 2xN/Nx2 1-channel or 1xN/Nx1 2-channel (CV_32FC2 or
|
||||
CV_64FC2) (or vector\<Point2f\> ).
|
||||
* @param dst Output undistorted points position (1xN/Nx1 2-channel or vector\<Point2f\> ).
|
||||
* @param cameraMatrix Camera matrix \f$\vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\f$ .
|
||||
* @param distCoeffs Distortion coefficients
|
||||
*/
|
||||
CV_EXPORTS_W
|
||||
void undistortImagePoints(InputArray src, OutputArray dst, InputArray cameraMatrix,
|
||||
InputArray distCoeffs,
|
||||
TermCriteria = TermCriteria(TermCriteria::MAX_ITER + TermCriteria::EPS, 5,
|
||||
0.01));
|
||||
|
||||
//! @} calib3d
|
||||
|
||||
/** @brief The methods in this namespace use a so-called fisheye camera model.
|
||||
|
||||
Reference in New Issue
Block a user