Noise reduction is a typical pre-processing step to improve the results of later processing (for example, edge detection on an image). Median filtering is very widely used in digital image processing because, under certain conditions, it preserves edges while removing noise. There is no best median filter size, it's a trial and error process and dependant on the picture. Using the median filter doesn't guarantee that all salt and pepper noise will be gone.
This MPI solution is implemented using a variable filter size, variable image size,variable number of cores, and processes in much less time that the sequential solution.