Features AW00123402000
216 Basler ace USB 3.0
illustrate setting the Offset X, Offset Y, Width, and Height parameter values. As an example, Auto
Function ROI 1 is selected:
// Select the appropriate auto function ROI for gain auto and exposure
// auto control. Currently, auto function ROI1 is predefined to gather
// the pixel data needed for gain auto and exposure auto control.
// Set the position and size of the auto function ROI
// Note: The code uses AOI instead of ROI. For example, ROI1 is named
// AOI1 in the code.1
camera.AutoFunctionAOISelector.SetValue(AutoFunctionAOISelector_AOI1 );
camera.AutoFunctionAOIOffsetX.SetValue( 0 );
camera.AutoFunctionAOIOffsetY.SetValue( 0 );
camera.AutoFunctionAOIWidth.SetValue(1294);
camera.AutoFunctionAOIWidth.GetMax();
camera.AutoFunctionAOIHeight.SetValue(964);
camera.AutoFunctionAOIHeight.GetMax();
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.1 on page 37.