This document presents a comparison of median filtering and adaptive median filtering for image restoration. Median filtering is commonly used to remove noise from images but is only effective for noise levels up to 20%. Adaptive median filtering is proposed to overcome this limitation. It uses a two-step process where the filter size varies based on image characteristics. The results show adaptive median filtering more effectively removes salt and pepper noise and performs better than median filtering for Gaussian noise as well, though not as well as for salt and pepper noise. In conclusion, adaptive median filtering is superior to median filtering for image restoration, especially for noise levels above 20%.