# Point Cloud to Depth Image

**URL:** https://discourse.paraview.org/t/point-cloud-to-depth-image/11938
**Category:** ParaView Support
**Created:** [April 20, 2023, 4:41pm UTC](https://discourse.paraview.org/t/point-cloud-to-depth-image/11938 "2023-04-20T16:41:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pelle\_Thielmann](https://discourse.paraview.org/user_avatar/discourse.paraview.org/pelle_thielmann/32/11447_2.png) [@Pelle\_Thielmann](https://discourse.paraview.org/u/Pelle_Thielmann)
#### Post date: [April 20, 2023, 4:42pm UTC](https://discourse.paraview.org/t/point-cloud-to-depth-image/11938/1 "2023-04-20T16:42:00Z")

</div>

Hi everyone

My task/problem is the follwoing:

I got pointclouds from lidar scans. Each scan is like a picture you could say (scanner is not moving, just take 5 seconds scan time and gives me the pointcloud).

1. Render an image of the scan from the origin (scanner) with the depth values (the radius of xyz-coordinates). Could be seen as computing the distance to all points and project these values on a plane (normal facing into the viewing direction). I tried several things and searched for solutions but couldn’t find one.

2. This task is a bit more advanced. As example I would take the Stanford Bunny as a pointcloud. Now I set an arbitrary point as my “camera”. I want to do the same thing as in 1). Calculate the distance from all other points to the camera point. Project the distance values on a plane with the normal facing into the direction of the center of the bounding box of the pointcloud. (Not considering “hidden” points at first)

I would appreciate any help, solutions or hints in the right direction 🙂
