title: How to convert Matlab's fisheye calibration results into OpenCV format?
body: <p>I am using Matlab's Camera Calibrator to calibrate a bunch of images from a fisheye camera.</p>
  <p>How can I translate the results into OpenCV format?</p>
  <p>Results in Matlab:</p>
  <p><a href="https://i.stack.imgur.com/7s8Qp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7s8Qp.png" alt="enter image description here" /></a></p>
  <p>Format I would like to convert them to:</p>
  <p><a href="https://i.stack.imgur.com/ASCS8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ASCS8.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/3Y8hx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3Y8hx.png" alt="enter image description here" /></a></p>
  <p>I looked into and found out that Scaramuzza's model is the one that the Matlab fisheye calibration uses, but I don't see clearly anywhere what exactly each value stands for, or the order.</p>
  <p>Edit: The cameraIntrinsicsToOpenCV function provided by Matlab does not work with fisheye models, it is only for pinhole/default camera model, hence the question!</p>