mexopencv  3.4.1
MEX interface for OpenCV library
Files | Functions | Variables
calib3d: Camera Calibration and 3D Reconstruction

Files

file  calibrateCamera.cpp
 mex interface for cv::calibrateCamera
 
file  calibrationMatrixValues.cpp
 mex interface for cv::calibrationMatrixValues
 
file  composeRT.cpp
 mex interface for cv::composeRT
 
file  computeCorrespondEpilines.cpp
 mex interface for cv::computeCorrespondEpilines
 
file  convertPointsFromHomogeneous.cpp
 mex interface for cv::convertPointsFromHomogeneous
 
file  convertPointsToHomogeneous.cpp
 mex interface for cv::convertPointsToHomogeneous
 
file  correctMatches.cpp
 mex interface for cv::correctMatches
 
file  decomposeEssentialMat.cpp
 mex interface for cv::decomposeEssentialMat
 
file  decomposeHomographyMat.cpp
 mex interface for cv::decomposeHomographyMat
 
file  decomposeProjectionMatrix.cpp
 mex interface for cv::decomposeProjectionMatrix
 
file  drawChessboardCorners.cpp
 mex interface for cv::drawChessboardCorners
 
file  estimateAffine2D.cpp
 mex interface for cv::estimateAffine2D
 
file  estimateAffine3D.cpp
 mex interface for cv::estimateAffine3D
 
file  estimateAffinePartial2D.cpp
 mex interface for cv::estimateAffinePartial2D
 
file  filterSpeckles.cpp
 mex interface for cv::filterSpeckles
 
file  find4QuadCornerSubpix.cpp
 mex interface for cv::find4QuadCornerSubpix
 
file  findChessboardCorners.cpp
 mex interface for cv::findChessboardCorners
 
file  findCirclesGrid.cpp
 mex interface for cv::findCirclesGrid
 
file  findEssentialMat.cpp
 mex interface for cv::findEssentialMat
 
file  findFundamentalMat.cpp
 mex interface for cv::findFundamentalMat
 
file  findHomography.cpp
 mex interface for cv::findHomography
 
file  fisheyeCalibrate.cpp
 mex interface for cv::fisheye::calibrate
 
file  fisheyeDistortPoints.cpp
 mex interface for cv::fisheye::distortPoints
 
file  fisheyeEstimateNewCameraMatrixForUndistortRectify.cpp
 mex interface for cv::fisheye::estimateNewCameraMatrixForUndistortRectify
 
file  fisheyeInitUndistortRectifyMap.cpp
 mex interface for cv::fisheye::initUndistortRectifyMap
 
file  fisheyeProjectPoints.cpp
 mex interface for cv::fisheye::projectPoints
 
file  fisheyeStereoCalibrate.cpp
 mex interface for cv::fisheye::stereoCalibrate
 
file  fisheyeStereoRectify.cpp
 mex interface for cv::fisheye::stereoRectify
 
file  fisheyeUndistortImage.cpp
 mex interface for cv::fisheye::undistortImage
 
file  fisheyeUndistortPoints.cpp
 mex interface for cv::fisheye::undistortPoints
 
file  getOptimalNewCameraMatrix.cpp
 mex interface for cv::getOptimalNewCameraMatrix
 
file  getValidDisparityROI.cpp
 mex interface for cv::getValidDisparityROI
 
file  initCameraMatrix2D.cpp
 mex interface for cv::initCameraMatrix2D
 
file  matMulDeriv.cpp
 mex interface for cv::matMulDeriv
 
file  StereoBM_.cpp
 mex interface for cv::StereoBM
 
file  StereoSGBM_.cpp
 mex interface for cv::StereoSGBM
 
file  projectPoints.cpp
 mex interface for cv::projectPoints
 
file  recoverPose.cpp
 mex interface for cv::recoverPose
 
file  rectify3Collinear.cpp
 mex interface for cv::rectify3Collinear
 
file  reprojectImageTo3D.cpp
 mex interface for cv::reprojectImageTo3D
 
file  Rodrigues.cpp
 mex interface for cv::Rodrigues
 
file  RQDecomp3x3.cpp
 mex interface for cv::RQDecomp3x3
 
file  sampsonDistance.cpp
 mex interface for cv::sampsonDistance
 
