Examples

Along with the EnsensoSDK software, the installer always installs example programs. The C and C++ examples are provided as VisualStudio 2010 solutions/projects and as makefiles for building them on Linux. Examples for using your Ensenso Camera from within Halcon are provided as HDevelop scripts. On Windows you can simply look into the “EnsensoSDK/Examples” folder in your start menu to find all example programs and scripts. On Linux you should look for the examples in the /opt/ensenso folder.

C

nxSimple

Shows how to grab and process an image using basic C API calls.

nxListCams

Lists all connected cameras.

nxLoadParams

Loads camera parameters from a JSON file.

nxReadArray

Displays all numbers of an Array/Matrix-Node.

C++ (Windows/Linux)

nxSimple

Shows how to grab and process an image using the C++ object oriented API.

nxListCams

Lists all connected cameras.

nxSaveImages

Saves raw and rectified images as png files.

nxSetBinaryData

Shows how to read and write Binary node data.

nxRenderPointMap

Renders a telecentric point map with data from multiple cameras.

C++ (Windows only)

nxDisparityMapViewer

Shows how to capture images and compute and display a disparity map in a simple WinAPI application.

nxImageAggregation

Shows how to use multiple images to capture distant/dark objects.

C#

nxSimple

Shows how to grab and process an image using the C++ object oriented API.

nxDisparityMapViewer

Shows how to capture images and compute and display a disparity map in a small application using Windows Forms.

nxCalibrateHandEye

A small console application to demonstrate how to use cmdCalibrateHandEye to perform camera-to-robot calibration for different setups.

MVTec Halcon

SimpleLive

Shows how to grab XYZ-data from a camera and displays the separate channels in HDevelop.

SimpleLive-RenderView

Grabs 3D data continously and displays the rendered 3D surfaces as color image.

SurfaceMatching-Single

Uses a single Ensenso camera to learn an object surface from the first 3D image and then searches for the taught object in all following images.

WorkspaceCalibration

Performs a workspace calibration.