Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

why GetNeighboringLabels find far neighbor #1

Open
tbscer opened this issue Nov 10, 2020 · 0 comments
Open

why GetNeighboringLabels find far neighbor #1

tbscer opened this issue Nov 10, 2020 · 0 comments

Comments

@tbscer
Copy link

tbscer commented Nov 10, 2020

hi

in the function IEnumerable GetNeighboringLabels(Pixel pix)

for (int i = pix.Position.Y - 1; i <= pix.Position.Y + 2 && i < _height - 1; i++)

I am not sure why you used this 2 instead of 1, can you pls explain, and I tried with 1, it works too

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

No branches or pull requests

1 participant