question about affine transformation?
Closed this issue · 1 comments
Senwang98 commented
Hi, @SuperMHP
I met one question about affine transformation in
GUPNet/code/lib/datasets/kitti_utils.py
Line 398 in f4e2660
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!