Login  Register

Re: Name of duplicated slice from a stack

Posted by Gabriel Landini on May 25, 2016; 2:49pm
URL: http://imagej.273.s1.nabble.com/Name-of-duplicated-slice-from-a-stack-tp5016521p5016524.html

On Wednesday 25 May 2016 14:45:25 Cammer, Michael wrote:
>   slice = getSliceNumber();
>   // for hyperstacks use Stack.getPosition(channel, slice, frame);
>   run("Duplicate...",  getTitle());
>   rename("s"+slice+" " + getTitle());

Thanks Michael, but that does not do it. I am suggesting an option in the
Duplicate dialog that when ticked, it does this:

slice =getMetadata("Label");
run("Duplicate...",  getTitle());
if(slice!="") rename(slice);

Even if this is doable as a macro, it is not very practical interactively (we
need to run a macro each time we to duplicate a slice).

Cheers

Gabriel

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