-
Notifications
You must be signed in to change notification settings - Fork 114
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
base: master
Are you sure you want to change the base?
Conversation
} | ||
} | ||
|
||
List<DoubleType> listOfSums = LoopBuilder.setImages( image ).multiThreaded().forEachChunk( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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!
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 |
I wonder if the documentation of |
@maarzt sure, that does not stop us from having something here too. |
@frauzufall How can I see the website that contains this howto? |
@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. |
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 untilpom-scijava
includes it. In the meantime maybe @maarzt can review these examples - feel free to change them, add comments, add more examples, ...