Login  Register

How to adjust color threshold without GUI in a Java plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

How to adjust color threshold without GUI in a Java plugin

George H
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