single-shot-pro-cam-calib icon indicating copy to clipboard operation
single-shot-pro-cam-calib copied to clipboard

Rotation matrix and translation matrix problem

Open fare129 opened this issue 9 months ago • 4 comments

Hello, thank you again for your help. Now I find two thorny questions:

  1. After I calibrate according to the requirements, is the translation matrix given arranged according to [X, Y, Z]? This is obviously inconsistent with the position map obtained by the operation. From the given map, it can be clearly seen that if displayed according to [X, Y, Z], the translation matrix should be [416.707, -129.316, 246.134], Instead of the [246.134, -129.316, 416.707] you gave.
  2. If the translation matrix is not correct, is the rotation order of the rotation matrix also incorrect? I looked at the source code and saw the rotation sequence of XYZ. Is this the final rotation sequence? If not, so what? Please let me know. Looking forward to your reply 1714194896723 1714194918551 1714194936939 1714194975092

fare129 avatar Apr 27 '24 05:04 fare129

Translation vector (T) and the location of the projector (prjOrg) are different things. https://github.com/BingyaoHuang/single-shot-pro-cam-calib/blob/cd7fda6b98d86175ccb4a5a0669998f311c55b00/%2BReconstruct/visualizePts3d.m#L30

BingyaoHuang avatar Apr 27 '24 07:04 BingyaoHuang

Okay, what about the rotation matrix? Is it rotated in the XYZ direction on the translation vector, or in the reprojected XYZ direction? Or some other rotation sequence.

fare129 avatar Apr 27 '24 07:04 fare129

It follows OpenCV coordinate system and aims to rotate a point from camera view to projector view space.

BingyaoHuang avatar Apr 27 '24 07:04 BingyaoHuang

What I want to say is that according to the results, the translation matrix is the camera translation amount obtained by taking the projector as the origin of the coordinates. So the rotation matrix should also be the rotation of the camera coordinate system relative to the projector coordinate system, right? If this is the case, I would like to ask, what is the rotation sequence? Because the rotation order is different, the restored coordinate system coordinates are different, which is very important to me. Could you please let me know?

fare129 avatar Apr 27 '24 07:04 fare129