Login  Register

Re: select images to make stack

Posted by Philip Ershler on May 03, 2010; 10:00pm
URL: http://imagej.273.s1.nabble.com/select-images-to-make-stack-tp3688402p3688405.html

Actually, it is a plugin, not a macro, although it can be called from a macro.


There is a macro called substack maker that handles just this sort of operation. Get it from the ImageJ site.

Phil


Description: The purpose of this plugin is to extract selected images from a stack to make a new substack. It would take one of two types of input: either a range of images (e.g. 2-14) or a list of images (e.g. 7,9,25,27,34,132) and copy those images from the active stack to a new stack in the order of listing or ranging.


On May 3, 2010, at 3:46 PM, Johannes Schindelin wrote:

> Hi,
>
> On Mon, 3 May 2010, Joe Vandergracht wrote:
>
>> If I have 5 images open and only want to make a stack from 4 of them -
>> is there a way to exclude the 5th image?  Or do I have to make the stack
>> from all 5 and subsequently delete the unwanted image from the stack?  
>> In practice I often have many images open and only want to make a stack
>> from a few of them.
>
> The common way is either to do as you say, duplicate the stack and delete
> a slice, or to switch to the image corresponding to the first slice,
> duplicating it, then switching to the image corresponding to the
> second slice, Select All, Copy, switch back to the duplicated image, Add
> Slice, Paste. Repeat the last six steps as often as necessary. (This can
> be automated with a script.)
>
> Ciao,
> Johannes
>