Conversation
| } | ||
| } | ||
|
|
||
| List<DoubleType> listOfSums = LoopBuilder.setImages( image ).multiThreaded().forEachChunk( |
There was a problem hiding this comment.
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.
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-scijavaincludes it. In the meantime maybe @maarzt can review these examples - feel free to change them, add comments, add more examples, ...