Repository navigation
Working Example of Parallel Processing? #2046
Replies: 3 comments 2 replies
|
I'm trying to do something like: The main thing confusing me is the arbitrary access from the sourceImage. I can go row by row, pixel by pixel in the outImage, but I don't know what sourceImage row or column I'll need until I get inside this loop, and I will most of the time need to access not only a target pixel, but a sample of many of the pixels around it (eg. bicubic sampling). I have working code that does this processing, but I can't figure out how to use the parallel access api to parallelize it, and just using Parallel.For scrambles the outImage (which I'm a little confused about actually, since each outPixel is an independent calculation and the sourceImage never changes). |
|
Sorry @JimBobSquarePants, my mistake. I just came here from the link in the top level readme where it says:
So I thought it was the right place. |
|
Anyway, I posted the question here for future reference: https://stackoverflow.com/questions/71388492/right-way-to-parallelize-pixel-access-across-multiple-images-using-imagesharp |

Uh oh!
There was an error while loading. Please reload this page.
I have had no luck at all searching google or github for a working example of a
ParallelRowIteratorin action. My goal is to loop through each pixel of a very large image and set all the values to something. How best to parallelize the operation? This would be great to add to the docs somewhere!All reactions