coding a contrast stretch.
Posted by
Robert Lockwood on
Sep 26, 2013; 9:56pm
URL: http://imagej.273.s1.nabble.com/coding-a-contrast-stretch-tp5004955.html
I have a ByteBuffer with an image (16 bits per pixel and monochrome) that I
can display in my UI and I can save as a TIFF file using ImageJ.
I've just written code to read a saved TIFF from a file using ImagePlus,
get the BufferedImage and both display it in my UI and as an ImageJ window.
My test images have absolutely rotten contrast so I need to do a linear
stretch but have not found it in the DOCS yet and Google has been no help.
How do I do this?
TIA
Nate
--
When I was 12 I thought I would live forever.
So far, so good.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html