Median

Function
The Median function applies a 3 x 3 median filter. It is good for the removal of individual
dots and noise.

Parameters
Type
Defaults
Function
channels
string
"rgba" The channels to which the filter is applied.
threshold
float
1 The change is allowed if the change is above or below this threshold value.
thresholdType
int
0 This defines if the result is below (0) or above (1) the threshold to allow the change.

Synopsis

image Median( image, 
  const char * channels,
  float threshold,
  int thresholdType 
  
);

Script

image = Median( image, "channels", threshold, thresholdType);

Command Line

shake -median channels threshold thresholdType etc...