image icon indicating copy to clipboard operation
image copied to clipboard

Would it be possible to use rayon to add parallel iterators over the image pixels or add multithreading from scratch?

Open arthmis opened this issue 6 years ago • 3 comments

Would adding multi-threading or parallel iterators to access pixels be feasible? Is it potentially planned for the future?

arthmis avatar Nov 09 '18 04:11 arthmis

I wondered about this too. AFAIK, iterating over pixels in parallel currently requires ugly code (uglier than a Rayon iterator, at least).

jjhbw avatar Nov 09 '18 06:11 jjhbw

Is it necessary to add multi-threading? I was thinking about how it would benefit the imageproc crate, at least on large images, but maybe it would be better handled by the GPU.

arthmis avatar Nov 09 '18 14:11 arthmis

i created this https://github.com/zzwxh/parallel_image/blob/main/src/lib.rs

ghost avatar Oct 12 '23 13:10 ghost

Fixed in https://github.com/image-rs/image/pull/2058

fintelia avatar Mar 10 '24 21:03 fintelia