ImageProcessor from / to stream

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

ImageProcessor from / to stream

Abramoff-Michael
Is there anyone on this list using an ImageProcessor as a filter on a stream? What I am trying to do is pipe the image that is coming in on a stream to the imageprocessor, do some manipulations on the image (stream), and stream it out to an output stream. It is to be used on a telemedicine server. This subject may have been mentioned on the list before.

Thanks, Michael Abramoff

Michael D. Abràmoff, MD, PhD
Assistant Professor of Clinical Ophthalmology / Assistant Professor of Electrical and Computer Engineering
Department of Ophthalmology and Visual Sciences
University of Iowa Hospital and Clinics, PFP 11290C
200 Hawkins Drive Iowa City, IA 52242
USA

Tel: +1 319 384 5833. Secretary Diane Stephenson: +1 319 356 1951.
Skype michael-abramoff [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ImageProcessor from / to stream

Albert Cardona
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