Given the locations of the vertices of a cuboid in 3D space (8x3
matrix), how can I calculate the following:
- Coordinates of the center of box
- Dimensions of the box: this is pretty simple I guess, just euclidean distance between the correct pairs of points.
- Angle of rotation around the yaw axis
The box i'm working with is a bounding box for 3D object detection. So we can assume that there is no rotation at all along the pitch and roll axis (if that helps). Below shows an example of the setup i have:
I've been able to find stuff online for the inverse calculation, from dimensions to vertices. But i can't find anything in this direction. Would really appreciate any help!