This paper proposes a switch median filter to remove high density salt-and-pepper noises. Without any iteration of enlarging the square window, we compute the trimmed median and mean values to replace the noise pixels. To further increase the image quality, the proposed method also generates the sub-image to weight the filtered value. Experimental results show that the proposed method only consumes the short execution time to filter out the noise pixels.
展开▼