file  solveP3P.cpp
 mex interface for cv::solveP3P
 
file  solvePnP.cpp
 mex interface for cv::solvePnP
 
file  solvePnPRansac.cpp
 mex interface for cv::solvePnPRansac
 
file  stereoCalibrate.cpp
 mex interface for cv::stereoCalibrate
 
file  stereoRectify.cpp
 mex interface for cv::stereoRectify
 
file  stereoRectifyUncalibrated.cpp
 mex interface for cv::stereoRectifyUncalibrated
 
file  triangulatePoints.cpp
 mex interface for cv::triangulatePoints
 
file  validateDisparity.cpp
 mex interface for cv::validateDisparity
 

Functions

double calibrateCamera (InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, Size imageSize, InputOutputArray cameraMatrix, InputOutputArray distCoeffs, OutputArrayOfArrays rvecs, OutputArrayOfArrays tvecs, OutputArray stdDeviationsIntrinsics, OutputArray stdDeviationsExtrinsics, OutputArray perViewErrors, int flags=0, TermCriteria criteria=TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, DBL_EPSILON))
 
double calibrateCamera (InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, Size imageSize, InputOutputArray cameraMatrix, InputOutputArray distCoeffs, OutputArrayOfArrays rvecs, OutputArrayOfArrays tvecs, int flags=0, TermCriteria criteria=TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, DBL_EPSILON))
 
void calibrationMatrixValues (InputArray cameraMatrix, Size imageSize, double apertureWidth, double apertureHeight, double &fovx, double &fovy, double &focalLength, Point2d &principalPoint, double &aspectRatio)
 
void composeRT (InputArray rvec1, InputArray tvec1, InputArray rvec2, InputArray tvec2, OutputArray rvec3, OutputArray tvec3, OutputArray dr3dr1=noArray(), OutputArray dr3dt1=noArray(), OutputArray dr3dr2=noArray(), OutputArray dr3dt2=noArray(), OutputArray dt3dr1=noArray(), OutputArray dt3dt1=noArray(), OutputArray dt3dr2=noArray(), OutputArray dt3dt2=noArray())
 
void computeCorrespondEpilines (InputArray points, int whichImage, InputArray F, OutputArray lines)
 
void convertPointsFromHomogeneous (InputArray src, OutputArray dst)
 
void convertPointsHomogeneous (InputArray src, OutputArray dst)
 
void convertPointsToHomogeneous (InputArray src, OutputArray dst)
 
void correctMatches (InputArray F, InputArray points1, InputArray points2, OutputArray newPoints1, OutputArray newPoints2)
 
void decomposeEssentialMat (InputArray E, OutputArray R1, OutputArray R2, OutputArray t)
 
int decomposeHomographyMat (InputArray H, InputArray K, OutputArrayOfArrays rotations, OutputArrayOfArrays translations, OutputArrayOfArrays normals)
 
void decomposeProjectionMatrix (InputArray projMatrix, OutputArray cameraMatrix, OutputArray rotMatrix, OutputArray transVect, OutputArray rotMatrixX=noArray(), OutputArray rotMatrixY=noArray(), OutputArray rotMatrixZ=noArray(), OutputArray eulerAngles=noArray())
 
void drawChessboardCorners (InputOutputArray image, Size patternSize, InputArray corners, bool patternWasFound)
 
cv::Mat estimateAffine2D (InputArray from, InputArray to, OutputArray inliers=noArray(), int method=RANSAC, double ransacReprojThreshold=3, size_t maxIters=2000, double confidence=0.99, size_t refineIters=10)
 
int estimateAffine3D (InputArray src, InputArray dst, OutputArray out, OutputArray inliers, double ransacThreshold=3, double confidence=0.99)
 
cv::Mat estimateAffinePartial2D (InputArray from, InputArray to, OutputArray inliers=noArray(), int method=RANSAC, double ransacReprojThreshold=3, size_t maxIters=2000, double confidence=0.99, size_t refineIters=10)
 
void filterSpeckles (InputOutputArray img, double newVal, int maxSpeckleSize, double maxDiff, InputOutputArray buf=noArray())
 
bool find4QuadCornerSubpix (InputArray img, InputOutputArray corners, Size region_size)
 
