Matrix Multiplication 3X3 - Smartek UCC User Manual

Twentynine camera family
Table of Contents

Advertisement

8.2.7 Matrix Multiplication 3x3

N-by-N matrices are commonly used to transform RGB colors, scale them and control hue, saturation and
contrast. The CameraSuite SDK provides a configurable 3-by-3 matrix for various applications, modifying
color images using matrix multiplication operations.
For these operations to be correct, they must be operated on linear brightness values.
Note
If the input image is in a non-linear brightness space, RGB colors must be transformed
into a linear space before these matrix operations are used.
Figure 111 shows how the matrix multiplication is done, where m
/ B
are the input original values for the red, green and blue channel and R
i
values for the red, green and blue channel.
In effect, this calculates:
Common applications for the 3x3 matrix operation are for example color correction, color balancing and the
conversion from color to luminance.
Matrix Multiplication 3x3 in the CameraSuite SDK
In the CameraSuite SDK the ImageProcAPI provides the programming interface to configure and execute
the 3x3 matrix multiplication algorithm. The bit depths and image types supported are shown in Table 59.
Supported image input
Table 59: Matrix Multiplication - supported bit depth and image type
m
m
00
01
m
m
10
11
m
m
20
21
Figure 111: Matrix Multi RGB parameters and results
R
= m
o
G
= m
o
B
= m
o
Monochrome
Raw Bayer
Color RGB
m
R
02
i
m
×
G
=
12
i
m
B
22
i
· R
+ m
· G
+ m
· B
00
i
01
i
02
· R
+ m
· G
+ m
· B
10
i
11
i
12
· R
+ m
· G
+ m
· B
20
i
21
i
22
Supported bit depth
8 bit per channel
134
User Manual - twentynine
are the matrix elements, R
xx
/ G
/ B
are the output color
o
o
o
R
o
G
o
B
o
i
i
i
16 bit per channel
SMARTEK Vision | User Manual - twentynine | Doc. v1.0.2
/ G
i
i

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gcc

Table of Contents