cameraIntrinsicsFromOpenCV
Convert camera intrinsic parameters from OpenCV toMATLAB
Description
converts the OpenCV intrinsics, specified by the input arguments, into a MATLAB®intrinsics
= cameraIntrinsicsFromOpenCV(intrinsicMatrix
,distortionCoefficients
,imageSize
)cameraIntrinsics
objectintrinsics
.
The OpenCV spatial coordinate system specifies the upper-left pixel center at (0,0
), whereas the MATLAB spatial coordinate system specifies the pixel center at (1,1
). ThecameraIntrinsicsFromOpenCV
function compensates for this difference by adding 1 to both of thexandy-values for the converted principal point.
OpenCV intrinsics cannot be converted to a MATLABcameraIntrinsics
object when:
The OpenCV pinhole camera model uses more than five distortion coefficients.
An OpenCV fisheye model is used.
In these cases, you can recalibrate the stereo camera using theCamera Calibrator应用程序。