O
ownowl
Hello
I need to modify the color model of a PlanarImage (colors to grays scale
and other operations)
The original planarImage is built with a byte array that come from a
tiff file :
SeekableStream stream = new ByteArraySeekableStream(data);
RenderedImage im = JAI.create("stream", stream);
planarImage = PlanarImage.wrapRenderedImage(im);
planarImage is a instance of RenderedOp
the sampleModel of the planarImage is a PixelInterleavedSampleModel
the colorModel of the planarImage is a IndexColorModel
I tried it since several hours without success. So I not found in JAI
documentation all string_option of JAI.create(string_option, object) and
their signification.
thank for all idea
Olivier
I need to modify the color model of a PlanarImage (colors to grays scale
and other operations)
The original planarImage is built with a byte array that come from a
tiff file :
SeekableStream stream = new ByteArraySeekableStream(data);
RenderedImage im = JAI.create("stream", stream);
planarImage = PlanarImage.wrapRenderedImage(im);
planarImage is a instance of RenderedOp
the sampleModel of the planarImage is a PixelInterleavedSampleModel
the colorModel of the planarImage is a IndexColorModel
I tried it since several hours without success. So I not found in JAI
documentation all string_option of JAI.create(string_option, object) and
their signification.
thank for all idea
Olivier