42#ifndef __OPENCV_OMNIDIR_HPP__
43#define __OPENCV_OMNIDIR_HPP__
45#include "opencv2/core.hpp"
46#include "opencv2/core/affine.hpp"
64 CALIB_FIX_GAMMA = 128,
65 CALIB_FIX_CENTER = 256
69 RECTIFY_PERSPECTIVE = 1,
70 RECTIFY_CYLINDRICAL = 2,
72 RECTIFY_STEREOGRAPHIC = 4
104 InputArray K,
double xi, InputArray D,
OutputArray jacobian = noArray());
108 InputArray K,
double xi, InputArray D,
OutputArray jacobian = noArray());
157 InputArray Knew = cv::noArray(),
const Size& new_size =
Size(), InputArray R =
Mat::eye(3, 3, CV_64F));
176 CV_EXPORTS_W
double calibrate(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints,
Size size,
243 CV_EXPORTS_W
void stereoReconstruct(InputArray image1, InputArray image2, InputArray K1, InputArray D1, InputArray xi1,
244 InputArray K2, InputArray D2, InputArray xi2, InputArray R, InputArray T,
int flag,
int numDisparities,
int SADWindowSize,
246 OutputArray pointCloud = cv::noArray(),
int pointType = XYZRGB);
250 void initializeCalibration(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints,
Size size,
OutputArrayOfArrays omAll,
253 void initializeStereoCalibration(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints1, InputArrayOfArrays imagePoints2,
254 const Size& size1,
const Size& size2,
OutputArray om,
OutputArray T,
OutputArrayOfArrays omL,
OutputArrayOfArrays tL,
OutputArray K1,
OutputArray D1,
OutputArray K2,
OutputArray D2,
255 double &xi1,
double &xi2,
int flags,
OutputArray idx);
257 void computeJacobian(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, InputArray parameters,
Mat& JTJ_inv,
Mat& JTE,
int flags,
260 void computeJacobianStereo(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints1, InputArrayOfArrays imagePoints2,
261 InputArray parameters,
Mat& JTJ_inv,
Mat& JTE,
int flags,
double epsilon);
263 void encodeParameters(InputArray K, InputArrayOfArrays omAll, InputArrayOfArrays tAll, InputArray distoaration,
double xi,
OutputArray parameters);
265 void encodeParametersStereo(InputArray K1, InputArray K2, InputArray om, InputArray T, InputArrayOfArrays omL, InputArrayOfArrays tL,
266 InputArray D1, InputArray D2,
double xi1,
double xi2,
OutputArray parameters);
273 void estimateUncertainties(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, InputArray parameters,
Mat& errors,
Vec2d& std_error,
double& rms,
int flags);
275 void estimateUncertaintiesStereo(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints1, InputArrayOfArrays imagePoints2, InputArray parameters,
Mat& errors,
276 Vec2d& std_error,
double& rms,
int flags);
278 double computeMeanReproErr(InputArrayOfArrays imagePoints, InputArrayOfArrays proImagePoints);
280 double computeMeanReproErr(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, InputArray K, InputArray D,
double xi, InputArrayOfArrays omAll,
281 InputArrayOfArrays tAll);
283 double computeMeanReproErrStereo(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints1, InputArrayOfArrays imagePoints2, InputArray K1, InputArray K2,
284 InputArray D1, InputArray D2,
double xi1,
double xi2, InputArray om, InputArray T, InputArrayOfArrays omL, InputArrayOfArrays TL);
286 void subMatrix(
const Mat& src,
Mat& dst,
const std::vector<int>& cols,
const std::vector<int>& rows);
288 void flags2idx(
int flags, std::vector<int>& idx,
int n);
290 void flags2idxStereo(
int flags, std::vector<int>& idx,
int n);
292 void fillFixed(
Mat&G,
int flags,
int n);
294 void fillFixedStereo(
Mat& G,
int flags,
int n);
296 double findMedian(
const Mat& row);
298 Vec3d findMedian3(InputArray mat);
302 void compose_motion(InputArray _om1, InputArray _T1, InputArray _om2, InputArray _T2,
Mat& om3,
Mat& T3,
Mat& dom3dom1,
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:295
n-dimensional dense array class
Definition: mat.hpp:802
static MatExpr eye(int rows, int cols, int type)
Returns an identity matrix of the specified size and type.
Template class for specifying the size of an image or rectangle.
Definition: core/types.hpp:316
The class defining termination criteria for iterative algorithms.
Definition: core/types.hpp:853
Template class for short numerical vectors, a partial case of Matx
Definition: matx.hpp:342
CV_EXPORTS_W void undistortPoints(InputArray src, OutputArray dst, InputArray cameraMatrix, InputArray distCoeffs, InputArray R=noArray(), InputArray P=noArray())
Computes the ideal point coordinates from the observed point coordinates.
CV_EXPORTS_W void projectPoints(InputArray objectPoints, InputArray rvec, InputArray tvec, InputArray cameraMatrix, InputArray distCoeffs, OutputArray imagePoints, OutputArray jacobian=noArray(), double aspectRatio=0)
Projects 3D points to an image plane.
CV_EXPORTS_W void initUndistortRectifyMap(InputArray cameraMatrix, InputArray distCoeffs, InputArray R, InputArray newCameraMatrix, Size size, int m1type, OutputArray map1, OutputArray map2)
Computes the undistortion and rectification transformation map.
CV_EXPORTS_W void stereoRectify(InputArray cameraMatrix1, InputArray distCoeffs1, InputArray cameraMatrix2, InputArray distCoeffs2, Size imageSize, InputArray R, InputArray T, OutputArray R1, OutputArray R2, OutputArray P1, OutputArray P2, OutputArray Q, int flags=CALIB_ZERO_DISPARITY, double alpha=-1, Size newImageSize=Size(), CV_OUT Rect *validPixROI1=0, CV_OUT Rect *validPixROI2=0)
Computes rectification transforms for each head of a calibrated stereo camera.
CV_EXPORTS_W double stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints1, InputArrayOfArrays imagePoints2, InputOutputArray cameraMatrix1, InputOutputArray distCoeffs1, InputOutputArray cameraMatrix2, InputOutputArray distCoeffs2, Size imageSize, OutputArray R, OutputArray T, OutputArray E, OutputArray F, int flags=CALIB_FIX_INTRINSIC, TermCriteria criteria=TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, 1e-6))
これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
CV_EXPORTS_W double calibrate(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, Size size, InputOutputArray K, InputOutputArray xi, InputOutputArray D, OutputArrayOfArrays rvecs, OutputArrayOfArrays tvecs, int flags, TermCriteria criteria, OutputArray idx=noArray())
Perform omnidirectional camera calibration, the default depth of outputs is CV_64F.
CV_EXPORTS_W void undistortImage(InputArray distorted, OutputArray undistorted, InputArray K, InputArray D, InputArray xi, int flags, InputArray Knew=cv::noArray(), const Size &new_size=Size(), InputArray R=Mat::eye(3, 3, CV_64F))
Undistort omnidirectional images to perspective images
CV_EXPORTS_W void stereoReconstruct(InputArray image1, InputArray image2, InputArray K1, InputArray D1, InputArray xi1, InputArray K2, InputArray D2, InputArray xi2, InputArray R, InputArray T, int flag, int numDisparities, int SADWindowSize, OutputArray disparity, OutputArray image1Rec, OutputArray image2Rec, const Size &newSize=Size(), InputArray Knew=cv::noArray(), OutputArray pointCloud=cv::noArray(), int pointType=XYZRGB)
Stereo 3D reconstruction from a pair of images
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75