User Manual - twentynine
5.7
Digital Image and Pixel Formats
This section describes pixel and image layouts supported by SMARTEK Vision digital cameras. While a
pixel format describes how a single pixel data is constructed, the image layout represents how the data are
ordered in the memory of the captured device. It is identical for all cameras.
5.7.1
Image Layout
Figure 53 shows the image layout valid for all SMARTEK Vision digital cameras. An image transmitted out
of a camera is considered to be a two-dimensional array of pixels. The pixels are stored in subsequent
addresses in the memory of the capture device, usually a PC. Each pixel, depending on its format, is either
8 bits or 16 bits wide. It is described by two indices; the first index indicates the row while the second index
indicates the column where the pixel is located:
•
P(x, y) means the pixel located at row x and at column y.
•
P(1, 1) means the pixel located at row 1 and at column 1.
•
P(1, 2) means the pixel located at row 1 and at column 2.
An image with a width of
w
and a height of
h
starts at the upper left corner and ends at the bottom right
corner. P(1, 1) is the first pixel of the image, P(h, w) is the last pixel of the image.
P
(1,1)
P
(1,2)
P
(1,3)
…
P
(1,w-2)
P
(1,w-1)
P
(2,1)
P
(2,2)
P
(2,3)
…
P
(2,w-2)
P
(2,w-1)
…
…
…
…
…
…
…
…
…
…
…
…
P
(h-1,1)
P
(h-1,2)
P
(h-1,3)
…
P
(h-1,w-2)
P
(h-1,w-1)
P
(h,1)
P
(h,2)
P
(h,3)
…
P
(h,w-2)
P
(h,w-1)
P
(1,w)
P
(2,w)
…
…
P
(h-1,w)
P
(h,w)
column
row
Figure 53: Image layout and transmission sequence
The subsequent sections will describe all the supported formats for each pixel P in an image, for
monochrome cameras as well as color cameras.
75
SMARTEK Vision | User Manual - twentynine | Doc. v1.0.2