Posted by
Cammer, Michael on
May 25, 2016; 2:38pm
URL: http://imagej.273.s1.nabble.com/Name-of-duplicated-slice-from-a-stack-tp5016521p5016523.html
In the macro language I think this is what you are looking for.
slice = getSliceNumber();
// for hyperstacks use Stack.getPosition(channel, slice, frame);
run("Duplicate...", getTitle());
rename("s"+slice+" " + getTitle());
=========================================================================
Michael Cammer, Microscopy Core & Skirball Institute, NYU Langone Medical Center
Cell: 914-309-3270 ** Office: Skirball 2nd Floor main office, back right **
http://ocs.med.nyu.edu/microscopy &
http://microscopynotes.com/-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Gabriel Landini
Sent: Wednesday, May 25, 2016 7:59 AM
To:
[hidden email]
Subject: Name of duplicated slice from a stack
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?
Cheers
Gabriel
--
ImageJ mailing list:
https://urldefense.proofpoint.com/v2/url?u=http-3A__imagej.nih.gov_ij_list.html&d=CwICAg&c=j5oPpO0eBH1iio48DtsedbOBGmuw5jHLjgvtN2r4ehE&r=oU_05LztNstAydlbm5L5GDu_vAdjXk3frDLx_CqKkuo&m=ejm0elOH9c16HSzalbByLQ0kntmMmYp6D6SN08rfpi4&s=lf4TgnArSm7pkHmZcR9WIQFKOM4uWkeTG3eEdwvsZJ0&e=
------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html