User Manual - twentynine
5.7.4
Mono12Packed
In an image with the pixel format Mono12Packed each two pixel values P are represented by three bytes or
24 bits. The Mono12Packed pixel format in SMARTEK Vision digital cameras is specified as shown below:
PixelFormat
Mono12Packed
Description
12-bit packed monochrome
unsigned
Pixel size
3 bytes for two pixels
Value range
0 . . . 4095
Table 42: Specification PixelFormat Mono12Packed
The memory layout of the image with
Mono12Packed
pixel format is shown in Figure 56. Starting from the
upper left of the image, byte 0 and first 4 bits of byte 1 represents the value of pixel P(1, 1). Second half of
bits in byte 1 together with all bits from byte 2 represent the value of pixel P(1, 2) and so on. In each byte
the bitorder is by default little endian; the least significant bit is assigned to bit 0 and the most significant bit
to bit 11.
Byte 1
Byte 0
P (1, 1)
Byte 3
(MSB)
Byte 2
P (1, 2)
Byte 3
Byte 3
(MSB)
…
…
4
0 ... 3
…
0 ... 3
11
…
11
4
Figure 56: Image layout with pixel format Mono12Packed
5.7.5
Mono16
In an image with pixel format
Mono16
each pixel value P is represented by two bytes or 16 bits. The
Mono16
pixel format in SMARTEK Vision digital cameras is specified as shown below:
PixelFormat
Mono16
Description
16-bit monochrome unsigned
Pixel size
2 byte
Value range
0 . . . 65535
Table 43: Specification PixelFormat Mono16
The two bytes are arranged in little-endian order, which means that the Least Significant Byte (LSB) is
arranged first, the most significant byte second. The memory layout of the image with the Mono16 pixel
format is shown in Figure 57. Starting with the upper left of the image, byte 0 and byte 1 represent the value
of pixel P(1, 1), byte 2 and byte 3 represent the value of pixel P(1, 2) and so on. The least significant bit is
assigned to bit 0 of the first byte, the most significant bit to bit 7 of the second byte.
77
SMARTEK Vision | User Manual - twentynine | Doc. v1.0.2