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

Inter-pixel relation mining. Point neighborhood. #31

Open
L0thlorien opened this issue Apr 10, 2020 · 0 comments
Open

Inter-pixel relation mining. Point neighborhood. #31

L0thlorien opened this issue Apr 10, 2020 · 0 comments

Comments

@L0thlorien
Copy link

L0thlorien commented Apr 10, 2020

Hi! Thanks for the great work!
Why You take only a half of circle in get_search_paths_dst method of PathIndex class:

        for x in range(1, max_radius):
            search_dirs.append((0, x))

        for y in range(1, max_radius):
            for x in range(-max_radius + 1, max_radius):
                if x * x + y * y < max_radius ** 2:
                    search_dirs.append((y, x))

Maybe I miss something? Thanks for the explanation! :)

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