Supports 8bit median filter.
Resamples volumes with odd margin by rounding margin up.