rename slices

Posted by Martin Höhne on
URL: http://imagej.273.s1.nabble.com/rename-slices-tp4999754.html

Dear list,

I´m looking for a way to rename the slices of a stack (in a macro) but can´t find it.

What I mean is changing the info one gets with
getInfo("slice.label");

A work around would be to duplicate each slice separately with the new slice label as title and after each slice is duplicated recombine the images again into a stack with
run("Images to Stack", "name=newstackname title=[] use");

But is there an easier way to do this?

Thanks,
Martin