Validation of nonlinear filtering to improve tissue segmentation in MR images of the brain