This project aims to detect and filter impulse noise from images using differential rank impulse detection followed by median filtering. Specifically, the student must design a Matlab function that takes an image, rank interval length r, and threshold s as inputs to detect noisy pixels and apply median filtering only to those pixels. The function should handle border effects using mirroring. The student will then add random impulse noise to a test image, filter it using their function with different parameter values, and report the best filtering result based on RMSE/PSNR metrics in a brief technical report.