IMAQ Flat Field Correction VI
- Updated2023-02-21
- 5 minute(s) read
Requires: NI Vision Development Module
Corrects image intensity using flat field and dark field images and returns a corrected image. Recreate the flat field image whenever the imaging setup changes. Use the IMAQ Compute Average Image VI or the IMAQ Compute Median Image VI to create the image for the Flat Field Image input.
Refer to the NI Vision Concepts Help for more information about flat field correction.

![]() |
ROI Descriptor defines the region of interest (ROI) within which the flat field operation is computed.
|
||||||||||
![]() |
Image Src is a reference to the source image. |
||||||||||
![]() |
Image Dst is the reference to destination flat field image |
||||||||||
![]() |
Flat Field Image is a flat field image used to correct Image Src. |
||||||||||
![]() |
Dark Field Image is a dark field image used to correct Image Src. You can create a dark field image by covering the camera lens and capturing an image. |
||||||||||
![]() |
error in (no error) describes the error status before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
||||||||||
![]() |
Correction Options is a cluster of options that affect how the VI creates the flat field image.
|
||||||||||
![]() |
Optimize Correction? enables/disables pre-computation of flat field images. When enabled, the VI will consume more memory to speed up the correction of subsequent images. |
||||||||||
![]() |
Corrected Image is the resulting corrected image. |
||||||||||
![]() |
Flat Field Image is a duplicate reference to the flat field image, and contains the computation table for faster correction if Optimize Correction? is enabled. |
||||||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|
Examples
Refer to the following for an example that uses this VI.
- LabVIEW\examples\Vision\Feature Correspondence\Corner and Feature Point Detection.vi
- LabVIEW\examples\Vision\Image Processing\Flat Field Estimation.vi















