Which is more preferred for smoothening the image - averaging filter or median filter? code example
Example: Which is more preferred for smoothening the image - averaging filter or median filter?
this reason the median filter is much better at preserving sharp edges than the mean filter.