Grabbing 3D Data

<< Click to Display Table of Contents >>

Navigation:  NxLib API > HowTo's > Getting 3D Data >

Grabbing 3D Data

The necessary steps to get mm x, y and z coordinates for all pixels are as follows

Open the stereo camera by running the Open command

Grab an image pair by calling Capture

Perform depth computation via ComputeDisparityMap

Convert the disparity values into x,y,z mm coordinates by calling ComputePointMap

(Close the camera by calling Close)

 

After the call to ComputePointMap the PointMap node of the camera holds metric 3D point coordinates in world coordinates.

Code Examples

hmtoggle_plus1C++
hmtoggle_plus1Halcon/HDevelop