cameraIntrinsicsToOpenCV
Description
[
converts a MATLAB®intrinsicMatrix
,distortionCoefficients
) = cameraIntrinsicsToOpenCV (intrinsics
)cameraIntrinsics
orcameraParameters
object, specified byintrinsics
, to OpenCV camera intrinsic 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
). ThecameraIntrinsicsToOpenCV
function compensates for this difference by subtracting 1 from both thexandy-values for the converted principal point.
OpenCV camera intrinsic parameters do not include the skew of a pinhole camera model. Therefore, only the intrinsics that were estimated without the skew can be exported to OpenCV.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2021b