Login  Register

Re: Import array of images as ImageSequence?

Posted by Rasband, Wayne (NIH/NIMH) [E] on Feb 12, 2014; 4:18pm
URL: http://imagej.273.s1.nabble.com/Import-array-of-images-as-ImageSequence-tp3690686p5006506.html

On Feb 12, 2014, at 10:20 AM, mmettlen wrote:

> To revive this thread:
> I have an array named "files" of length "h" and filled with paths pointing
> to certain images on my hard drive (e.g. D:\rawImages\condition1\image1.tif,
> D:\rawImages\condition1\image2.tif, ...)
> Due to the files selected, I cannot use directly File=>Import=>Image
> sequence and therefor was wondering how to use the array "files" to build an
> image sequence by:
> run("Image Sequence...", "open=*XXXX * number=*h* starting=1 increment=1
> sort use")

Try using the File>Import>Stack from List command. Here is the description of this command from the ImageJ User Guide:

Opens a stack, or virtual stack, from a text file or URL containing a list of image file paths]. The images can be in different folders but they must all be the same size and type. The Virtual Stack From List macro [1] demonstrates how to generate a list of images and then use that list to open the images as a virtual stack. The OpenStackUsingURLs macro [2] demonstrates how to how to open an image series from a remote server.

[1] http://imagej.nih.gov/ij/macros/VirtualStackFromList.txt
[2] http://imagej.nih.gov/ij/macros/OpenStackUsingURLs.txt

-wayne

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html