| From | Sent On | Attachments |
|---|
| Subject: | RE: [JAI-IMAGEIO] Problem rendering Tiff with 2 samples per pixel | |
|---|---|---|
| From: | Brian Burkhalter (Bria...@Sun.COM) | |
| Date: | Jun 20, 2007 11:51:02 am | |
| List: | net.java.dev.jai-imageio.interest | |
Refine Search
| From | Sent On | Attachments |
|---|---|---|
| mja...@union06.de | Jun 20, 2007 3:34 am | |
| jai-...@javadesktop.org | Jun 20, 2007 4:29 am | |
| jai-...@javadesktop.org | Jun 20, 2007 4:43 am | |
| Brian Burkhalter | Jun 20, 2007 11:34 am | |
| Brian Burkhalter | Jun 20, 2007 11:51 am | |
| jai-...@javadesktop.org | Jun 21, 2007 6:19 am | |
| jai-...@javadesktop.org | Jun 21, 2007 11:05 am |
| Subject: | RE: [JAI-IMAGEIO] Problem rendering Tiff with 2 samples per pixel | |
|---|---|---|
| From: | Brian Burkhalter (Bria...@Sun.COM) | |
| Date: | Jun 20, 2007 11:51:02 am | |
| List: | net.java.dev.jai-imageio.interest | |
Hi Marco,
here is the output from the example program you cited.
kind regards
-- frank
This is a bizarre image. For example:
BitsPerSample = {8, 8} PhotometricInterpretation= {3} (Palette Color) SamplesPerPixel={2} ExtraSamples={999}
This indicates a 2-band image which has indexed color. It could be that one band is supposed to be interpreted as Palette Color and the other band as something else. The ExtraSamples field however does not contain a value which is legal per the TIFF 6.0 specification which allows only 0, 1, or 2.
If you can load the image you might want to extract the first band and create an image using it and an IndexColorModel created from the ColorMap field.
Brian
---------------- 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. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

