This adaptive median filter works by converting RGB images to GRAYSCALE image and produces a GRAYSCALE image. If an RGB output is required each R, G, B channel should be passed through the filter function and recombined to an image.
do install required packages with: pip install -r requirements.txt