medfilt(M) Returns a median-filtered matrix M.
getnoise(M) Returns the difference between matrix M and median-filtered M.