A semblance-guided median filter