Using your image desktop.ppm in test folder, I try:
- charlstest -encodepnm desktop.ppm des.jls
- charlstest -decodetopnm des.jls desktop_rec.ppm
but the reconstructed image is not the same of the original one. I am attaching the error between the images.
I also try to modify main.cpp present in the test folder adding
- params.allowedlossyerror = 0;
in EncodePnm function before to call
- JpegLsEncodeStream(jlsStreamInfo, &bytesWritten, rawStreamInfo, ¶ms);
but the result is the same. How can I obtain the lossless compression with your charlstest?