AW00123409000 Features
Basler ace USB 3.0 301
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 ROI instead of the former AOI. For example, ROI1
// was previously named AOI1 in the code.
camera.AutoFunctionROISelector.SetValue(AutoFunctionROISelector_ROI1 );
camera.AutoFunctionROIOffsetX.SetValue( 0 );
camera.AutoFunction
ROIOffsetY.SetValue( 0 );
camera.AutoFunction
ROIWidth.SetValue(1294); camera.AutoFunctionROI-
Width.GetMax();
camera.AutoFunction
ROIHeight.SetValue(964);
camera.AutoFunction
ROIHeight.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 61.