How to Threshold a grayscale image in java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to Threshold a grayscale image in java

Chulaka Gunasekara
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....


--
Chulaka Gunasekara
Dept. of Computer Science & Engineering
University of Moratuwa.
Sri Lanka.
Reply | Threaded
Open this post in threaded view
|

Re: How to Threshold a grayscale image in java

Ben.BigHair
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