Removing median filtering