Grabbing 3D Data

Navigation:  NxLib API > HowTo's >

Grabbing 3D Data

Previous pageReturn to chapter overviewNext page

Show/Hide Hidden Text

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