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

Connectivity Op should be multithreaded #600

Open
mdoube opened this issue Mar 30, 2019 · 0 comments
Open

Connectivity Op should be multithreaded #600

mdoube opened this issue Mar 30, 2019 · 0 comments

Comments

@mdoube
Copy link
Contributor

mdoube commented Mar 30, 2019

public void compute(RandomAccessibleInterval<B> interval, DoubleType output) {

This loop runs in a single thread, but could easily be multithreaded via a multithreading class or parallel Streams. BoneJ1 used a multithreading class where each thread iterated over z slices, getting the next z slice index from an AtomicInteger and summing the threads' sums at the end.

https://github.com/bonej-org/bonej/blob/master/src/org/doube/bonej/Connectivity.java

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