Opened 13 years ago

Last modified 10 years ago

#4050 closed defect

JP2KAK : offset in lossless unsigned int (16 bits) — at Version 4

Reported by: pinchonn Owned by: warmerdam
Priority: high Milestone: 1.11.0
Component: default Version: 1.9.0
Severity: blocker Keywords: kakadu lossless JP2KAK JPEG2000
Cc:

Description (last modified by pinchonn)

There is a problem with creating a lossless JPEG2000 image with JP2KAK (kakadu) from an unsigned int image : the output image has an +32768 offset. This offset seems to be constant.

The test image is an unsigned int TIFF image (see attachment).

I tried last GDAL versions : 1.8.1 and 1.9.0
Kakadu version is 6.4.1 (latest).
Platform is Linux Red Hat 5 64 bits.

To reproduce the bug :

gdal_translate -of JP2KAK -co QUALITY=100 input.tif out_gdal_translate.jp2

Using kakadu tools there is no problem :

kdu_compress -i input.tif -o out_kdu_compress.jp2 Creversible=yes Clayers=16

(Creversible is used instead of QUALITY=100)

Change History (7)

by pinchonn, 13 years ago

Attachment: input.zip added

input image

by pinchonn, 13 years ago

Attachment: out_gdal_translate.jp2 added

ouput image created with gdal_translate

by pinchonn, 13 years ago

Attachment: out_kdu_compress.jp2 added

output image created with kdu_compress

comment:1 by pinchonn, 13 years ago

Severity: normalblocker
Version: unspecified1.8.0

comment:2 by pinchonn, 12 years ago

Resolution: fixed
Status: newclosed

comment:3 by pinchonn, 12 years ago

Description: modified (diff)
Keywords: JP2KAK JPEG2000 added
Resolution: fixed
Status: closedreopened
Version: 1.8.01.8.1

comment:4 by pinchonn, 12 years ago

Description: modified (diff)
Version: 1.8.11.9.0
Note: See TracTickets for help on using tickets.