/** Prepare the progress bar. * Without calling it or if nPasses=0, no progress bar will be shown. * @param nPasses Number of images that this EDM will process. */ public void setNPasses (int nPasses) { this.nPasses = nPasses; progressDone = 0; if (USES_MAX_FINDER[processType]) maxFinder.setNPasses(nPasses); }
/** Prepare the progress bar. * Without calling it or if nPasses=0, no progress bar will be shown. * @param nPasses Number of images that this EDM will process. */ public void setNPasses (int nPasses) { this.nPasses = nPasses; progressDone = 0; if (USES_MAX_FINDER[processType]) maxFinder.setNPasses(nPasses); }
/** Called by the PlugInFilterRunner after setup. * Asks the user in case of a stack and prepares a separate ouptut stack if required */ public int showDialog (ImagePlus imp, String command, PlugInFilterRunner pfr) { this.pfr = pfr; int width = imp.getWidth(); int height= imp.getHeight(); //ask whether to process all slices of stack & prepare stack //(if required) for writing into it in parallel threads flags = IJ.setupDialog(imp, flags); if ((flags&DOES_STACKS)!=0 && outImageType!=BYTE_OVERWRITE) { outStack = new ImageStack(width, height, imp.getStackSize()); maxFinder.setNPasses(imp.getStackSize()); } return flags; } //public int showDialog
/** Called by the PlugInFilterRunner after setup. * Asks the user in case of a stack and prepares a separate ouptut stack if required */ public int showDialog (ImagePlus imp, String command, PlugInFilterRunner pfr) { this.pfr = pfr; int width = imp.getWidth(); int height= imp.getHeight(); //ask whether to process all slices of stack & prepare stack //(if required) for writing into it in parallel threads flags = IJ.setupDialog(imp, flags); if ((flags&DOES_STACKS)!=0 && outImageType!=BYTE_OVERWRITE) { outStack = new ImageStack(width, height, imp.getStackSize()); maxFinder.setNPasses(imp.getStackSize()); } return flags; } //public int showDialog