Mean shift is a noise removal and color reducing technique. It has no connection to histogram equalization. Histogram equalization can introduce noise if you only have predominantly a few significant colors.