You are here: Start » Program Examples » Hand-Eye Calibration - Editor

Hand-Eye Calibration - Editor

Aim

The goal is to perform a Hand-Eye Calibration using dedicated editor built into the RectifyImage filter.

Input

An image of the circle calibration grid.

Image with objects.

Output

Rectified image with world coordinates point.

Hints

Go through all 3 steps in the calibration editor built into RectifyImage filter.

Solution (AVS)

  1. Go to the ACQUIRE section. Add a LoadImage filter and specify the images directory in inFile.

  2. Add a RectifyImage filter and connect the outImage output of LoadImage filter with the inImage input of RectifyImage filter.

  3. Prepare the inRectificationMap. Dedicated editor can be found in the Properties Window after clicking three-dot button.

  4. In the first step of calibration remove lens distortion:

    • Load an image with the calibration grid.
    • Use the ruler above the preview to measure the circle radius and enter it in the parameters section.
    • Use Locate button to find calibration circles.
    • Calibration will be most precise within the green area. In order to achieve best performance on entire picture the calibration grid should cover it completely. You can use a number of pictures to achieve this. Just load them into the editor on the right.
    • Use Compute Calibration Model to calculate Camera calibration model and activate the next step.
  5. In the second step of the calibration, we will determine the transformation between Real-world points and image points:

    • Load an image with the calibration grid.
    • Choose Calibration grid >> Labeled grid.
    • Use Locate button to find calibration circles.
    • Select black cursor icon.
    • Click on point "A" marked with an arrow (5).
    • In the table with points insert World X [mm]: 133,64 and World Y [mm]: 493,8.
    • Click on point "B".
    • In the table with points insert World X [mm]: 1064,83 and World Y [mm]: 477,07.
    • Click on point "C".
    • In the table with points insert World X [mm]: 172,41 and World Y [mm]: -136,56.
    • Click on point "D".
    • In the table with points insert World X [mm]: 890,79 and World Y [mm]: 24,28.
    • Click the Compute World Transform button.
    • Click the Next > button.
  6. Last step of the calibration is used to set parameters of the image after rectification:

    • Load an image with the calibration grid.
    • Click the Generate Rectification Map button.
    • Click the OK button.
  7. Go back to Main. Image rectification is ready to use. To utilize created transformation, in the PROCESS section add a ImagePointsToWorldPlane filter to main program and select Point variant. Connect the outRectifiedTransform output of RectifyImage filter with the inTransform input of ImagePointsToWorldPlane filter.

  8. Use filters' properties and previews to check if the results are correct. Set inImagePoint as shown in the image below. Make sure to use rectified image (arrow "1"). Set ImagePoint in one of the box's corner (arrow "2") and click OK.

Macrofilter Main

Used Filters

Icon Name Description
LoadImage Loads a single image from a file.
RectifyImage Image undistortion, perspective removal.
ImagePointToWorldPlane Undistortion, image to world coordinate transformation.

Further Readings