Attach Calibration Information

NI Vision for LabVIEW Basics

Attach Calibration Information

Now that you have calibrated your setup correctly, you can apply the calibration settings to images that you acquire. Use the IMAQ Set Calibration Info VI to attach the calibration information of the current setup to each image you acquire. This VI takes in a source image containing the calibration information and a destination image that you want to calibrate. The destination image is your inspection image with the calibration information attached to it.

Note  The source image and destination image must be the same size.

Using the calibration information attached to the image, you can accurately convert pixel coordinates to real-world coordinates to make any of the analytic geometry measurements with the IMAQ Convert Pixel to Real World VI. If your application requires that you make shape measurements, you can use the calibrated measurements from the IMAQ Particle Analysis or IMAQ Particle Analysis Report VIs. You also can correct the image by removing distortion with the IMAQ Correct Calibrated Image.

Note  Correcting images is a time-intensive operation.

A calibrated image is not the same as a corrected image. Because calibration information is part of the image, it is propagated throughout the processing and analysis of the image. Functions that modify the image size, such as an image rotation function, void the calibration information. Use the IMAQ Write Image and Vision Info File 2 instance of the IMAQ Write File 2 VI to save the image and all of the attached calibration information to a file.