Load Stack without showing it

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Load Stack without showing it

christoph@boerlin.de
Hi,

i want to load a Sequence of Tif-Images in ImageJ without showing it in a
window, because i want to use the plugin via an X-Win and showing large Images
takes to much time.

Currently i use the
IJ.run(SourceImage, "Image Sequence...","");
Command, is there any possibility to change this command or to use another to
load an Image Sequence and to be able to process it afterwards without showing
the image itself ?

Thanks a lot.
Christoph Boerlin

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Load Stack without showing it

Rasband, Wayne (NIH/NIMH) [E]
On Mar 5, 2013, at 4:54 AM, [hidden email] wrote:

> i want to load a Sequence of Tif-Images in ImageJ without showing it in a
> window, because i want to use the plugin via an X-Win and showing large Images
> takes to much time.
>
> Currently i use the
> IJ.run(SourceImage, "Image Sequence...","");
> Command, is there any possibility to change this command or to use another to
> load an Image Sequence and to be able to process it afterwards without showing
> the image itself ?

Use

   ImagePlus imp = FolderOpener.open(directory_path);

to open a sequence of images as stack without showing it. Use

   FolderOpener fo = new FolderOpener();
   fo.openAsVirtualStack(true);
   ImagePlus imp = fo.openFolder(directory_path);

to open the sequence as a virtual stack.

-wayne

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