User`s manual
AW00049313000 Pixel Data Formats
Basler runner 149
10 Pixel Data Formats
By selecting a pixel data format, you determine the format (layout) of the image data transmitted by
the camera. This section provides detailed information about the available pixel data formats.
10.1 Setting the Pixel Data Format
The setting for the camera’s Pixel Format parameter determines the format of the pixel data that will
be output from the camera. The available pixel formats depend on whether the camera is
monochrome or color. Table 11 lists the pixel formats available on each camera type.
Details of the monochrome camera formats are described in Section 10.2 on page 150 and details
of the color camera formats are described in Section 10.3 on page 156.
You can set the Pixel Format parameter value from within your application software by using the
pylon API. The following code snippet illustrates using the API to set the parameter value:
Camera.PixelFormat.SetValue( PixelFormat_Mono8 );
Camera.PixelFormat.SetValue( PixelFormat_Mono16 );
Camera.PixelFormat.SetValue( PixelFormat_Mono12Packed );
Camera.PixelFormat.SetValue( PixelFormat_RGB8Packed );
Camera.PixelFormat.SetValue( PixelFormat_RGB12Packed );
Camera.PixelFormat.SetValue( PixelFormat_RGB12V1Packed );
Camera.PixelFormat.SetValue( PixelFormat_YUV422Packed );
Camera.PixelFormat.SetValue( PixelFormat_YUV422_YUYV_Packed );
For detailed information about using the pylon API, refer to the Basler pylon Programmer’s Guide
and API Reference.
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon Viewer, see Section 3.1 on page 17.
Mono Camera Pixel Formats Color Camera Pixel Formats
Mono 8
Mono 16
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
Mono 8
RGB 8 Packed
RGB 12 Packed
RGB 12 V1 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
Table 11: Available Pixel Formats










