The erosion of the WM using ```itk::BinaryErodeImageFilter``` can fail. Changing to ```itk::GrayscaleErodeImageFilter``` appears to fix the problem.