Hi Nada,
The point cloud gives you 3D coordinates for (almost) every pixel, if you can detect the object in image 1, you can get the distance to it. Here's an showing how to measure distances to people.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!