1 | initial version |
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.