| Customize Help

Color processing and analysis overview



Although most cameras can acquire color images, most analysis modules only operate on monochrome images. In these cases, you must do one of the following: convert the color image to grayscale, create a child buffer from one of the three color bands, or copy one of the three color bands to a 1-band buffer. Using MIL-Lite, you can perform these operations and store the transformed data in a monochrome buffer. This data can then be passed to an analysis module, which typically requires the full version of MIL.

You can, however, implement advanced color processing and analysis on color images directly, with the MIL Color Analysis module. You can use this module to perform the following color-based procedures:

  • Transformation (relative color calibration). The transformation operation allows you to adjust color data according to a specific color reference, using relative color calibration. This can be useful to, for example, homogenize colors that can appear unalike when taken with different cameras or illuminants.

  • Distance. The distance operation allows you to calculate the difference in color between two images or to calculate the distance between a color image and a color constant. This can be useful to, for example, visualize the difference in color between images, or detect color defects.

  • Matching. The matching operation allows you to define color-samples composed of individual color elements, and use them for color identification or supervised color segmentation. This can be useful to, for example, identify the color of an object found with a pattern recognition module (such as MIL Model Finder), or segment colors to determine the percentage of color in an image.

  • Projection. The projection operation allows you to separate a selected color from a rejected one, convert color images to grayscale, or calculate an image's covariance matrix or its principal color components. This can be useful to, for example, discard an unwanted color from an image, or perform a mathematically optimal color-to-grayscale transformation.

The full version of MIL is required to use the MIL Color Analysis module.