Thread safety of IJ Class for parallel processing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Thread safety of IJ Class for parallel processing

George H
Hi, I've written a plugin that takes as input a huge list of files. I am
splitting the list of files into 5 separate lists and having 5 threads work
on each image in the list in parallel.

In the work process I am using the following convenience methods provided
by IJ

IJ.openImage(path);
IJ.saveAs(.....) ;
IJ.setAutoThreshold();
IJ.run(image, "Convert to Mask", "");

If I have 5 threads an each one runs the above commands on images (of
course not the same image), will IJ class have an issue if multi-threading ?

Thanks.
--
George
[hidden email]

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html