SuperMHP/GUPNet

question about affine transformation?

Closed this issue · 1 comments

Hi, @SuperMHP
I met one question about affine transformation in

dst[1, :] = np.array([dst_w * 0.5, dst_h * 0.5], np.float32) + dst_dir

To get affine matrix, we need to know three pixel pairs.
why dst_dir = np.array([0, dst_w * -0.5], np.float32) rather than dst_dir = np.array([dst_w * -0.5, 0], np.float32).
Namely, why use [width-axis,height-axis] to add [height-axis, width-axis]? This is too strange!!!
In my opinion, the second piexl is the left piexl, so we need np.array([dst_w * 0.5, dst_h * 0.5], np.float32) + np.array([dst_w * -0.5, 0], np.float32).
I am not sure if I misunderstand this transformation and wishing for your reply!

Hi, please refer to the CenterNet repo click