Re: Import array of images as ImageSequence?
Posted by
lechristophe on
Oct 21, 2009; 3:59pm
URL: http://imagej.273.s1.nabble.com/Import-array-of-images-as-ImageSequence-tp3690686p3690687.html
Adam,
The second box in the import image sequence dialog ("Enter Pattern")
takes regular expressions (RegEx) to form mutliple conditions on the
name. Learn how to use them here :
http://www.proftpd.org/docs/howto/Regex.htmlparticularly the "Wildcard" section.
To open images that have "string1" and "string2" in their name
(anywhere in the name) use :
.*string1.*string2.*
in the "Enter PAttern" box.
On Tue, Oct 20, 2009 at 11:54 AM, Adam Cliffe
<
[hidden email]> 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?
>
> Thanks
>
> Adam
>
>
>
> Dr Adam Cliffe
> Research Scientist, Rorth Lab
>
> Institute of Molecular and Cell Biology
> 61 Biopolis Drive
> Proteos
> Singapore 138673
>
> tel: +65 6586 9731
>
>
>
>
>
>
>
>
>
> Note: This message may contain confidential information. If this Email/Fax
> has been sent to you by mistake, please notify the sender and delete it
> immediately. Thank you.
>