How to remove light source and illumination optics artifacts from your camera image

Posted by Benny Koene on Mon, Jun 6, 2016

Flat Field Correction (FFC) in cameras for Machine Vision Part 1

This is the first in a series of articles about using Flat Field Correction in high-resolution Machine Vision cameras.


In a Machine Vision inspection system you might use multiple light sources and/or multiple lenses. They might be switched on all at the same time, or they might switch on one after the other to obtain different illumination for subsequent image frames.

In such a configuration each light source, in combination with the illumination optics, might create a different non-uniform background profile on your camera. Preferably you want to get rid of this background profile because it disturbs your image as it is not originating from the object of interest. On your image you prefer to only observe light profiles that are caused by the object that is under inspection.

A typical artifact caused by the light source and illumination optics is, for example, a decrease in intensity towards the edges of the image as illustrated in Figure 1a. What you actually want is shown in Figure 1b.

An example of a typical illumination artifact and an example of how the image looks like after using flat field correction

Figure 1. A typical example of an artifact due to the light source and illumination optics where the intensity towards the edges decreases (a). The desired result is shown in (b). The yellow vertical line in the 25 megapixel images is a measurement probe. The intensity along this line is shown in the lower two images.



We will give you three suggestions of how to remove the influence of the light source on your camera image. The three suggestions should help you to remove low frequency variations in your signal, like in Figure 1a, and create a flat field like in Figure 1b.

  1. Use a homogeneous illumination and optimize your illumination optics.


Of course the best way to eliminate a distortion is by not creating the distortion at all. To achieve this you would have to invest in your illumination hardware. Therefore, this is the most expensive option.


  1. Acquire a reference image.


By acquiring one image with (data), and one image without (reference) the object that is under inspection, you can correct your data by performing a division (data/reference) or subtraction (data - reference). This image-capture sequence and processing would have to be implemented in the host software that reads out the camera.


  1. Check if your camera offers a low frequency flat field correction.


High end machine vision cameras typically offer a form of flat field correction. Depending on how it is implemented this function can correct for distortions in the optical path, if it can be user calibrated. Although flat field correction works with a reference image, like in suggestion 2, the main difference is that the correction is performed within the camera instead of with the host software elsewhere in the imaging system. A corrected image is then outputted from the interface of the camera.


Our next two articles will focus on first the various FFC correction mechanisms that could be present in a camera, followed by an article on how to use FFC in practice.

Click here to read more about the various flat field correction mechanisms that  could be present on your camera.  <>


Related Blogs:

Flat field correction improves machine vision camera uniformity

In-field calibrations for optimal machine vision image accuracy

Advantages of in-camera image processing, how camera technology makes a better picture

Topics: Image Quality Improvements

Previous blog:

Next blog: