The idea behind the median filter is the removal of noise spikes.
Below: CP ultrasound of a 12 mm target at +6 dB from the background. Middle is the median filter using a window size of 9x9 applied to an eREC-FC ultrasound image of the same target. Bottom shows the filter's effects on the CP image in an overlaid manner.
Median Filter Results