Fix a bug in the computation of the median filter. Also restrict the computation of the features in a box around the tumor area