Convert between MATLAB stereoParameters and OpenCV stereoRectify stereo calibration

后端 未结 3 1508
南旧
南旧 2021-02-03 15:07

I wish to convert a MATLAB stereoParameters structure to intrinsics and extrinsics matrices to use in OpenCV\'s stereoRectify.

If I understood http://docs.opencv.org/2.4

3条回答
  •  梦谈多话
    2021-02-03 16:07

    https://stackoverflow.com/a/28317841 gives the formula for the Q matrix:

    Tx is from matrix T. cx, cy and cx' are from the camera matrices. f is some sensible combination of their x and y focal lengths.

    Still dunno how to get P1, P2, R1 and R2 though. Anybody?

提交回复
热议问题