bool findChessboardCorners (InputArray image, Size patternSize, OutputArray corners, int flags=CALIB_CB_ADAPTIVE_THRESH+CALIB_CB_NORMALIZE_IMAGE)
 
bool findCirclesGrid (InputArray image, Size patternSize, OutputArray centers, int flags, const Ptr< FeatureDetector > &blobDetector, CirclesGridFinderParameters parameters)
 
bool findCirclesGrid (InputArray image, Size patternSize, OutputArray centers, int flags=CALIB_CB_SYMMETRIC_GRID, const Ptr< FeatureDetector > &blobDetector=SimpleBlobDetector::create())
 
bool findCirclesGrid2 (InputArray image, Size patternSize, OutputArray centers, int flags, const Ptr< FeatureDetector > &blobDetector, CirclesGridFinderParameters2 parameters)
 
Mat findEssentialMat (InputArray points1, InputArray points2, InputArray cameraMatrix, int method=RANSAC, double prob=0.999, double threshold=1.0, OutputArray mask=noArray())
 
Mat findEssentialMat (InputArray points1, InputArray points2, double focal=1.0, Point2d pp=Point2d(0, 0), int method=RANSAC, double prob=0.999, double threshold=1.0, OutputArray mask=noArray())
 
Mat findFundamentalMat (InputArray points1, InputArray points2, int method=FM_RANSAC, double ransacReprojThreshold=3., double confidence=0.99, OutputArray mask=noArray())
 
Mat findFundamentalMat (InputArray points1, InputArray points2, OutputArray mask, int method=FM_RANSAC, double ransacReprojThreshold=3., double confidence=0.99)
 
Mat findHomography (InputArray srcPoints, InputArray dstPoints, int method=0, double ransacReprojThreshold=3, OutputArray mask=noArray(), const int maxIters=2000, const double confidence=0.995)
 
Mat findHomography (InputArray srcPoints, InputArray dstPoints, OutputArray mask, int method=0, double ransacReprojThreshold=3)
 
Mat getOptimalNewCameraMatrix (InputArray cameraMatrix, InputArray distCoeffs, Size imageSize, double alpha, Size newImgSize=Size(), Rect *validPixROI=0, bool centerPrincipalPoint=false)
 
Rect getValidDisparityROI (Rect roi1, Rect roi2, int minDisparity, int numberOfDisparities, int SADWindowSize)
 
Mat initCameraMatrix2D (InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, Size imageSize, double aspectRatio=1.0)
 
void matMulDeriv (InputArray A, InputArray B, OutputArray dABdA, OutputArray dABdB)
 
void projectPoints (InputArray objectPoints, InputArray rvec, InputArray tvec, InputArray cameraMatrix, InputArray distCoeffs, OutputArray imagePoints, OutputArray jacobian=noArray(), double aspectRatio=0)
 
int recoverPose (InputArray E, InputArray points1, InputArray points2, InputArray cameraMatrix, OutputArray R, OutputArray t, InputOutputArray mask=noArray())
 
int recoverPose (InputArray E, InputArray points1, InputArray points2, OutputArray R, OutputArray t, double focal=1.0, Point2d pp=Point2d(0, 0), InputOutputArray mask=noArray())
 
int recoverPose (InputArray E, InputArray points1, InputArray points2, InputArray cameraMatrix, OutputArray R, OutputArray t, double distanceThresh, InputOutputArray mask=noArray(), OutputArray triangulatedPoints=noArray())
 
float rectify3Collinear (InputArray cameraMatrix1, InputArray distCoeffs1, InputArray cameraMatrix2, InputArray distCoeffs2, InputArray cameraMatrix3, InputArray distCoeffs3, InputArrayOfArrays imgpt1, InputArrayOfArrays imgpt3, Size imageSize, InputArray R12, InputArray T12, InputArray R13, InputArray T13, OutputArray R1, OutputArray R2, OutputArray R3, OutputArray P1, OutputArray P2, OutputArray P3, OutputArray Q, double alpha, Size newImgSize, Rect *roi1, Rect *roi2, int flags)
 
void reprojectImageTo3D (InputArray disparity, OutputArray _3dImage, InputArray Q, bool handleMissingValues=false, int ddepth=-1)
 
void Rodrigues (InputArray src, OutputArray dst, OutputArray jacobian=noArray())
 
