User Manual - twentynine
Gamma curves are defined by the following formula, where x is the percentage input luminance, y the
percentage output luminance, a the darkest percentage brightness value (ideally 0), b the digital gain and c
the gamma.
y
=
a
+
bx
c
Further x can be determined based on the bit depth n by the following formula:
x
=
pixelvalue
2
n
−
1
The appropriate gamma curve can be determined by capturing an image of a calibrated gray scale showing
a linear progression over a brightness of 0% to 100%.
Gamma Correction in CameraSuite SDK
In the
CameraSuite SDK
the
ImageProcAPI
provides the programming interface for setting and executing
the gamma correction algorithm. The bit depth and image types supported are shown in Table 57. For a
detailed description on how to use the digital offset, gain and gamma correction 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 57: Gamma Correction - supported bit depth and image type
128
SMARTEK Vision | User Manual - twentynine | Doc. v1.0.2