KNIME Image Processing Bug - Erode and Dilate are reversed

I have noticed that in the "Morphological Image Operations" node in the KNIME image processing collection the Erode and Dilate functions are reversed, namely Dilate is in fact eroding and vice versa.

Hi Mark,

for me it works fine if I assume (e.g. in the binary case) that value = "1" are foreground (see http://homepages.inf.ed.ac.uk/rbf/HIPR2/erode.htm as an example).

When exactly does it go wrong?

Best regards,

Christian