Image Compression with Anisotropic Diffusion

Irena Galic, Joachim Weickert, Martin Welk, Andrés Bruhn, Alexander G. Belyaev, Hans-Peter SeidelJ. Math. Imaging Vis 2008 · DOI

Traditional image compression standards like JPEG have long relied on frequency-domain transforms to reduce data size. However, at high compression ratios, these methods often suffer from noticeable artifacts such as blockiness and ringing. In a paper published in the Journal of Mathematical Imaging and Vision, researchers explore a radical alternative: treating image compression as a scattered data interpolation problem solved via Partial Differential Equations (PDEs).

The Problem: Beyond Frequency Transforms

Most digital image compression works by discarding high-frequency information that the human eye is less likely to perceive. While effective, this approach breaks down when pushed to extremes. The authors of this study ask a different question: Can we treat compression as an inpainting problem? If we store only a tiny fraction (e.g., 2%) of an image's pixels, how can we best reconstruct the remaining 98%?

Simple linear interpolation often results in "faceting" artifacts, while basic isotropic diffusion (governed by the heat equation) tends to blur sharp edges. The challenge lies in finding a mathematical model capable of reconstructing sharp boundaries and smooth gradients from highly sparse, scattered data points.

The EEDC Framework

The authors propose the Edge-Enhancing Diffusion Compression (EEDC) framework. This system replaces standard linear interpolation with a sophisticated PDE-based decoder. The process involves two primary stages:

1. Sparsification via BTTC

To decide which pixels to keep, the system uses B-tree Triangular Coding (BTTC). This method recursively splits the image into triangles. If the reconstruction error within a triangle exceeds a certain threshold, the triangle is split further, adding more data points to the set. This ensures that complex areas with high detail receive more pixels than smooth regions.

The sparse set of pixels (mask) retained after the sparsification process, representing only a small fraction of the original image data.

2. The EED Interpolation Engine

Instead of filling the gaps with flat planes, the decoder uses Edge-Enhancing Diffusion (EED). Unlike isotropic diffusion, which blurs in all directions, EED utilizes a diffusion tensor. This allows the mathematics to "feel" the direction of edges, smoothing along an edge to maintain its continuity while preventing smoothing across the edge to preserve sharpness.

Key Insights and Results

The EED approach offers several advantages over traditional methods:

  • Maximum-Minimum Principle: Unlike higher-order splines, EED respects the bounds of the surrounding data, preventing "ghost" colors or overshoots.
  • Structural Integrity: By steering diffusion along structural lines, EED avoids the singularities (point-like artifacts) common in simpler diffusion models.
  • Aesthetic Quality: At high compression ratios, EEDC produces a "cartoon-like" reconstruction. While it may lose some fine texture, it maintains sharp edges and smooth gradients, avoiding the ugly block artifacts of JPEG.
A comparison of reconstruction techniques from sparse data. Top: Original and mask. Middle: Linear interpolation, isotropic diffusion, and EED. Bottom: Refined EEDC results demonstrating the superiority of anisotropic diffusion.

Quantitative Performance

In benchmarks using standard test images like Lena and Trui, EEDC significantly outperformed JPEG at high compression ratios. For instance, at a 40:1 ratio (0.2 bits per pixel), EEDC achieved an Average Absolute Error (AAE) of 4.99 on the Trui image, compared to 11.25 for JPEG. It even approached the performance of the wavelet-based JPEG2000, which scored 4.86 on the same test.

Limitations and Future Outlook

Despite its visual and quantitative success, EEDC faces hurdles regarding computational complexity. Solving a PDE for every image reconstruction is significantly more CPU-intensive than the fast transforms used in JPEG. Furthermore, while PDEs excel at "cartoon" structures, they struggle with stochastic textures like grass or sand, which are better handled by wavelets.

Future research directions include optimizing reconstruction speed through multigrid methods and extending the framework to color images and video compression, where the temporal "filling-in" effect could provide even greater efficiency.

Summary updated

BibTeX
@article{galic2008image,
  author = {Irena Galic and Joachim Weickert and Martin Welk and Andrés Bruhn and Alexander G. Belyaev and Hans-Peter Seidel},
  title = {{Image Compression with Anisotropic Diffusion}},
  journal = {J. Math. Imaging Vis.},
  year = {2008},
  doi = {10.1007/s10851-008-0087-0},
}
Figure