Python/C++ numerical differences in erode function. Bug?

Many thanks, it solves the issue!

At this point I am wondering why. Both approaches essentially generate identical matrix content, especially when printed or saved. From a user’s standpoint, it does seem somewhat weird. Do you expect this?