JP2KAK YCbCr problems with band selection through DirectRasterIO()
|Reported by:||Coatman||Owned by:||warmerdam|
- 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
- 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.
Example images are here http://homepage.mac.com/gregcoats/jp2.html
Since 2 May 2008, there have been 42 comments posted about this issue at http://trac.osgeo.org/qgis/ticket/996
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)".
Any help would be greatly appreciated.
Change History (17)
comment:2 by , 14 years ago
|Priority:||high → normal|
|Version:||unspecified → 1.6.0|
comment:14 by , 14 years ago
|Status:||new → closed|
|Summary:||JPEG2000 images improperly displayed, colors corrupted → JP2KAK YCbCr problems with band selection through DirectRasterIO()|