mask Dialog Box in stack processing macro

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

mask Dialog Box in stack processing macro

VIGNEAU Mathieu
Hi all,

I'm trying to make a montage image based on a stack of n slices .
Before running the "make montage" step, my macro includes a flip vertically of my stack image.
Here is a part of my macro:

selectImage("Stack");
run("Flip Vertically");
run("Make Montage...", "scale=1");
selectImage("Stack");
close();

My macro works correctly, but when it runs the "flip vertically" step, it displays a user dialog box asking me if I want to process all n slices of the stack

I there a way to block this Dialog box during the macro execution and to set this parameter ("process" or "not process" all slices of stack) in the command line ?

Cheers,
Mathieu

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

Re: mask Dialog Box in stack processing macro

Volker Baecker
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Use one of the following:

run("Flip Vertically", "slice");
run("Flip Vertically", "stack");

PS: You can usually find the parameters for a macro-command by using
the macro recorder (Plugins>Macros>Record...).

Cheers,
Volker



VIGNEAU Mathieu:

> Hi all,
>
> I'm trying to make a montage image based on a stack of n slices .
> Before running the "make montage" step, my macro includes a flip
> vertically of my stack image. Here is a part of my macro:
>
> selectImage("Stack"); run("Flip Vertically"); run("Make
> Montage...", "scale=1"); selectImage("Stack"); close();
>
> My macro works correctly, but when it runs the "flip vertically"
> step, it displays a user dialog box asking me if I want to process
> all n slices of the stack
>
> I there a way to block this Dialog box during the macro execution
> and to set this parameter ("process" or "not process" all slices of
> stack) in the command line ?
>
> Cheers, Mathieu
>
> -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJU5fi8AAoJENcVU956o58NV04IAJDkGr3xMNSQGMDtibvrhM7n
TQoYD4FBNM5rYT7fkb3s/bM+Tnvq1BNiTHxGG9Ij+RbLYWcmeyIbAl2mak+G4uED
LpaLD/bGQPDGl5s1pCGIQh/kEQFhGmdjBWCi63V8zHQoKw5zn9bdilUCl7F6qPs2
A9n1xcTwVbotqoSj3uVRDV1/v4+KGFByLZMbDgcdT0p8Q+2VM+vkzW3RgFPPMFn7
kGRnGKIJn3Q2CjMJJVhg2PD0RDgb+exRJgxAFjY4Y6HvNbudseI4NnFn7Vw8XWCf
tU9AvQJ2o/esDcP2IY84OAzyOy94JBfMQLZApndyP770gDnLMI1govUx19o9Nhk=
=dRTG
-----END PGP SIGNATURE-----

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

Re: mask Dialog Box in stack processing macro

VIGNEAU Mathieu
In reply to this post by VIGNEAU Mathieu
Hi Volker,

Thanks for your quick reply !

cheers,
Mathieu

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