Login  Register

Re: Name of duplicated slice from a stack

Posted by Rasband, Wayne (NIH/NIMH) [E] on May 29, 2016; 8:53pm
URL: http://imagej.273.s1.nabble.com/Name-of-duplicated-slice-from-a-stack-tp5016521p5016547.html


> On May 25, 2016, at 7:46 AM, Gabriel Landini <[hidden email]> wrote:
>
> I wonder if this would be a useful improvement.
>
> This already works:
> When converting images to stack one can use the image name to be kept as a
> slice label.
> When converting a stack to images the images take the name of the label if it
> exists.
>
> But when duplicating a single slice from a stack, the title of the resulting
> image is derived from that of the stack, not the slice label, and
> unfortunately the slice label is lost.
>
> I wonder if it would be useful to add an option to use the original slice
> label when one only duplicating a single slice.
>
> Or maybe this can be done already?

You can do this if you upgrade to the latest ImageJ daily build (1.51b19). When using Image>Duplicate, the title of the resulting image is automatically derived from the slice label. To provide backward compatibility, the recorder generates

     run("Duplicate...", "use");

where ‘use' indicates that the slice label is to be used. Previous versions of ImageJ generated

     run("Duplicate...", " ");

which uses the stack name plus “-n” as the suggested title of the resulting image.

-wayne




--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html