Extract point cloud data of particular detection and removing background point cloud

how do you get thoses values ?
To get the depth values you shoudl retrieve the MEASURE::DEPTH which is a one channel matrix containing Z values.
It looks like you display Point Cloud values from this sample:

In this case the Depth (Z) is the 3rd value. Its unit depends the InitParameters you set.