You will also need to set the method in the settings class. I did not include that in my example:
settings.Method = MorphologyMethod.Convolve;
settings.Method = MorphologyMethod.Convolve;