Login  Register

Re: ImageProcessor from / to stream

Posted by Albert Cardona on Jan 12, 2006; 5:03pm
URL: http://imagej.273.s1.nabble.com/ImageProcessor-from-to-stream-tp3704086p3704087.html

Michael,

I read entire tiff images from a stream using:

ImagePlus imp = new Opener().openTiff(InputStream stream, String title);

As for sending them out, then I use the ij.io.TiffEncoder, which writes to a
DataOutputStream.

If you peak into the source files for the Opener and the TiffEncoder, you'll
find your way to stream in and out just the byte[] of your ByteProcessor.

Albert

--
--
Albert Cardona
Molecular Cell Developmental Biology
University of California Los Angeles
Tel +1 310 2067376
Programming: http://www.pensament.net/java/
Research: http://www.mcdb.ucla.edu/Research/Hartenstein/
Web design: http://www.pixelets.com