lilanxiao / Rotated_IoU

Differentiable IoU of rotated bounding boxes using Pytorch
MIT License
415 stars 64 forks source link

Box transformation #21

Closed WangYueFt closed 2 years ago

WangYueFt commented 3 years ago

Thanks so much for the great code base. If my coordinate system is like the following, do you know how I should do the transformation? Thanks!

front: x left: y z: up the definition of yaw is like: y axis: -pi y axis negative: 0 x axis: -pi/2

lilanxiao commented 3 years ago

Hmm, my code uses a common right-handed coordinate system. But your coordinate system looks special.

Suppose a bounding box in your coordinate system is defined with 7 parameters (x, y, z, a, b, c, angle), you could transform it to (-y, x, z, b, a, c, angle).

Then, the parameters should be compatible with my code.