-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat: replace forward pass with decision tree #8
Conversation
Elaboration into 3D of the Wu et al 2005 paper Wu, Otoo, and Suzuki. "Two Strategies to Speed up Connected Component Labeling Algorithms". 2005. LBNL-59102. https://crd-legacy.lbl.gov/~kewu/ps/LBNL-59102.html
Everything at Z = -1 needs to account for items at Z = 0 Voxel H doesn't account for D,E,F,J
Also, we need to test F regardless of D and J
Still a random segfault hiding in there somewhere... Also, eyeballing the output it looks pretty good, but the number of segments is different compared to master. |
Names of voxels changed, and removed one
In time trials, so far it looks like on a particular 512 cube, the old code takes about 7 to 8 seconds while this version takes about 3 to 4 seconds. Not bad, provided I can wring the last few issues out of it. |
chore: remove prototype decision tree code
Realized that I had been thinking about the problem wrong. 1) The mask needs to essentially cover half the volume. 2) The Z = 0 part is just Kesheng Wu's algorithm, the 3D part is handling Z = -1. This is a very elegant decomposition of the problem. Initial tests of the new decision tree look promising, and somehow it was even faster on the test volume - 2.8 seconds! |
Needs more information and diagrams.
Both locations E and B are fully connected to the upper mask and therefore we do not need to reprocess it.
Each covering should assume the previous first elements are background.
Elaboration into 3D of the Wu et al 2005 paper
Wu, Otoo, and Suzuki. "Two Strategies to Speed up
Connected Component Labeling Algorithms". 2005. LBNL-59102.
https://crd-legacy.lbl.gov/~kewu/ps/LBNL-59102.html
Resolves #7 and Resolves #9