Login  Register

RE: IJ Color Thresholding in Macro

Posted by Steve R on Dec 04, 2014; 8:06pm
URL: http://imagej.273.s1.nabble.com/IJ-Color-Thresholding-in-Macro-tp5010727p5010771.html

 

Gabriel, Thanks so much! I have it working now. I had an error at first when I ran the macro saying the image must be color thresholded before doing an Analyze Particles.

So I moved the ImageCalculator string down after the Analyze Particles routine in the macro & it worked.

Again appreciate your  help, wouldn’t have been able to even come close if it wasn’t for your help.

 

Oh yeah, one more quick question, is there not a way to save all the settings in ImageJ, like a configuration file or something, so that next time you open ImageJ & run things like Color Threshold, the default starting settings come up with what you had saved?

Let me know,

Thanks,

Steve

 

 

From: Gabriel Landini [via ImageJ] [mailto:ml-node+[hidden email]]
Sent: Thursday, December 4, 2014 9:18 AM
To: Steve Roach
Subject: Re: IJ Color Thresholding in Macro

 

On Thursday 04 Dec 2014 07:59:50 Steve R <[hidden email]> wrote:
> Sorry, still a little confused with this:

This should explain it.

run("Clown (14K)");
n1=getTitle();
run("Duplicate...", " ");
n2=getTitle();
selectImage(n1);
// include the the thresholding macro code here
// it will threshold the selected image n1
imageCalculator("AND create", n2, n1);

Cheers
Gabriel

--
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-tp5010727p5010766.html

To unsubscribe from IJ Color Thresholding in Macro, click here.
NAML