Opened 13 years ago

Closed 6 years ago

#3975 closed defect (duplicate)

JP2KAK : artefacts in lossless 16 bit

Reported by: fclaudel Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords:
Cc:

Description (last modified by fclaudel)

Creating a lossless JPEG2000 image with JP2KAK from a signed or unsigned 16-bit image causes artefacts in the image, in the places with strong radiometric transitions, and also where extremal values are used.

Test source images are :
1 - an elevation model (TIFF signed 16 bit), with elevation in meters, and large NoData regions -nodata value is DTED : -32767.
2 - same image with a +32768 offset (range between 1 and around 34000), stored as TIFF unsigned 16 bit

see test images (attached)

I tried different GDAL version (1.6, 1.7 and 1.8) Kakadu version is 6.3.1 Platform is Windows XP (Visual 2008)

To reproduce :
gdal_translate -of JP2KAK -co QUALITY=100 <input.tif> <output.jp2> Note :
Using kakadu tools there is no problem : Creversible is used instead of QUALITY=100
kdu_compress.exe -i <source>.tif -o <target>.jp2 Clayers=12 Creversible=yes

Attachments (2)

Dem_Int16.tif (91.6 KB ) - added by fclaudel 13 years ago.
Source file, signed DEM with NoData
GDAL_16bit_DEM_bug.png (34.4 KB ) - added by Jukka Rahkonen 9 years ago.

Download all attachments as: .zip

Change History (6)

by fclaudel, 13 years ago

Attachment: Dem_Int16.tif added

Source file, signed DEM with NoData

comment:1 by fclaudel, 13 years ago

Description: modified (diff)

by Jukka Rahkonen, 9 years ago

Attachment: GDAL_16bit_DEM_bug.png added

comment:2 by Jukka Rahkonen, 9 years ago

Confirmed with Kakadu 7.3.2 compiled for 64 bit Windows.

comment:3 by Jukka Rahkonen, 6 years ago

This issue needs a refresh with recent Kakadu driver. Unfortunately I do not have such.

comment:4 by Even Rouault, 6 years ago

Resolution: duplicate
Status: newclosed

Seems to be a duplicate of #5183

Note: See TracTickets for help on using tickets.