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

Binary Performance Enhancement #5

Open
william-silversmith opened this issue Sep 11, 2018 · 2 comments
Open

Binary Performance Enhancement #5

william-silversmith opened this issue Sep 11, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@william-silversmith
Copy link
Contributor

This would be importing a feature to binary processing that multi-label processing already has.

For binary images that contain significant volumes of black pixels, we can skip processing the black areas rather than putting them through the more expensive parabolic code.

For the multi-label code, processing a totally black volume fell from 9.5 sec to 3 seconds without affecting the performance of other cases.

@william-silversmith
Copy link
Contributor Author

Did a partial job of this. Skips runs of black at the front, but doesn't deal with interstitial black or black at the end.

@william-silversmith
Copy link
Contributor Author

Gave this a try, it made the code more complex but in the cases I tried, only made a minor improvement. I imagine it would be valuable in pathological cases, but I didn't give those a try.

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