[QGIS-trac] Re: [Quantum GIS] #996: Re: [Quantum GIS] #996: QGIS
corrupts JPEG2000 colors
Quantum GIS
qgis at qgis.org
Wed Dec 10 21:28:43 EST 2008
#996: Re: [Quantum GIS] #996: QGIS corrupts JPEG2000 colors
-----------------------------------------------------+----------------------
Reporter: coatman | Owner: nobody
Type: defect | Status: reopened
Priority: major: does not work as expected | Milestone: Version 1.0.1
Component: Rasters | Version: HEAD
Resolution: | Keywords: kakadu raster
Platform_version: | Platform: OS X
Must_fix: No | Status_info: 0
-----------------------------------------------------+----------------------
Comment (by Coatman):
Jef, Thanks for reporting your findings. I think it is now reasonable to
conclude by a preponderance of the evidence reported here that
1. When QGIS depends upon a version of GDAL that is older than about 10
months, then QGIS properly displays JPEG2000 images thru Kakadu and thru
Jasper
2. When QGIS depends upon a version of GDAL that is newer than about 10
months, JP2 images are properly georeferenced, and displayed with the
proper number of columns and rows, but the colors are altered. Thru
Kakadu, the colors appear to be run through a color Look Up Table (LUT).
Thru Jasper, the colors can be all black. More examples are at
http://homepage.mac.com/gregcoats/jp2.html
In comparing the code in GDAL 1.6.0 to 1.5.0, I find that the Kakadu based
frmts/jp2kak/jp2kakdataset.cpp in 1.6.0 has different code than 1.5.0
after the comment in 1.6.0 on line 312 "Figure out the color
interpretation for this band."
I find that the Jasper based frmts/jpeg2000/jpeg2000dataset.cpp in 1.6.0
has different code than 1.5.0 around the comment in 1.6.0 on line 738
"JPEG2000 driver ignores color table. Consider using color table expansion
(-expand option in gdal_translate)".
Jef, If you do not already have Kakadu and are interested (Kakadu is much
faster than Jasper), then please send contact info to gregcoats at mac.com
Thanks to everyone for their contributions. I hope now someone will look
into GDAL.
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/996#comment:44>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list