Rotate a stack in a macro

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

Rotate a stack in a macro

Philip Ershler
Hello,
        Is there any way to use Rotate... in a macro or a plugin and rotate all images in the stack? The Rotate... process in a macro only rotates the first image. I guess I could step through the stack and rotate one image at a time, but is there any more intelligent way to do this?

Thanks, Phil

Philip R. Ershler Ph.D.
University of Utah
Cardiovascular Research and Training Institute
95 South 2000 East
Salt Lake City, UT 84112-5000

phone: (801) 230-8771
alt ph: (801) 587-9528
fax: (801) 581-3128
e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Rotate a stack in a macro

Jacqueline Ross
Hi Philip,

It should rotate the whole stack if you have a stack open;

E.g. run("Rotate... ", "angle=90 grid=1 interpolation=Bilinear stack").

I used the Macro Recorder to record this and it does work.

Kind regards,

Jacqui

Jacqueline Ross

Biomedical Imaging Microscopist
Biomedical Imaging Research Unit
School of Medical Sciences
Faculty of Medical & Health Sciences
The University of Auckland
Private Bag 92019
Auckland, NEW ZEALAND

Tel: 64 9 373 7599 Ext 87438
Fax: 64 9 373 7484

http://www.fmhs.auckland.ac.nz/sms/biru/


-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Philip Ershler
Sent: Saturday, 26 November 2011 1:08 p.m.
To: [hidden email]
Subject: Rotate a stack in a macro

Hello,
        Is there any way to use Rotate... in a macro or a plugin and rotate all images in the stack? The Rotate... process in a macro only rotates the first image. I guess I could step through the stack and rotate one image at a time, but is there any more intelligent way to do this?

Thanks, Phil

Philip R. Ershler Ph.D.
University of Utah
Cardiovascular Research and Training Institute
95 South 2000 East
Salt Lake City, UT 84112-5000

phone: (801) 230-8771
alt ph: (801) 587-9528
fax: (801) 581-3128
e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Rotate a stack in a macro

Antoinette
Yes, as long as you have a clear searching, you can get many available image rotating plugin to rotate certain image within 360 degrees or if it is necessary you can rotate image in batch mode, which means you can rotate multiple images at one time.