Skip to main content
3 of 3
added 394 characters in body

We can try like this:

Parallelize[MapThread[ImageSubtract, {{image1,image2}, {fond1,fond2}}]]

or

ParallelTry[imageSubtract, {{imag1, fond1}, {imag2, fond2}}, 2]

While

imageSubtract[{image_,fond_}]:=Module[{},(

Image[(ImageData[image1]-ImageData[fond1]+1)/2]
)]

We can use also ParallelMap[]

ParallelMap[imageSubtract, {{imag1, fond1}, {imag2, fond2}}, 2]

I remark that Parallelize is faster than ParallelTry[] and the ParallelTry[] is faster than ParallelMap[] Any deep explanation about this? And it is possible to define imageSubtract[image1,fond1] and used it with ParallelTry[] and ParallelMap[] or I must to define it with one argument?