User Manual - twentynine
8.2.10
RGB to Grayscale Conversion
Color images often have to be converted to grayscale, providing input data for subsequent digital image
processing like edge detection filters, OCR etc. The RGB-to-grayscale conversion performs a reduction of
the RGB color data into a single channel luminance image.
Figure 117 shows an example of RGB-to-gray conversion. The image on the left represents the original
RGB color image. The output grayscale image on the right is the result of the conversion process.
Input color image
Output grayscale image
Figure 117: Example of RGB-to-gray conversion
RGB-to-Gray Conversion in the CameraSuite SDK
In the
CameraSuite SDK
the
ImageProcAPI
provides the programming interface for executing the
RGB-to-gray conversion. The bit depths and image types supported are shown in Table 63. For a detailed
description on how to use this feature please refer to the
CameraSuite API Help
located in the doc folder of
the
CameraSuite SDK
installation directory.
Supported bit depth
Supported image input
8 bit per channel
16 bit per channel
Monochrome
Raw Bayer
Color RGB
X
X
Table 63: RGB to Gray conversion - supported bit depths and image types
141
SMARTEK Vision | User Manual - twentynine | Doc. v1.0.2