crossview_3d_pose_tracking icon indicating copy to clipboard operation
crossview_3d_pose_tracking copied to clipboard

how to set z_worlds

Open azuryl opened this issue 3 years ago • 2 comments

Dear longcw

thank your great job now I want to use back_project function to realize a single point in the image plane correspods to a ray in 3D space

in calibration.py I defined def project(self, points_3d, camera_id): camera = self.cameras[camera_id] # type: Camera return camera.back_project(points_2d, z_worlds)

can you kindly tell me how to set z_worlds, I have tired set z_worlds=[ ] bur there are no output in points_3d

Thank you

azuryl avatar Aug 14 '20 00:08 azuryl

The ray back-projected by a 2D point can be determined by two 3D points, the one is the camera location we already have, the other is a point on the ray. So you can use the back_project function to select that point with any z (z != camera location z).

Here back-project means to get the 3D point of a 2D point in one image when we know the height of the 3D point (z_world).

longcw avatar Aug 14 '20 01:08 longcw

Dear longcw

thank you reply do you have example which use the back_project function to select that point with any z

Thank you

azuryl avatar Aug 14 '20 14:08 azuryl