Login  Register

Re: How to order images within a stack

Posted by Lachlan Whitehead on Nov 06, 2013; 1:34am
URL: http://imagej.273.s1.nabble.com/How-to-order-images-within-a-stack-tp3692604p5005463.html

There may be other ways to do this, but I've used the concatenate stacks command in the past.

run("Concatenate...", "  title=[Stack] image1=[red.jpg] image2=[green.jpg] image3=[far red.jpg] image4=[RGB.jpg]")

This should work so long as your filenames don't change, otherwise you'll have to make them variables to get them in there.
(eg red_image = "red.jpg"; then in your concatenate command replace the filenames: image1=["+red_image+"] etc)

Hope this helps.
-Lachie


----- Original Message -----
From: "mmettlen" <[hidden email]>
To: [hidden email]
Sent: Wednesday, 6 November, 2013 5:59:27 AM
Subject: Re: How to order images within a stack

I have a somewhat related questions (I'm new to writing macros). Currently, I
have a macro that generates and saves 4 images called red.jpg, green.jpg,
far red.jpg and RGB.jpg. I'm trying to built a stack that includes these 4
images in the listed order (which is of course not alphabetical). What
commands do I have to include in my macro to do so?
Thx!



--
View this message in context: http://imagej.1557.x6.nabble.com/How-to-order-images-within-a-stack-tp3692604p5005458.html
Sent from the ImageJ mailing list archive at Nabble.com.

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

______________________________________________________________________
The information in this email is confidential and intended solely for the addressee.
You must not disclose, forward, print or use it without the permission of the sender.
______________________________________________________________________

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