Ask Your Question
0

Point Cloud to Depth Map

asked 2020-11-06 12:53:10 -0600

Can someone help me python code on how to map a non-uniform Point Cloud to a Depth Map? I've seen examples in C, but I haven't seen one in Python, so I was wondering if someone has an approach.

edit retag flag offensive close merge delete

Comments

how to map a non-uniform Point Cloud

please try to explain "non-uniform Point Cloud" in a better way

berak gravatar imageberak ( 2020-11-06 14:05:10 -0600 )edit

Please share the link to the working C++ code.

sjhalayka gravatar imagesjhalayka ( 2020-11-06 17:36:30 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-11-23 11:12:31 -0600

hardikdava gravatar image

Hello, you can use opencv function cv::projectPoint. You have to give your point cloud as vector of 3D points, intrinsic matrix and distortion matrix which will give 2D points according to perspective geometry then if 2D points are inside your image size then save z value of respective point at projected point pixel value. Do this for every points of pointcloud at the end you will get your depth map.

edit flag offensive delete link more

Comments

that's still a sparse array of points, not at all a "depth map"

berak gravatar imageberak ( 2020-11-23 11:22:46 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-11-06 12:53:10 -0600

Seen: 6,821 times

Last updated: Nov 06 '20