Skip to main content

JAI ColorQuantizer Operation

4 replies [Last post]
rdander
Offline
Joined: 2005-11-16

Does anyone know a work around to make the JAI ColorQuantizer Operation work on a 48-bit per pixel tiff image? I get the invalid color model exception when trying to run the quantizer on a 48-bit image. It works fine on a 24-bit per pixel image.

Just wondering if anyone knew of a work around, beta code, or a way to make this work with 48-bit images?

I tried other Java image libraries such as JIU (Java Imaging Utilities), but the quantizer operation only supports 24-bit per pixel images as well.

-Ryan

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ah_hao
Offline
Joined: 2009-12-20

Hi. May I know if 48 bits is supported now?? I'm having the same problem now. Thanks.

rdander
Offline
Joined: 2005-11-16

Brian, Yes...16-bits per component, 3-bands.

Brian Burkhalter

Unfortunately the JAI implementation of "ColorQuantizer" does not support
anything but 3-band, 8 bits per sample images. The workaround would be to
provide your own implementation of this operation which supported the
requisite bit depth. You would then register your ColorQuantizer
RenderedImageFactory in the registry against the ColorQuantizer operation.

Brian

On Sun, 11 Dec 2005, jai-interest@javadesktop.org wrote:

> Brian, Yes...16-bits per component, 3-bands.
> ---
> [Message sent by forum member 'rdander' (Ryan)]
>
> http://www.javadesktop.org/forums/thread.jspa?messageID=129831&#129831
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
> For additional commands, e-mail: interest-help@jai.dev.java.net
>
>

----------------
Brian Burkhalter
Java Media, Imaging, and Graphics
Sun Microsystems, Inc.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
For additional commands, e-mail: interest-help@jai.dev.java.net

Brian Burkhalter

Ryan,

By 48 bits per pixel do you mean a 3-banded image with 16 bits per component?

Brian

On Thu, 8 Dec 2005, jai-interest@javadesktop.org wrote:

> Does anyone know a work around to make the JAI ColorQuantizer Operation work on a 48-bit per pixel tiff image? I get the invalid color model exception when trying to run the quantizer on a 48-bit image. It works fine on a 24-bit per pixel image.
>
> Just wondering if anyone knew of a work around, beta code, or a way to make this work with 48-bit images?
>
> I tried other Java image libraries such as JIU (Java Imaging Utilities), but the quantizer operation only supports 24-bit per pixel images as well.

----------------
Brian Burkhalter
Java Media, Imaging, and Graphics
Sun Microsystems, Inc.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
For additional commands, e-mail: interest-help@jai.dev.java.net