User`s manual
Pixel Formats, Tap Geometries, and Color Filters
94 Basler aviator Camera Link
Setting the Pixel Format Using Basler Pylon
You can use the pylon API to set the Pixel Format parameter value from within your application. The
following code snippet illustrates using the API to set the parameter value:
// Set pixel format to Mono 8
Camera.PixelFormat.SetValue( PixelFormat_Mono8 );
// Set pixel format to Mono 12
Camera.PixelFormat.SetValue( PixelFormat_Mono12 );
// Set pixel format to Bayer GR 8
Camera.PixelFormat.SetValue( PixelFormat_BayerGR8 );
// Set pixel format to Bayer GR 12
Camera.PixelFormat.SetValue( PixelFormat_BayerGR12 );
You can also use the Basler pylon Viewer application to easily set the parameter.
For more information about the pylon API and the pylon Viewer, see Section 4 on page 45.
Setting the Pixel Format Using Direct Register Access
To set the sensor pixel format via direct register access:
Set the value of the Pixel Format register to Mono 8 or Mono 12 on monochrome cameras or to
Basler GR 8 or Basler GR 12 on color cameras.
For more information about setting parameters via direct register access, see Section 4 on page 45.