NVIDIA/retinanet-examples

Inquiries about the code of rotate_box

dhkdnduq opened this issue · 0 comments

origin:
u = np.stack([np.cos(theta), -np.sin(theta)])
l = np.stack([np.sin(theta), np.cos(theta)])
R = np.vstack([u, l])
When proceeding to the corresponding code, rotate in the opposite direction.
Check the segm points.

opinion:
u = np.stack([np.cos(theta), np.sin(theta)])
l = np.stack([-np.sin(theta), np.cos(theta)])
R = np.vstack([u, l])

Isn't this right?