User`s manual
Standard Features AW00089316000
232 Basler ace GigE
Setting Stacked Zone Imaging Using Basler pylon
You can set the parameter values associated with stacked zone imaging from within your
application software by using the Basler pylon API. The following code snippets illustrate using the
API to set up two zones.
// Enable stacked zone imaging
Camera.StackedZoneImagingEnable.SetValue( true );
// Set the width and offset X for the zones
Camera.Width.SetValue( 200 );
Camera.OffsetX.SetValue( 100 );
// Set zone 1
// Select the zone
Camera.StackedZoneImagingIndex.SetValue( 1 );
// Enable the selected zone
Camera.StackedZoneImagingZoneEnable.SetValue( true );
// Set the offset Y for the selected zone
Camera.StackedZoneImagingZoneOffsetY.SetValue( 100 );
// Set the height for the selected zone
Camera.StackedZoneImagingZoneHeight.SetValue( 100 );
// Set zone 2
// Select the zone
Camera.StackedZoneImagingIndex.SetValue( 2 );
// Enable the selected zone
Camera.StackedZoneImagingZoneEnable.SetValue( true );
// Set the offset Y for the selected zone
Camera.StackedZoneImagingZoneOffsetY.SetValue( 250 );
// Set the height for the selected zone
Camera.StackedZoneImagingZoneHeight.SetValue( 200 );
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon API and the pylon Viewer, see Section 3 on page 39.










