threshold-median-filter The filter takes the mean of adjacent pixels and applies a median filter to that pixel if the mean is below the threshold chosen by the user. User interface Input image Output image