How to adjust color threshold without GUI in a Java plugin

Posted by George H on
URL: http://imagej.273.s1.nabble.com/How-to-adjust-color-threshold-without-GUI-in-a-Java-plugin-tp5009303.html

Hi,

I've managed to adjust the threshold of an 8bit grayscaled image using
IJ.setAutoThreshold(image, "Default");

In my Java Plugin that batch processes images.

Now I'm finding it a bit difficult to adjust color threshold. At most I
find the ColorThresholder class but looking at the sourcecode of it shows a
lot of AWT dependence.

Doing a macro record (Java) on the color threshold in Fiji results in
something quite confusing, not really knowing what I'm supposed to do with
that output.

I'm sure there is a trick to this that I'm overlooking. Hopefully someone
can point me in the right direction.

Thanks again.
--
George
[hidden email]

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