Login  Register

Re: Import array of images as ImageSequence?

Posted by dscho on Oct 20, 2009; 10:33am
URL: http://imagej.273.s1.nabble.com/Import-array-of-images-as-ImageSequence-tp3690686p3690688.html

Hi,

On Tue, 20 Oct 2009, Adam Cliffe wrote:

> I'm trying to write a macro which opens some of the images in a folder
> as an image sequence.
> i.e. the files are named
> Job1_t0_ch000.tif,
> Job1_t0_ch001.tif,
> Job1_t1_ch000.tif,
> Job1_t1_ch001.tif,
> Job2_t0_ch000.tif,
> Job2_t0_ch001.tif,
> Job2_t1_ch000.tif,
> Job2_t1_ch001.tif,
> etc...
>
> I would like the macro to open all the images with Job1 and ch001 in
> the title.
> I can't work out a way of imputing both of these parameters into the
> 'Import image sequence' dialog.
>
> Its easy to make an array of the files I'd like to open (startsWith
> Job1, endsWith "ch001.tif")
> but I can't work out how to open all these files as one tif stack (in
> my case there would be several hundred).
>
> Does anyone know a way of doing this?

How about reading the files one by one and then running "Images to Stack"?

Ciao,
Dscho