A parallel edge preserving algorithm for salt and pepper image denoising