Median Filter#
Using the Feature#
General Information#
The median filter is multi-directional and 3x3 weighted. It can be used on mono and color cameras.
Enabling the Median Filter#
Set the MedianFilter
parameter to true
.
External Links#
Sample Code#
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK; /* Return value of pylon methods */
/* Enable the median filter */
errRes = PylonDeviceSetBooleanFeature(hdev, "MedianFilter", 1);
CHECK(errRes);
/* Disable the median filter */
errRes = PylonDeviceSetBooleanFeature(hdev, "MedianFilter", 0);
CHECK(errRes);
You can also use the pylon Viewer to easily set the parameters.