AW00123409000 Features
Basler ace USB 3.0 283
Setting the Basler PGI Feature Set
1. Select one of the "allowed" pixel formats (see above).
2. Set the Demosaicing Mode to BaslerPGI. This enables 5×5 color interpolation and engages
Basler PGI image quality optimization.
3. If desired, use the Noise Reduction feature to reach the visual optimum.
4. If desired, use the Sharpness Enhancement feature to reach the visual optimum.
You can set the Basler PGI Feature Set from within your application software by using the Basler
pylon API. The following code snippets illustrate using the API to set the parameter values:
// Set BaslerPGI (5x5) demosaicing and start Basler PGI image quality optimization
camera.DemosaicingMode.SetValue(DemosaicingMode_BaslerPGI);
DemosaicingModeEnums e = camera.(DemosaicingMode_GetValue);
// Set Simple (2x2) demosaicing and disable Basler PGI image quality optimization
camera.DemosaicingMode.SetValue(DemosaicingMode_Simple);
DemosaicingModeEnums e = camera.(DemosaicingMode_GetValue);
// Set noise reduction, a Basler PGI feature
camera.NoiseReduction.SetValue(0.5);
double d = camera.NoiseReduction.GetValue();
// Set sharpness enhancement, a Basler PGI feature
camera.SharpnessEnhancement.SetValue(1.0);
double d = camera.SharpnessEnhancement.GetValue();
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.
To set the Basler PGI Feature Set using Basler pylon: