EasyManua.ls Logo

Matrox Solios eV-CL - Page 64

Matrox Solios eV-CL
120 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
64 Chapter 4: Matrox Solios eV-CL hardware reference
Image data can be converted as follows:
The equations for the YUV16 conversion are described in the following table:
Formatting/
converting data
when grabbing into
Host buffers
When you grab into a Host buffer (for example, using the MIL-Lite function
MdigGrab()), use MdigControl() with M_SOURCE_OFFSET_X/Y,
M_SOURCE_SIZE_X/Y, and/or M_GRAB_SCALE_X/Y to crop or resize
image data when grabbing.
The video formatter is not used to flip images grabbed into Host buffers; the
acquisition controller is responsible for this task. For more information, see the
Acquisition controller section, earlier in this chapter. To flip image data when
grabbing, use MdigControl() with M_GRAB_DIRECTION_X/Y.
While grabbing, the video formatter automatically converts the bit-depth and
color format of the source image to the bit-depth and color format of the
destination buffer. The DCF establishes the source image data, while the
destination grab buffer, allocated using MbufAlloc...(), establishes the output
image data. If your camera and DCF are in Bayer mode, the Matrox Solios eV-CLB
and eV-CLBL will decode the Bayer color-encoded image before it applies color
space conversion.
In Out
8-bit
monochrome
16-bit
monochrome
24-bit
packed
BGR
32-bit
packed
BGRa
48-bit
packed
BGR
16-bit
YUV
(YUYV)
24-bit
RGB
planar
48-bit
RGB
planar
8-bit monochrome
yes yes yes yes yes
16-bit monochrome
yes yes yes yes yes yes
24-bit packed BGR
yes yes yes yes yes
48-bit packed BGR
yes yes yes yes yes yes yes
Color space conversion Equations
RGB-to-YU V Y = 0.299 R + 0.587 G + 0.114 B
U = -0.169 R - 0.331 G +0.500 B + 128
V = 0.500 R - 0.419 G - 0.081 B +128
BGR-to-Y UV Y = 0.114B + 0.587G +0.0229R
U = 0.500B - 0.331G - 0.169R + 2
(res-1)
V = -0.081B - 0.419G + 0.500R + 2
(res-1)

Table of Contents

Related product manuals