Domanda

Sto sviluppando un Viewer / Editor dell'immagine utilizzando VS2008, MFC e WIC e vorrei ricomprimere i JPEG come da vicino (qualità-wize) il più possibile al loro originale, dopo l'elaborazione delle immagini.Qualcuno sa come estrarre le tabelle di luminanza e crominalità da impostare in
http://msdn.microsoft.com/en-US / Libreria / GG430026% 28V= vs.85% 29.aspx senza Dovendo usare una biblioteca aggiuntiva (come libjpeg)?

È stato utile?

Soluzione

The JPEG standard specification covers the details of the luminance and chrominance table.

In JPEG terminology, those tables are both referred to as "quantization table" (DQT). The luminance quantization table is applied on the "Y" channel and the chrominance quantization table is applied to "Cb" and "Cr" channels.

This website lists the quantization tables for a large number of camera manufacturers and JPEG authoring software.

To recompress an image using the same quantization tables as another existing image:

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top