Novel rate distortion optimization strategy based on perceptual properties of texture and luminance

Like Yu, Feng Dai, Yong Zhang, Shouxun LinJournal of Image and Graphics 2012

Abstract

Rate-Distortion Optimization (RDO) is a critical component in video coding that significantly impacts compression efficiency. Traditional RDO strategies typically utilize Mean Squared Error (MSE) to quantify distortion, which often fails to align with human subjective perception. This research introduces a novel perceptual distortion model and a corresponding strategy named TL-RDO (Texture and Luminance-based RDO). By leveraging human visual sensitivity to texture and brightness, TL-RDO adaptively adjusts the Lagrange multiplier for different image regions. Experimental results indicate that TL-RDO achieves superior subjective quality compared to standard QP-RDO methods while maintaining low computational complexity suitable for real-time systems.

Front cover of the Journal of Image and Graphics, Vol. 17, No. 1, where the TL-RDO research was published.

Introduction

In modern video compression, the Rate-Distortion Optimization (RDO) process serves as the primary decision-making engine, balancing the trade-off between file size (bitrate) and visual quality (distortion). Most standard encoders rely on Mean Squared Error (MSE) as the distortion metric. However, MSE treats all pixels with equal weight, ignoring the nuances of the Human Visual System (HVS). Humans are less sensitive to noise in highly textured or extremely bright/dark areas—a phenomenon known as perceptual masking. This paper addresses the "perceptual redundancy" in standard coding by proposing a model that prioritizes bits for areas where the eye is most sensitive.

The TL-RDO Methodology

The proposed TL-RDO (Texture and Luminance-based RDO) strategy optimizes the encoding process by dynamically adjusting the Lagrange multiplier ($\lambda$). In RDO, $\lambda$ determines the cost of using additional bits to reduce distortion.

1. Texture Masking

The HVS has a limited ability to perceive fine details in complex, busy textures. The authors utilize a Sobel operator to measure local "edge strength." Macroblocks with high texture complexity are assigned a larger $\lambda$, allowing for higher mathematical distortion in areas where the eye is naturally "masked" by the visual noise of the texture.

2. Luminance Masking

Based on Weber’s Law, human sensitivity to brightness changes follows a non-linear, U-shaped curve. We are most sensitive to variations in mid-tone regions (near grayscale level 128) and less sensitive in very dark or very bright regions. TL-RDO incorporates a piecewise function to approximate this sensitivity curve, reducing the allowable distortion in mid-tones and increasing it at the extremes of the luminance scale.

3. Adaptive $\lambda$ Adjustment

For each macroblock, the system calculates a local masking factor ($\epsilon$) based on both texture and luminance. The standard $\lambda$ (derived from the Quantization Parameter, QP) is then scaled by $1/\epsilon$. This ensures that bits are saved in perceptually masked regions and reallocated to regions where they will have the greatest impact on perceived quality.

Experimental Evaluation

The TL-RDO strategy was implemented using the H.264/AVC reference software (JM 15.1) and tested on several standard CIF resolution (352 x 288) sequences:

  • Flower & Bus: High texture and complex motion.
  • Foreman: Features smooth skin tones, which are highly sensitive to compression artifacts.
  • Coastguard, Container, & Stefan: Varied backgrounds including water and high-contrast edges.

Key Results and Analysis

The performance was evaluated using Structural Similarity (SSIM), which better correlates with human vision than traditional PSNR.

  • SSIM Gains: TL-RDO consistently outperformed the standard QP-RDO across all test sequences. The most significant improvement was observed in the "Container" sequence, which saw a 7.98% increase in SSIM.
  • Visual Fidelity: Qualitative analysis showed that TL-RDO preserves sharper details on primary objects (e.g., the face in "Foreman" or the bus body in "Bus") while more aggressively compressing backgrounds like grass or water where the eye is less likely to notice artifacts.
  • Computational Efficiency: Unlike many perceptual models that are computationally expensive, TL-RDO adds only approximately 4ms of overhead per frame. This is significantly faster than SSIM-based RDO methods (approx. 28ms), making it viable for real-time encoding applications.

Conclusion and Future Directions

TL-RDO demonstrates that incorporating simple, computationally efficient perceptual models into the RDO loop can yield substantial gains in subjective video quality. While the current study focuses on spatial masking in H.264/AVC at CIF resolutions, future work could extend this model to account for temporal masking and higher resolutions in modern codecs like HEVC and VVC.

Summary updated

BibTeX
@article{yu2012novel,
  author = {Like Yu and Feng Dai and Yong Zhang and Shouxun Lin},
  title = {{Novel rate distortion optimization strategy based on perceptual properties of texture and luminance}},
  journal = {Journal of Image and Graphics},
  year = {2012},
  doi = {10.11834/jig.20120108},
}
Figure