Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Marching Squares edge cases #56

Open
hannorein opened this issue Apr 27, 2024 · 0 comments
Open

Marching Squares edge cases #56

hannorein opened this issue Apr 27, 2024 · 0 comments

Comments

@hannorein
Copy link

First of all thanks for providing the nice implementation of the Marching Squares algorithm.

I've noticed some inconsistencies for various edge cases (literal "edge"-cases). I'm testing a simple 4x4 grayscale input data where all the values are 0 except one of the corners and a threshold of 0.5. Depending on which corner is set to 1, the number of mesh points varies between 3, 5, and 8. As a result, the boundary extraction also gives significantly different results of what (I think) should just be shaped which are rotated versions of each other.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant