stereoParametersToOpenCV
Description
[
converts a MATLAB®
intrinsicMatrix1,distortionCoefficients1,intrinsicMatrix2,distortionCoefficients2,rotationOfCamera2,translationOfCamera2,imageSize] = stereoParametersToOpenCV(stereoParams)stereoParameters object stereoParams to OpenCV
stereo parameters.
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). The stereoParametersToOpenCV function
compensates for this difference by subtracting 1 to both of the x and
y-values for the converted principal point.
OpenCV stereo parameters do not include the skew of a pinhole camera model. Therefore, only the intrinsics estimated without the skew can be exported to OpenCV.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2021b