Easy3DCoaxlinkLLE

Support

Required licenses

Easy3D

Recommended images

Location

3D Processing/Easy3DCoaxlinkLLE

Purpose

This sample program demonstrates how to:

  • Acquire depth maps from a Coaxlink 3D LLE frame grabber and optionally save them.

Note

  • You must provide a Coaxlink configuration file to start the acquisition.

  • You can save single or continuous depth maps.

Code highlights

  1. Retrieve the extraction method from the Coaxlink 3D LLE frame grabber.

  2. Set up the resolution of the depth map.

    // Set 16-bit depth map fixed-point precision
    std::string method = getString<StreamModule>("Scan3dExtractionMethod");
    if (method == "PeakDetection_11_5" || method == "CenterOfGravity_11_5")
    {
      // 11.5 fixed point depth map
      depthMap16->SetZResolution(1.0f / 32.0f);
    }
    else if (method == "PeakDetection_8_8" || method == "CenterOfGravity_8_8")
    {
      // 8.8 fixed point depth map
      depthMap16->SetZResolution(1.0f / 256.0f);
    }
    else
    {
      // 16.0 fixed point depth map
      depthMap16->SetZResolution(1.0f);
    }