/** Displays a dialog requiring user to choose images and returns ImagePlus of concatenated images. */ public ImagePlus run() { if (!showDialog()) return null; newImp = createHypervol(); return newImp; }
/** Displays a dialog requiring user to choose images and returns ImagePlus of concatenated images. */ public ImagePlus run() { if (!showDialog()) return null; newImp = createHypervol(); return newImp; }
/** Concatenates two or more images or stacks. */ public ImagePlus concatenate(ImagePlus[] ims, boolean keepIms) { images = ims; imageTitles = new String[ims.length]; for (int i = 0; i < ims.length; i++) { if (ims[i] != null) { imageTitles[i] = ims[i].getTitle(); } else { IJ.error(pluginName, "Null ImagePlus passed to concatenate(...) method"); return null; } } keep = keepIms; batch = true; ImagePlus imp0 = images[0]; if (imp0.isComposite() || imp0.getNChannels()>1) newImp = concatenateHyperstacks(images, newtitle, keep); else newImp = createHypervol(); if (Recorder.scriptMode()) { String args = "imp1"; for (int i=1; i<images.length; i++) args += ", imp"+(i+1); Recorder.recordCall("imp"+(images.length+1)+" = Concatenator.run("+args+");"); } return newImp; }
/** Concatenates two or more images or stacks. */ public ImagePlus concatenate(ImagePlus[] ims, boolean keepIms) { images = ims; imageTitles = new String[ims.length]; for (int i = 0; i < ims.length; i++) { if (ims[i] != null) { imageTitles[i] = ims[i].getTitle(); } else { IJ.error(pluginName, "Null ImagePlus passed to concatenate(...) method"); return null; } } keep = keepIms; batch = true; ImagePlus imp0 = images[0]; if (imp0.isComposite() || imp0.getNChannels()>1) newImp = concatenateHyperstacks(images, newtitle, keep); else newImp = createHypervol(); if (Recorder.scriptMode()) { String args = "imp1"; for (int i=1; i<images.length; i++) args += ", imp"+(i+1); Recorder.recordCall("imp"+(images.length+1)+" = Concatenator.run("+args+");"); } return newImp; }