Login  Register

Re: getAutoThreshold

Posted by Gabriel Landini on Jul 29, 2009; 8:19am
URL: http://imagej.273.s1.nabble.com/getAutoThreshold-tp3691634p3691635.html

On Tuesday 28 July 2009  09:16:29 Jjonthelin wrote:

> Hi everyone, I'm new to using ImageJ, and I'm trying to write a macro that
> will apply the same threshold to all the pictures within one folder.  I want
> the macro to first go through each image and collect threshold values
> generated by AutoThreshold.  The macro should then take the average
> threshold value and apply it to all of the images.  The main snag that I'm
> running into is how to use getAutoThreshold() function.  
>
> x = getAutoThreshold();
>
> What else do I need to add to that statement?  

You need to read the macro functions supported by ImageJ.

http://rsb.info.nih.gov/ij/developer/macro/functions.html#getThreshold

G