|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
TIFF/GeoTIFF decoder bit depth problem [JAI 1.1, Tools 1.1.3, Windoze XP]I have 2 image files: one is a regular TIFF @ 8 bit depth, the other is a GeoTIFF @ 16 bit.
This 1st one displays correctly, the 2nd one is all BLACK. Writing to a DisplayJAI. Is this a known problem? Verion: "JAI 2006-09-11 17:23:56.159-0700" -- Mike Some relevant data: [b]1st image:[/b] Examining Image Info [0] from reader com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader Image #0 has 0 thumbnail(s) Image is NOT tiled. Examining ImageMetadata[0] from reader com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader image Metadata Format Name [0]: com_sun_media_imageio_plugins_tiff_image_1.0 image Metadata Format Name [1]: javax_imageio_1.0 image meta controller: false Examining ImageTypeSpecifiers: [0]: javax.imageio.ImageTypeSpecifier$Interleaved BufferedImageType: TYPE_CUSTOM ColorModel: java.awt.image.ComponentColorModel isAlphaPremultiplied: false hasAlpha: false Transparency: OPAQUE NumComponents: 3 NumColorComponents: 3 ComponentSize[0]: 8 ComponentSize[1]: 8 ComponentSize[2]: 8 TransferType: 0 ColorSpace: java.awt.color.ICC_ColorSpace Type: TYPE_RGB isCS_sRGB: true # of bands: 3 SampleModel: java.awt.image.PixelInterleavedSampleModel DataType: TYPE_BYTE Height: 1, Width: 1 NumBands: 3 NumDataElements: 3 Sample Size[0]: 8 Sample Size[1]: 8 Sample Size[2]: 8 TransferType: 0 TIFF Directory count: 1 Examining Directory com.sun.media.jai.codec.TIFFDirectory # of Directory entries: 16 TIFF Field [ 0]: tag # 256, {ImageWidth }, type 4 (TIFF_LONG ), value = 900 TIFF Field [ 1]: tag # 257, {ImageLength }, type 4 (TIFF_LONG ), value = 300 TIFF Field [ 2]: tag # 258, {BitsPerSample }, type 3 (TIFF_SHORT ), value = 8 TIFF Field [ 3]: tag # 259, {Compression }, type 3 (TIFF_SHORT ), value = 1 TIFF Field [ 4]: tag # 262, {PhotometricInterpretation}, type 3 (TIFF_SHORT ), value = 2 TIFF Field [ 5]: tag # 273, {StripOffsets }, type 4 (TIFF_LONG ), value = 639 TIFF Field [ 6]: tag # 277, {SamplesPerPixel }, type 3 (TIFF_SHORT ), value = 3 TIFF Field [ 7]: tag # 278, {RowsPerStrip }, type 4 (TIFF_LONG ), value = 8 TIFF Field [ 8]: tag # 279, {StripByteCounts }, type 4 (TIFF_LONG ), value = 21600 TIFF Field [ 9]: tag # 282, {XResolution }, type 5 (TIFF_RATIONAL), value = 3000000, 10000 TIFF Field [10]: tag # 283, {YResolution }, type 5 (TIFF_RATIONAL), value = 3000000, 10000 TIFF Field [11]: tag # 284, {PlanarConfiguration }, type 3 (TIFF_SHORT ), value = 1 TIFF Field [12]: tag # 296, {ResolutionUnit }, type 3 (TIFF_SHORT ), value = 2 TIFF Field [13]: tag # 305, {Software }, type 2 (TIFF_ASCII ), value = "Adobe Photoshop 7.0" TIFF Field [14]: tag # 306, {DateTime }, type 2 (TIFF_ASCII ), value = "2006:03:03 17:49:32" TIFF Field [15]: tag #34665, {(null) }, type 4 (TIFF_LONG ), value = 573 [b]2nd image:[/b] Examining Image Info [0] from reader com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader Image #0 has 0 thumbnail(s) Image is tiled. TileHeight: 128 TileWidth: 128 TileGridXOffset: 0 TileGridYOffset: 0 Examining ImageMetadata[0] from reader com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader image Metadata Format Name [0]: com_sun_media_imageio_plugins_tiff_image_1.0 image Metadata Format Name [1]: javax_imageio_1.0 image meta controller: false Examining ImageTypeSpecifiers: [0]: javax.imageio.ImageTypeSpecifier$Interleaved BufferedImageType: TYPE_CUSTOM ColorModel: java.awt.image.ComponentColorModel isAlphaPremultiplied: false hasAlpha: false Transparency: OPAQUE NumComponents: 3 NumColorComponents: 3 ComponentSize[0]: 16 ComponentSize[1]: 16 ComponentSize[2]: 16 TransferType: 1 ColorSpace: java.awt.color.ICC_ColorSpace Type: TYPE_RGB isCS_sRGB: true # of bands: 3 SampleModel: java.awt.image.PixelInterleavedSampleModel DataType: TYPE_USHORT Height: 1, Width: 1 NumBands: 3 NumDataElements: 3 Sample Size[0]: 16 Sample Size[1]: 16 Sample Size[2]: 16 TransferType: 1 TIFF Directory count: 1 Examining Directory com.sun.media.jai.codec.TIFFDirectory # of Directory entries: 25 TIFF Field [ 0]: tag # 254, {NewSubfileType }, type 4 (TIFF_LONG ), value = 0 TIFF Field [ 1]: tag # 256, {ImageWidth }, type 3 (TIFF_SHORT ), value = 207 TIFF Field [ 2]: tag # 257, {ImageLength }, type 3 (TIFF_SHORT ), value = 1850 TIFF Field [ 3]: tag # 258, {BitsPerSample }, type 3 (TIFF_SHORT ), value = 16 TIFF Field [ 4]: tag # 259, {Compression }, type 3 (TIFF_SHORT ), value = 1 TIFF Field [ 5]: tag # 262, {PhotometricInterpretation}, type 3 (TIFF_SHORT ), value = 2 TIFF Field [ 6]: tag # 270, {ImageDescription }, type 2 (TIFF_ASCII ), value = "Reduced resolution image 0 of file po_92397_rgb_0000000.tif - Color combined image." TIFF Field [ 7]: tag # 274, {Orientation }, type 3 (TIFF_SHORT ), value = 1 TIFF Field [ 8]: tag # 277, {SamplesPerPixel }, type 3 (TIFF_SHORT ), value = 3 TIFF Field [ 9]: tag # 282, {XResolution }, type 5 (TIFF_RATIONAL), value = 1073741824, 1073741824 TIFF Field [10]: tag # 283, {YResolution }, type 5 (TIFF_RATIONAL), value = 1073741824, 1073741824 TIFF Field [11]: tag # 284, {PlanarConfiguration }, type 3 (TIFF_SHORT ), value = 1 TIFF Field [12]: tag # 296, {ResolutionUnit }, type 3 (TIFF_SHORT ), value = 1 TIFF Field [13]: tag # 306, {DateTime }, type 2 (TIFF_ASCII ), value = "2008:06:25 18:42:31" TIFF Field [14]: tag # 315, {Artist }, type 2 (TIFF_ASCII ), value = "image_copy" TIFF Field [15]: tag # 322, {TileWidth }, type 3 (TIFF_SHORT ), value = 128 TIFF Field [16]: tag # 323, {TileLength }, type 3 (TIFF_SHORT ), value = 128 TIFF Field [17]: tag # 324, {TileOffsets }, type 4 (TIFF_LONG ), value = 8 TIFF Field [18]: tag # 325, {TileByteCounts }, type 4 (TIFF_LONG ), value = 98304 TIFF Field [19]: tag # 339, {SampleFormat }, type 3 (TIFF_SHORT ), value = 1 TIFF Field [20]: tag # 340, {SMinSampleValue }, type 3 (TIFF_SHORT ), value = 1 TIFF Field [21]: tag # 341, {SMaxSampleValue }, type 3 (TIFF_SHORT ), value = 2047 TIFF Field [22]: tag #33432, {Copyright }, type 2 (TIFF_ASCII ), value = "" TIFF Field [23]: tag #34735, {GeoKeyDirectory }, type 3 (TIFF_SHORT ), value = 1 TIFF Field [24]: tag #34737, {GeoAsciiParams }, type 2 (TIFF_ASCII ), value = "|" [Message sent by forum member 'mvilot' (mvilot)] http://forums.java.net/jive/thread.jspa?messageID=282668 --------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@... For additional commands, e-mail: interest-help@... |
|
|
Re: TIFF/GeoTIFF decoder bit depth problem [JAI 1.1, Tools 1.1.3, Windoze XNevermind. Found this:
https://jaistuff.dev.java.net/code/data.ResampleTo8Bits.java Thanks, Rafael! [Message sent by forum member 'mvilot' (mvilot)] http://forums.java.net/jive/thread.jspa?messageID=283702 --------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@... For additional commands, e-mail: interest-help@... |
| Free Forum Powered by Nabble | Forum Help |