Login  Register

Getting row or column data for 32-bit image in Java

Posted by Neil Fazel on Nov 12, 2013; 6:46pm
URL: http://imagej.273.s1.nabble.com/Getting-row-or-column-data-for-32-bit-image-in-Java-tp5005541.html

Is there a way to get row or column data for a 32-bit floating point image? The methods getRow() and getColumn() are inherited by FloatProcessor from ImageProcessor but they return integer data not float. I'm looking for something like

getRow(int x,int y,float[] data,int length)
getColumn(int x,int y,float[] data,int length)

but this doesn't seem to be supported. Is getFloatArray(), which returns 2D data, the only way to get 32-bit pixel data without losing accuracy?

Thanks,
Neil

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html