Image Marching Squares not working for oblique series

Hi, I opened an issue on Github for this but no one has replied yet. I am looking for a bit of guidance on how to approach it. It seems the current implementation of the Marching Squares algorithm does not take into account the direction and therefore fails on oblique series.

I’ve met a similar problem with marching cubes too, if the direction of the origin image is not an identity one, the marching cube result will not be at the correct position, have to change it manually.