JPEG compression
JPEG is a clever image compression algorithm that makes a change of basis before encoding. The rewritten image representation concentrates the signal that humans are most perceptive to, so that the remaining details can be discarded without horribly degrading visual fidelity. A digital image is a mapping from two-dimensional spatial coordinates to pixel values: 𝐼 : 𝐷 ⊂ 𝑍 2 → 𝐶 . I:D⊂Z 2 →C. Here 𝐷 D is a finite grid of pixel locations and 𝐶 C is the set of possible values. In the 𝑅 𝐺 𝐵 RGB model, 𝐶 = { 0 , … , 255 } 3 C={0,…,255} 3 , representing three 8-bit color channels. A property of human vision is that we are more sensitive to luminance (brightness) than to chrominance (color differences). Edges and fine detail in brightness are noticeable, while small variations in color are much harder to perceive. JPEG exploits this by separating brightness from color, meaning that instead of working directly in 𝑅 𝐺 𝐵 RGB, each pixel is converted to the Y'CbCr color space: (
JPEG is a clever image compression algorithm that exploits a human perceptual bias and the structure of natural images. It makes a change of basis before encoding so that the rewritten image representation concentrates the signal that humans are most perceptive to, and thus, the remaining details can be discarded without horribly degrading visual fidelity. A digital image is a mapping from two-dimensional spatial coordinates to pixel values: I:D⊂Z2→C.I: D \subset \mathbb{Z}^2 \to \mathcal{C}. Here DD is a finite grid of pixel locations and C\mathcal{C} is the set of possible values. In the…
related reading
- What's In a JPEG?blog.bithole.dev
- Image formats: Pixel data from encoders to decodersdeveloper.mozilla.org
- Unraveling The JPEGparametric.press
- JPEG - Wikipediaen.wikipedia.org
- How does image compression work? | Lee Robinsonleerob.com
- H.264 is magic: a technical walkthrough of a remarkable technology.sidbala.com
- Lossless compressionen.wikipedia.org
- Guillaume Técherguillaumetech.github.io
- Color Spaces – Bartosz Ciechanowskiciechanow.ski
- Same Image, Different Score? | Halide Compressionhalide.cx
- Compression is predictionngrok.com
- Visualizing Algorithmsbost.ocks.org