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

Howtos LoopBuilder #85

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Howtos LoopBuilder #85

wants to merge 2 commits into from

Conversation

frauzufall
Copy link
Member

Here are some examples for the LoopBuilder, collected from PRs and JavaDoc. The position example depends on imglib2-5.9.0, so this PR has to wait until pom-scijava includes it. In the meantime maybe @maarzt can review these examples - feel free to change them, add comments, add more examples, ...

}
}

List<DoubleType> listOfSums = LoopBuilder.setImages( image ).multiThreaded().forEachChunk(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice illustration how to use forEachChunk returning a List. How about adding an example with synchronized as discussed here, to complete the picture for multi-threading options?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I didn't see this post, thanks for pointing me to it!

@imagesc-bot
Copy link

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/imglib2-split-image-into-chunks-for-multi-threaded-processing/37519/6

@maarzt
Copy link
Member

maarzt commented May 12, 2020

I wonder if the documentation of LoopBuilder could be part of some introduction to imglib2. @tpietzsch What do you think?

@frauzufall
Copy link
Member Author

@maarzt sure, that does not stop us from having something here too.

@maarzt
Copy link
Member

maarzt commented May 12, 2020

@frauzufall How can I see the website that contains this howto?

@frauzufall
Copy link
Member Author

@maarzt There is none yet, it's just this repo. My prototype howto page is not installed anywhere. I have an idea though for a simpler github pages version, I'll give it a try maybe this week. Ideally, at some point, we could aggregate examples from multiple repos on a page, that's what I did with the prototype based on maven, but that needs more thoughts / discussions.

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

Successfully merging this pull request may close these issues.

4 participants