It is very effective for smoothing impulse noise, and at the same time, it can protect the sharp edge of the image, and choose appropriate points to replace the values of pollution points, so it has good processing effect and good performance for salt and pepper noise.