Compare JPEG2000: Kakadu vs. Jasper (ImageMagick)
Posted: 2009-11-18T06:38:46-07:00
Dear all,
we are running some tests to use JPEG2000 as the master format to store the scans of our archives. We'd like to replace TIFF lossless with JPEG2000 lossless. As you might know, there are some ways to convert TIFFs into JPEG2000. One is using the Kakadu library, another one JasPer, as used in ImageMagick.
I have encoded a sample TIFF using Kakadu, using the following options: (defaults as used by Djatoka):
This results in an image of 1231 kb.
Converting the same TIFF with ImageMagick, using
results in a 6485kb image.
If I compare both files using IM's compare function, combined with "-metric AE", there are 4.75701e+006 different pixels...
Comparing the original TIFF with a decompressed TIFF-version of the Kakadu JP2, gives the same error rate...
However, both should be lossless (and according to the properties of the files - obtained with kdu_show), both images have been lossless encoded (Creversible = yes)...
Does anyone have an explanation for this quite odd behaviour?
Thanks a lot,
dieter
we are running some tests to use JPEG2000 as the master format to store the scans of our archives. We'd like to replace TIFF lossless with JPEG2000 lossless. As you might know, there are some ways to convert TIFFs into JPEG2000. One is using the Kakadu library, another one JasPer, as used in ImageMagick.
I have encoded a sample TIFF using Kakadu, using the following options: (defaults as used by Djatoka):
Code: Select all
slope=51651,51337,51186,50804,50548,50232
Clayers=6
Creversible=yes
Cprecincts={256,256},{256,256},{128,128}
Converting the same TIFF with ImageMagick, using
Code: Select all
>convert 0001.tif -compress Lossless -quality 100 0001.jp2
If I compare both files using IM's compare function, combined with "-metric AE", there are 4.75701e+006 different pixels...
Comparing the original TIFF with a decompressed TIFF-version of the Kakadu JP2, gives the same error rate...
However, both should be lossless (and according to the properties of the files - obtained with kdu_show), both images have been lossless encoded (Creversible = yes)...
Does anyone have an explanation for this quite odd behaviour?
Thanks a lot,
dieter