HaozheQi / P2B

P2B: Point-to-Box Network for 3D Object Tracking in Point Clouds
189 stars 36 forks source link

distanceBB_Gaussian #2

Closed jiayily closed 4 years ago

jiayily commented 4 years ago

Hello, I have a doubt about the implementation of distanceBB_Gaussian def distanceBB_Gaussian(box1, box2, sigma=1): off1 = np.array([ box1.center[0], box1.center[2], Quaternion(matrix=box1.rotation_matrix).degrees ]) off2 = np.array([ box2.center[0], box2.center[2], Quaternion(matrix=box2.rotation_matrix).degrees ]) dist = np.linalg.norm(off1 - off2) score = np.exp(-0.5 * dist / (sigma * sigma)) return score Why do you use box1.center[0] and box1.center[2] that is x and z? Why not use box1.center[0] and box1.center[1] that is x and y?