The median filtering is a common method in image processing, but it is limited when it faces the swash noise of space high density, because it depends on the fixed Windows and the data points.
Experiments show that his method overcomes the defect of blocky effect in mean shift filtering, and is superior to mean shift filtering, Gaussian scale space filtering and median filter.