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

Faster balance coefficient weight computation #24

Open
danoan opened this issue Apr 30, 2021 · 0 comments
Open

Faster balance coefficient weight computation #24

danoan opened this issue Apr 30, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@danoan
Copy link
Owner

danoan commented Apr 30, 2021

Currently a whole disk is intersected for every computation of the balance coefficient.

Contours are a sequence of adjacent pixels, so we can optimize this computation. We need to compute a full intersection of the disk at the very first balance coefficient computation. All the others can be derived from a delta from the previous one. This delta refers to the pixels in the contour of the disk.

This improvement removes the quadratic slow down we observe as the disk size increases.

@danoan danoan added the enhancement New feature or request label Apr 30, 2021
@danoan danoan added this to the v1.0 milestone Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant