On Nov 25, 2021, at 3:39 AM, Mathieu Malaterre <mathieu....@gmail.com> wrote:
Hi all,
--
You received this message because you are subscribed to the Google Groups "libjpeg-turbo User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libjpeg-turbo-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libjpeg-turbo-users/d2cffd89-1bc2-4790-9e9f-24faf62af87dn%40googlegroups.com.
Yes, even with quality=100, there is still
some slight mathematical error (but no perceptual loss.) The mathematical error occurs most often in
the darker areas of the image. The original lossless JPEG
standard (sometimes called "JPEG-LS") uses DPCM rather than DCT
for that reason (https://en.wikipedia.org/wiki/Lossless_JPEG).
Your example
doesn't use color conversion, but RGB-to-YCbCr and
YCbCr-to-RGB will incur round-off error in addition to the DCT
error.
max err.= 1 avg err.= 0.084037 rms= 0.290457 PSNR= 58.903
Grayscale loss for
lena.512.pgm using the integer DCT/IDCT:
max err.= 1 avg
err.= 0.092814 rms= 0.305248 PSNR= 58.4716
In other words, the
output component values never drift by more than +/- 1
relative to the input, and the average drift is < 0.1
across the entire image.
To view this discussion on the web visit https://groups.google.com/d/msgid/libjpeg-turbo-users/3cbb90c7-b2ea-4c93-ba87-22f51df2073cn%40googlegroups.com.