HELP!

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

HELP!

Joaquin Soriano
I'm trying to design a Macro and during the macro routine I need to convert
two stacks to images.

The problem is that the command: image-stacks-convert images to stacks, does
always give the same name to the images created (the images are numbered
from 0001 to xxxx). This is causing me problems because I end up with pairs
of images with the same name that image j can't differentiate when trying to
use further commands.

I've tried:

-        Using the plugin: stack splitter. This plugin produces images with
a different name than when using "convert images to stack", but trying to
split the stack into single images causes an exception (I'm working on image
j 1.35f version).

-        Renaming all the images of one of the stacks: the problem is that
the command "rename", previously introduced using "Macro-record", does not
work when executing the macro.

Can anyone help me?

 

Joaquim Soriano Felipe. PhD student.
Dpt. of Medical sciences, School of Medicine-CRIB, University of Castilla-la
Mancha  

 C/ Almansa, 14, 02006 Albacete (Spain).

Tel. +0034-967599200 Ext.2934

Fax. +0034-967599327

[hidden email]

 
Reply | Threaded
Open this post in threaded view
|

Re: HELP!

Anna Barnes
Hi Jo

Wayne sent me this a while ago, I don't know if it will help.
> dir = getDirectory("Choose a directory");
>   for (i=1; i<nImages; i++) {
>       selectImage(i);
>       run("Analyze Writer", "save=["+dir+getTitle+"]");

you can change Analyze writer for whatever you need and change  
getTitle for a more appropriate name instead.

regards
Anna

On Jul 19, 2006, at 10:45 AM, Joaquin Soriano wrote:

> I'm trying to design a Macro and during the macro routine I need to  
> convert
> two stacks to images.
>
> The problem is that the command: image-stacks-convert images to  
> stacks, does
> always give the same name to the images created (the images are  
> numbered
> from 0001 to xxxx). This is causing me problems because I end up  
> with pairs
> of images with the same name that image j can't differentiate when  
> trying to
> use further commands.
>
> I've tried:
>
> -        Using the plugin: stack splitter. This plugin produces  
> images with
> a different name than when using "convert images to stack", but  
> trying to
> split the stack into single images causes an exception (I'm working  
> on image
> j 1.35f version).
>
> -        Renaming all the images of one of the stacks: the problem  
> is that
> the command "rename", previously introduced using "Macro-record",  
> does not
> work when executing the macro.
>
> Can anyone help me?
>
>
>
> Joaquim Soriano Felipe. PhD student.
> Dpt. of Medical sciences, School of Medicine-CRIB, University of  
> Castilla-la
> Mancha
>
>  C/ Almansa, 14, 02006 Albacete (Spain).
>
> Tel. +0034-967599200 Ext.2934
>
> Fax. +0034-967599327
>
> [hidden email]
>
>