Re: ProgressBar.setBatchMode()
Posted by
Rasband, Wayne (NIH/NIMH) [E] on
URL: http://imagej.273.s1.nabble.com/ProgressBar-setBatchMode-tp5010181p5010187.html
On Oct 24, 2014, at 7:43 AM, Pål Baggethun <
[hidden email]> wrote:
>
> In order to disable the progressbar during binary close in a Plugin (not PluginFilter) I tried the following:
>
> ImageJ ij = IJ.getInstance();
> if (ij!=null) ij.getProgressBar().setBatchMode(true);
> IJ.run(maskimp, "Options...", "iterations=3 count=1 black pad edm=Overwrite do=Close");
>
> ..but to no effect. What am I doing wrong? Are there other approaches? Batch mode macro is not an option.
In the the latest ImageJ daily build (1.49j10), the Process>Binary commands no longer use progress bars. They are relics from the early days of ImageJ in the late nineties, when computers where much slower.
-wayne
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html