I have obtained a Rotation Matrix from Rodrigues() and I want to apply it to a point [1,0,0]
in order to find its coordinates in Camera System (ignoring for the moment Translation vector)
How can I do that in Python?
Thanks in advance.
I've found a solution that seems to work. Here is sample code to transform point (1,0,0):
# Computing rotation matrix
rotation_matrix = np.zeros(shape=(3,3))
cv2.Rodrigues(rvecs, rotation_matrix)
#Apply rotation matrix to point
original_point = np.matrix([[1],[0],[0]])
rotated_point = rotation_matrix*original_point
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With