Sorry, still a little confused with this:
n1 holds the name, so you replace the "clown.jpg" string
(with " " ) for the
variable n1 with no " ". And do similarly for the 2nd image
Guess I’m dense, but not sure what to do from your instructions above.
I understand about adding the variable & where to put it, but not the code to combine the 2 images.
This is the string where I need to replace the image names with the variables referencing the 2 images, right?
imageCalculator("AND create", "clown-1.jpg","clown.jpg");
Can you explain more, appreciate it.
Steve
From: Gabriel Landini [via ImageJ] [mailto:ml-node+[hidden email]]
Sent: Thursday, December 4, 2014 3:04 AM
To: Steve Roach
Subject: Re: IJ Color Thresholding in Macro
On Wednesday 03 Dec 2014 11:56:34 you wrote:
> Ok, I see, got that to work & that's a big improvement over what I had.
> Here is the code it generated. So I think I know where to insert his in my
> macro, but how do I replace these 2 names with instruction to act on the
> images within the macro? Like you said "all images" Let me know, Thanks
> again, Steve
After you open the first image, execute in a macro.
n1=getTitle();
n1 holds the name, so you replace the "clown.jpg" string (with " " ) for the
variable n1 with no " ".
And do similarly for the 2nd image.
But perhaps it is easier if you rename the images within the macro after they
are opened, (like "image1" and "image2"and use that in the Image Calculator.
Cheers.
G
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
If you reply to this email, your message will be added to the discussion below:
http://imagej.1557.x6.nabble.com/IJ-Color-Thresholding-in-Macro-tp5010727p5010756.html
To unsubscribe from IJ Color Thresholding in Macro,
click here.
NAML
Free forum by Nabble | Disable Popup Ads | Edit this page |