Applies a median filter to input images. The median filter can be used to reduce noise while preserving edges.
image: Input image.
image
windowSize: The size of the filter in pixels. The larger the filter the smoother the result.
windowSize
image: Filtered output image.