|
I try to using IJ.run to perform existing plugin in ImageJ. These plugin must be executed in precise order.
A sample of my code:
ImagePlus aIPlus=IJ.openImage(aFileOpenDG.directory+aFileOpenDG.filename);
IJ.run(aIPlus,"Gaussian Blur...", "sigma=3");
IJ.run(aIPlus,"Watershed Segmentation", "blurring='3.0' watershed='1 1 0 255 0 0' display='5' ");
IJ.run(aIPlus,"Convert to Mask", "calculate black");
When these code are executed, the second command is relative slow. Instead, the third one is executed ahead. How can I force ImageJ to keep the order of commands.
|