Vec3d RQDecomp3x3 (InputArray src, OutputArray mtxR, OutputArray mtxQ, OutputArray Qx=noArray(), OutputArray Qy=noArray(), OutputArray Qz=noArray())
 
double sampsonDistance (InputArray pt1, InputArray pt2, InputArray F)
 
int solveP3P (InputArray objectPoints, InputArray imagePoints, InputArray cameraMatrix, InputArray distCoeffs, OutputArrayOfArrays rvecs, OutputArrayOfArrays tvecs, int flags)
 
bool solvePnP (InputArray objectPoints, InputArray imagePoints, InputArray cameraMatrix, InputArray distCoeffs, OutputArray rvec, OutputArray tvec, bool useExtrinsicGuess=false, int flags=SOLVEPNP_ITERATIVE)
 
bool solvePnPRansac (InputArray objectPoints, InputArray imagePoints, InputArray cameraMatrix, InputArray distCoeffs, OutputArray rvec, OutputArray tvec, bool useExtrinsicGuess=false, int iterationsCount=100, float reprojectionError=8.0, double confidence=0.99, OutputArray inliers=noArray(), int flags=SOLVEPNP_ITERATIVE)
 
double stereoCalibrate (InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints1, InputArrayOfArrays imagePoints2, InputOutputArray cameraMatrix1, InputOutputArray distCoeffs1, InputOutputArray cameraMatrix2, InputOutputArray distCoeffs2, Size imageSize, InputOutputArray R, InputOutputArray T, OutputArray E, OutputArray F, OutputArray perViewErrors, int flags=CALIB_FIX_INTRINSIC, TermCriteria criteria=TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, 1e-6))
 
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))
 
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(), Rect *validPixROI1=0, Rect *validPixROI2=0)
 
bool stereoRectifyUncalibrated (InputArray points1, InputArray points2, InputArray F, Size imgSize, OutputArray H1, OutputArray H2, double threshold=5)
 
void triangulatePoints (InputArray projMatr1, InputArray projMatr2, InputArray projPoints1, InputArray projPoints2, OutputArray points4D)
 
void validateDisparity (InputOutputArray disparity, InputArray cost, int minDisparity, int numberOfDisparities, int disp12MaxDisp=1)
 

Variables

 LMEDS
 
 RANSAC
 
 RHO
 
 SOLVEPNP_ITERATIVE
 
 SOLVEPNP_EPNP
 
 SOLVEPNP_P3P
 
 SOLVEPNP_DLS
 
 SOLVEPNP_UPNP
 
 SOLVEPNP_AP3P
 
 SOLVEPNP_MAX_COUNT
 
 CALIB_CB_ADAPTIVE_THRESH
 
 CALIB_CB_NORMALIZE_IMAGE
 
 CALIB_CB_FILTER_QUADS
 
 CALIB_CB_FAST_CHECK
 
 CALIB_CB_SYMMETRIC_GRID
 
 CALIB_CB_ASYMMETRIC_GRID
 
 CALIB_CB_CLUSTERING
 
 CALIB_USE_INTRINSIC_GUESS
 
 CALIB_FIX_ASPECT_RATIO
 
 CALIB_FIX_PRINCIPAL_POINT
 
 CALIB_ZERO_TANGENT_DIST
 
 CALIB_FIX_FOCAL_LENGTH
 
 CALIB_FIX_K1
 
 CALIB_FIX_K2
 
 CALIB_FIX_K3
 
 CALIB_FIX_K4
 
 CALIB_FIX_K5
 
 CALIB_FIX_K6
 
 CALIB_RATIONAL_MODEL
 
 CALIB_THIN_PRISM_MODEL
 
 CALIB_FIX_S1_S2_S3_S4
 
 CALIB_TILTED_MODEL
 
 CALIB_FIX_TAUX_TAUY
 
 CALIB_USE_QR
 
 CALIB_FIX_TANGENT_DIST
 
 CALIB_FIX_INTRINSIC
 
 CALIB_SAME_FOCAL_LENGTH
 
 CALIB_ZERO_DISPARITY
 
 CALIB_USE_LU
 
 CALIB_USE_EXTRINSIC_GUESS
 
 FM_7POINT
 
 FM_8POINT
 
 FM_LMEDS
 
 FM_RANSAC
 

Detailed Description