Re: How to read 'raw' data as 32 bit unsigned in Java
Posted by
Michael Schmid on
URL: http://imagej.273.s1.nabble.com/How-to-read-raw-data-as-32-bit-unsigned-in-Java-tp5021772p5021775.html
Hi Robert,
ImageJ can import 32-bit images; it opens them as 32-bit floating point
(which results in some loss of accuracy for high pixel values). You can
then apply a color LUT of your choice or any other processing you like.
Use File>Import>Raw or the corresponding IJ.run command (Use the Macro
Recorder in 'Java' mode).
Michael
________________________________________________________________
On 2019-02-12 19:15, Robert Lockwood wrote:
> Working with Java I have raw data files with 32 bit integer gray scale
> data
> which I read into a byte[] array. I process these data as ints looking
> for
> adjacent pixels that have the same value in order to debug a problem
> with
> the camera.
>
> I'd like to create a scaled grayscale RGB from the original data so
> that I
> may color the detected adjacent pixels to allow us to detect patterns
> visually but I don't understand how to create and populate a grayscale
> integer ImageJ array and have not found an example by Google searching.
>
> How do I do this?
> TIA
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html