Login  Register

Re: IJ Color Thresholding in Macro

Posted by Gabriel Landini on Dec 04, 2014; 10:01am
URL: http://imagej.273.s1.nabble.com/IJ-Color-Thresholding-in-Macro-tp5010727p5010756.html

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