HALCON: Obtain Textured Point Cloud

You are currently viewing the documentation for version 2.3.0. To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ To use the latest version, visit the Mech-Mind Download Center to download it.

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

This topic introduces how to obtain the textured point cloud in Windows using the HALCON samples provided by Mech-Mind.

Data Types

This sample obtains the data in the Range and Intensity channels. The data in these channels are described below.

  • Range: a 2D image containing the X, Y and Z values of points. This channel cannot be disabled.

  • Intensity: The color or monochrome 2D image used to texture the point cloud.

The pixels of the images in the two channels are perfectly aligned and can be used to generate textured point cloud directly.

If you need to set capture regions (Width, Height, OffsetX and OffsetY parameters) for the images in the two channels, make sure that the parameter values are identical. Otherwise, the pixels of the two images will not be aligned, and the images cannot be used to generate textured point cloud directly.

Obtain Textured Point Cloud

Please follow these steps to obtain the textured point cloud:

  1. Download the obtain_textured_point_cloud sample: select Code  Download ZIP.

  2. Open the sample in HDevelop: Open HDevelop, and drag the sample into HDevelop.

  3. Select the line containing the info_framegrabber operator in Program Windows, and click step over in the toolbar or press the F6 key to run this line.

  4. In the Control Variables area, double-click DeviceInfos to display a list of all the available cameras.

    camera information 1
  5. In the list, double-click the camera that you want to connect, and copy the camera name after unique_name: or user_name:.

    camera information 3
    user_name is the custom camera name. You can customize the camera name in Mech-Eye Viewer.
  6. Locate the following line, and replace MechEye with the copied unique_name or user_name.

    DeviceInfo := 'MechEye'
  7. When the point cloud is displayed in the Canvas window, please click the orange Continue button in this window to continue the program execution.

  8. The textured point cloud is stored in the ObjectModel3D variable.

For DEEP (V4) and LSR (V4) series, the 2D image (texture) is obtained for texturing the point cloud by default. If you want to use the 2D image (depth source) instead, please locate the following line and activate (uncomment) it.

set_framegrabber_param (AcqHandle, 'SourceSelector', 'Monochrome')

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.