As I can see in the offical document,the param discoff of the function “cameracalibration” can only take concern about the tilt angle of the image sensor. If I want to calculate the roll/yaw angle of that,how to do?
you speak of extrinsic camera calibration, i.e. estimating its pose in the world.
intrinsic camera calibration does not do that. it only estimates the optical parameters, which are the camera matrix and distortion coefficients.
First of all, thanks so much for your reply.
In my current situation, a image sensor is placed at a certain position and is fixed with screws. Its length and width are 43 cm. I want to know if it will have movements in the Roll and Yaw directions when it rotates around a point light source, but I only see the Tilt direction in the camera calibration function parameters.
In other words, I want to add a 3x3 matrix representing the rotation of the imaging sensor itself to the leftmost part of the projection matrix provided by OpenCV. How can I solve for this matrix? Could you please offer some suggestions? Does OpenCV have such a function?
Just like the projection matrix shown in the above figure.
I have read of formulations where the camera matrix includes skew coefficients with the f_x and f_y coefficients to complete the upper left 2 \times 2 part of the camera matrix.
If it’s really just rotation, that should be in the pose matrix (the 3 \times 4 matrix), i.e. extrinsic.
So far, after I have acquired a lot of knowledge, it seems that this rotation really needs to be included in the pose matrix (the 3 ×4 matrix).
I have found such a projection matrix as follows. All the rotation operations are placed in the external matrix.
Currently, I am using OpenCV and Ceres to perform optimization, based on a three-dimensional calibration phantom. There are about 10 metal balls in the phantom. The specific positions of these balls relative to the center are known. What algorithm should I use to achieve a good match between the 3D points in space and the 2D points in the image? Could you please give me some suggestions in this regard?
Thanks very much!
what algorithm… the problem is probably a numerical optimization. the problem is too complex for closed form solutions.
so pick any optimization algorithm, formulate your minimization problem in whatever way the algorithm needs it, and run the algorithm.
I’m not a mathematician. I am not in a position to advise on such things.

