map pixel in image to point cloud

Hi I need a function that can map all the pixels in an image to point cloud using hfov_image , vfov_image , heading , phi , theta and (x,y,z) of camera / car

This has been answered here: https://github.com/nutonomy/nuscenes-devkit/issues/716