2
votes

Using the following tutorial for camera calibration, I was able to get a rotation vector and a translation vector. https://docs.opencv.org/master/dc/dbb/tutorial_py_calibration.html

I get the relation between camera matrix and rotation/translation matrix but I can't figure out a way to traduce this rotation vector into a rotation matrix.

Moreover, I am trying to figure out how to get a projection matrix but I am not finding an openCV function to call for that.

Do you know a way for any of those points please ?

Thank you for your help!

1

1 Answers

2
votes

First, the theory of the camera model is quite dense but necessary to understand all of this. In case you are not use to it, here is a Wikipedia path to learn from the basis to the camera and transformation matrix:

Concerning OpenCV, there is a function to apply a perspective transformation called warpPerspective.

You can also take a look at all other function in the Geometric Transform module, there are very interesting too.