admin管理员组

文章数量:1287608

I am working on image rotations in 3D space. I am trying to rotate an image on a 3D graph based on Yaw, Pitch, and Roll angles.

I've succeeded in plotting the image as a polygon. Here is a view for Pitch, Roll, and Yaw equal to 0 degrees:

But when I start rotating the image, the distance between the optical center (black dot) and the image change. Here is an example where I plot the image by changing the Pitch angle from 0 to 90 degrees with a step of 5 degrees (Yaw = Roll = 0°):

Normally this distance (red arrows) should be unchanged by the transformation, right? Is there something I missed in my transformations based on rotation matrices?

I am working on image rotations in 3D space. I am trying to rotate an image on a 3D graph based on Yaw, Pitch, and Roll angles.

I've succeeded in plotting the image as a polygon. Here is a view for Pitch, Roll, and Yaw equal to 0 degrees:

But when I start rotating the image, the distance between the optical center (black dot) and the image change. Here is an example where I plot the image by changing the Pitch angle from 0 to 90 degrees with a step of 5 degrees (Yaw = Roll = 0°):

Normally this distance (red arrows) should be unchanged by the transformation, right? Is there something I missed in my transformations based on rotation matrices?

Share Improve this question edited Feb 23 at 20:57 halfer 20.5k19 gold badges109 silver badges202 bronze badges asked Feb 23 at 14:06 TitiTiti 111 bronze badge 1
  • In order to help you, we would need to see your transformation matrices, the angles you're trying to rotate by, and the points you used as input. Otherwise we would just be guessing. – beaker Commented Feb 23 at 15:08
Add a comment  | 

1 Answer 1

Reset to default 0

Normally this distance (red arrows) should be unchanged by the transformation, right? Is there something I missed in my transformations based on rotation matrices?

This appears to be an artifact of the way you've plotted this data. Note that the image is a distance of 1.0 away from the black dot both before and after the rotation, but it looks smaller, because the Z axis is more closely spaced than the Y axis.

本文标签: Image rotations in 3D space based on rotation matricesVector norm changeStack Overflow