I am trying to benchmark Jpeg2k for image compression. Normally it is supposed to work with a compression level (thresholding of the coefficients in the wavelet space). I tried the following:
- ImageJ with OME tiff (Jpeg2k lossy image is garbage and you can’t set the level)
- tifffile library calling imagecodecs. In this case the finale call is j2k_encode in imagecodecs_jpeg2k.pyx but the ‘level’ of compression is not working (i.e. whatever the level I set the output is the same) but the output is ok (compression ratio of around 3).
I have 2 questions:
- Is there a way to read the _jpeg2k.pyx to understand what’s going on under the hood?
- Is there another codec library that have a documentation?
There are many papers comparing jpeg2k compression with their own approach but I feel like no one is actually optimizing the behavior of the wavelet coefficient thresholding, especially with respect to the noise statistics.
Thank you for your help/tips.