-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JP2kak is not lossless when there is more than one band #10598
Comments
@IdanAviv89 Please provide an image to reproduce, as I don't reproduce the issue with the autotest/gdrivers/data/small_world.tif of our test suite and Kakadu 8.4.1 and GDAL master
|
For me it happens when the raster is 16bits per band. |
I still can't reproduce any issue: Unsigned 16 bit:
Signed 16 bit:
Please provide a reproducer input image (as small as possible, so use potentially gdal_translate to subset it first), as guessing in the dark isn't fun |
Hi,
I converted it to jpeg 2000 using the following command: I got the following checksum:
|
gdal/frmts/jp2kak/jp2kakdataset.cpp Lines 2887 to 2911 in 27a73be
I think the problem is somewhere over here.
|
…tripe compressor code path Fixes OSGeo#10598
Fix in #10615 You may workaround the bug by adding |
…tripe compressor code path Fixes OSGeo#10598
…tripe compressor code path Fixes #10598
Hi, command: I get the following warning:
And when I check the checksum of the input and the output I get different values. Am I missing any argument ? |
How big is large image? What GDAL and Kakudu SDK versions do you have? |
Hi, I am getting that the checksum of the tif:
And after converting it to jp2kak using the following command:
|
Does gdalcompare https://gdal.org/en/latest/programs/gdalcompare.html find differences from pixels as well? |
Yes |
@IdanAviv89 I don't reproduce the issue with GDAL master using Kakadu v8.4.1:
|
What is the bug?
When converting an image with multiple bands using the jp2kak driver, with the lossless options, the band checksum after the conversion is different. While when there is only one band the checksum is the same before and after the conversion.
Steps to reproduce the issue
Taking an image with multiple bands (for example rgb) and using the quality= 100 option.
Versions and provenance
ubuntu 20, gdal 3.6.1 (I look at newer version and it doesn't seems there is a fix there).
Additional context
No response
The text was updated successfully, but these errors were encountered: