Login  Register

Re: Duplicaing Stacks

Posted by Michael Doube on Oct 10, 2009; 2:54pm
URL: http://imagej.273.s1.nabble.com/Duplicaing-Stacks-tp3690862p3690864.html

Hi David

Thanks for posting this; it's something I've been looking for for ages!

Mike

________________________________________
From: ImageJ Interest Group [[hidden email]] On Behalf Of David William Webster [[hidden email]]
Sent: 09 October 2009 03:58
To: [hidden email]
Subject: Re: Duplicaing Stacks

All,

Wayne's sugestion

You can also call the internal plugin that implements the Duplicate
command directly

ImagePlus img1 = IJ.getImage();
ImagePlus img2 = (new Duplicater()).duplicateStack(img1, "title");

works like gangbusters. This is a good illustration of why familiarity
with the APi is a must as this doesn't show up in tutorials.

David Webster