User Manual - twentynine
8.1.2
Average Luminance Calculation
The Average Luminance algorithm sums up all pixel values on each channel of an image and calculates the
average value by dividing the sum of pixel values by number of pixels on this channel:
Averagevalue
channel
=
P
Pixelvalue
channel
Totalpixels
channel
For single channel images only one average value is calculated, while for raw/color images each channel
has its own value.
Calculating average values of an image is a fundamental operation in image processing and serves as a
basis calculation for algorithms like auto exposure and auto white balancing.
Average Luminance Calculation in the CameraSuite SDK
In the
CameraSuite SDK
the
ImageProcAPI
provides the programming interface to generate average
luminance data of an image. The bit depth and image type supported are shown in Table 51. For a detailed
description on how to use the average value calculation 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
X
X
Raw Bayer
X
X
Color RGB
X
X
Table 51: Average luminance calculation - supported bit depth and image types
111
SMARTEK Vision | User Manual - twentynine | Doc. v1.0.2