Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Greeting,
When there is only one slice, the slice label is not displayed on the image window status line or on the Info... page. The information is there, just not viewable by the user through the GUI interface. See below... Thanks in advance, Fred import ij.*; import ij.process.*; import ij.gui.*; import java.awt.*; import ij.plugin.*; import ij.plugin.frame.*; public class SliceLabelTest implements PlugIn { public void run(String arg) { { ImagePlus imp = IJ.createImage("One", "32-bit black", 256, 256, 1); imp.getStack().setSliceLabel("1\nA line of text\n",1); imp.show(); IJ.log("One\n"+imp.getStack().getSliceLabel(1)); } { ImagePlus imp = IJ.createImage("Two", "32-bit black", 256, 256, 2); imp.getStack().setSliceLabel("1\nA line of text\n",1); imp.getStack().setSliceLabel("1\nAnother line of text\n",2); imp.show(); IJ.log("Two\n"+imp.getStack().getSliceLabel(1)); } { ImagePlus imp = IJ.createImage("HyperStackOne", "32-bit grayscale-mode", 256, 256, 1, 1, 1); imp.getStack().setSliceLabel("1\nA line of text\n",1); imp.show(); IJ.log("HyperStackOne\n"+imp.getStack().getSliceLabel(1)); } { ImagePlus imp = IJ.createImage("HyperStackTwo", "32-bit grayscale-mode", 256, 256, 1, 1, 2); imp.getStack().setSliceLabel("1\nA line of text\n",1); imp.getStack().setSliceLabel("1\nAnother line of text\n",2); imp.show(); IJ.log("HyperStackTwo\n"+imp.getStack().getSliceLabel(1)); } } } -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
> On Feb 10, 2021, at 3:45 PM, Fred Damen <[hidden email]> wrote:
> > Greeting, > > When there is only one slice, the slice label is not displayed on the > image window status line or on the Info... page. The information is > there, just not viewable by the user through the GUI interface. See > below… This bug is fixed in the ImageJ 1.53i4 daily build. -wayne > Thanks in advance, > > Fred > > import ij.*; > import ij.process.*; > import ij.gui.*; > import java.awt.*; > import ij.plugin.*; > import ij.plugin.frame.*; > > public class SliceLabelTest implements PlugIn { > > public void run(String arg) { > { > ImagePlus imp = IJ.createImage("One", "32-bit black", 256, 256, 1); > imp.getStack().setSliceLabel("1\nA line of text\n",1); > imp.show(); > IJ.log("One\n"+imp.getStack().getSliceLabel(1)); > } > { > ImagePlus imp = IJ.createImage("Two", "32-bit black", 256, 256, 2); > imp.getStack().setSliceLabel("1\nA line of text\n",1); > imp.getStack().setSliceLabel("1\nAnother line of text\n",2); > imp.show(); > IJ.log("Two\n"+imp.getStack().getSliceLabel(1)); > } > { > ImagePlus imp = IJ.createImage("HyperStackOne", "32-bit > grayscale-mode", 256, 256, 1, 1, 1); > imp.getStack().setSliceLabel("1\nA line of text\n",1); > imp.show(); > IJ.log("HyperStackOne\n"+imp.getStack().getSliceLabel(1)); > } > { > ImagePlus imp = IJ.createImage("HyperStackTwo", "32-bit > grayscale-mode", 256, 256, 1, 1, 2); > imp.getStack().setSliceLabel("1\nA line of text\n",1); > imp.getStack().setSliceLabel("1\nAnother line of text\n",2); > imp.show(); > IJ.log("HyperStackTwo\n"+imp.getStack().getSliceLabel(1)); > } > } > > } ... [show rest of quote] -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Disable Popup Ads | Edit this page |