image stack

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

image stack

George Kagadis
Dear all, I would be very pleased if someone could help me, by informing if its possible to import in ImageJ multiple .txt images.
My problem is that I want to open more than one .txt images in order to convert them in a stack.
I have searched in the doc and there is the possibility to "open" multiple files by checking the box in "Edit->Options->Input/Output Use JFileChooser to open/save"
Is there any similar plugin for "import"? As with open you can't open .txt images.
Any help would be appreciated. Thanks in advance.    
Reply | Threaded
Open this post in threaded view
|

Re: image stack

Rocco D'Antuono
       
Hi Gos, I think that this brief macro will work:

-------------------------------------------------------
path=getDirectory("Choose a directory");
list=getFileList(path);
for(i=0; i<list.length; i++)
{
run("Text Image... ", "open=["+path+list[i]+"]");
}
run("Images to Stack", "name=Stack title=[] use keep");
-------------------------------------------------------

best regards,
Rocco
Senior Microscopist
Crick Advanced Light Microscopy facility (CALM)
The Francis Crick Institute
1 Midland Road, NW1 1AT, London (UK)
https://roccodant.github.io/
Reply | Threaded
Open this post in threaded view
|

Re: image stack

George Kagadis
hi Rocco thank you very much gos
 > Date: Wed, 4 Apr 2012 04:40:14 -0700

> From: [hidden email]
> Subject: Re: image stack
> To: [hidden email]
>
>
> Hi Gos, I think that this brief macro will work:
>
> -------------------------------------------------------
> path=getDirectory("Choose a directory");
> list=getFileList(path);
> for(i=0; i<list.length; i++)
> {
> run("Text Image... ", "open=["+path+list[i]+"]");
> }
> run("Images to Stack", "name=Stack title=[] use keep");
> -------------------------------------------------------
>
> best regards,
> Rocco
>
> --
> View this message in context: http://imagej.1557.n6.nabble.com/image-stack-tp4686121p4686232.html
> Sent from the ImageJ mailing list archive at Nabble.com.