This is a function for image denoising using the median filter. The demo video is available here: https://www.youtube.com/watch?v=Bl9XU30M8m4. Note that bio/medical image filtering or denoising was one of topics of the Kuopio Biomedical Image Analysis Center (KUBIAC) lecture series, available here: https://www.youtube.com/channel/UCk_G2ywxO4EGly7_XAt7nDA