Workspace Calibration

<< Click to Display Table of Contents >>

Navigation:  HowTo's > Multi Camera Setups and Calibrations >

Workspace Calibration

With a workspace calibration you can change the coordinate system of the PointMap by using a calibration pattern as a reference.

Note: This how-to shows how a workspace calibration can be done with the NxLib. When you only want to do it once, you can also use NxView. Simply open the camera that you want to calibrate and choose the "Workspace Calibration" Mode.

 

To perform a workspace calibration, you will need the following steps.

Place a calibration pattern at a known point of your desired coordinate system (e.g. the origin) such that the camera can see it.

Take an image with the Capture command.

Search for the calibration pattern with the CollectPattern command.

Compute the pose of this pattern with the EstimatePatternPose command.

Execute the CalibrateWorkspace command. Use the estimated pattern pose from the previous step as the PatternPose parameter and give the desired pose of the calibration pattern in your new coordinate system as the DefinedPose parameter.

When the command is done, you can continue with grabbing 3D data. The points will now be in your new coordinate system.

 

Note: The calibration only persists until the camera is closed. To permanently store it on the camera, you can execute the StoreCalibration command with the Link parameter enabled.

Note: To get better calibration results, you can take multiple images of the same calibration pattern and use the Average parameter for the EstimatePatternPose command.

Code Examples

hmtoggle_plus1C++
hmtoggle_plus1Halcon/HDevelop