Login  Register

Re: How to Threshold a grayscale image in java

Posted by Ben.BigHair on Jun 27, 2007; 11:52am
URL: http://imagej.273.s1.nabble.com/How-to-Threshold-a-grayscale-image-in-java-tp3698994p3698995.html

On Jun 27, 2007, at 2:21 AM, Chulaka Gunasekara wrote:

> Hi all,
>
> Can somebody tell me how to threshold a grayscale image in java. I'm
> new to image Processing and am stuck in a project. If you guys can
> help me with a source code or algorithm it would be wonderful....
>


Hello,

Please take a look at the online documentation for menu or macro  
driven thresholding...

http://rsb.info.nih.gov/ij/docs/menus/image.html#adjust

or if you want to really use Java then you'll need to dive into  
ImageJ's source code - see ...

ImageProcessor.setThreshold() in http://rsb.info.nih.gov/ij/developer/ 
api/index.html

Cheers,
Ben

Ben Tupper
Bigelow Laboratory for Ocean Science
180 McKown Point Road
POB 475
West Boothbay Harbor, ME 04575