JiahaoPlus/camera-calibration

Transform point in one image to another

chaiban opened this issue · 1 comments

Hi @JiahaoPlus ,

Your code is very helpful.

Do you have any idea on how I can get point in one camera image to another ?

Know parameters: Transformation from Board to Camera 1
Transformation from Board to Camera 2

I need to find transformation from camera 2 to camera 1. So I did inverse(B to C2) * (B to C1). but the translation is wrong. DO you have any idea ?

Thank you

Hi @chaiban ,

Thanks for your question. Are you using homogeneous transformation? If yes, I guess (B to C1) * inverse(B to C2) is what you need.

p_{C1} = H_{C2}^{C1} * p_{C2}
= H_B^{C1} * H_{C2}^B * p_{C2}

p_{C1}: point in C1
p_{C2}: point in C2
H_{C2}^{C1}: homogeneous transformation from C2 to C1
H_B^{C1}: homogeneous transformation from B to C1
H_{C2}^B: homogeneous transformation from C2 to B

Cheers