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
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-YUV
• 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-YUV
• 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)
Содержание Solios eV-CL
Страница 1: ...Matrox Solios eV Installation and Hardware Reference Manual no Y11113 101 0300 January 15 2014...
Страница 22: ...22 Chapter 1 Introduction...
Страница 66: ...66 Chapter 4 Matrox Solios eV CL hardware reference...
Страница 119: ...Limited Warranty Refer to the warranty statement that came with your product...
Страница 120: ......