A new denoising approach for the removal of impulse noise from color images and video sequences