yinyunie / depth_renderer

Rendering color and depth images for ShapeNet models.
MIT License
86 stars 20 forks source link

Build correspondence between pixels and points #2

Closed KeeganZQJ closed 2 years ago

KeeganZQJ commented 3 years ago

Hi, thanks for your helpful work. I would like to ask if there is a convenient way of outputing correspondence relationships between pixels on the rendered image and points on the corresponding 3D model. I notice that "visualization/draw_pc_from_depth.py" can generate partial point clouds from specific viewpoints. Is there any function to obtain such "pixel-point" mapping? Look forward to your reply as soon as possible!

yinyunie commented 3 years ago

It is actually a back-projection function. Yes, you can find it in draw_pc_from_depth.py. What you need are a camera intrinsic matrix and the pixel location on the image.