Measuring Perceptual Color Differences of Smartphone Photographs

Zhihua Wang, Keshuo Xu, Yang Yang, Jianlei Dong, Shuhang Gu, Lihao Xu, Yuming Fang, Kede Ma

TL;DR

This paper introduces the largest dataset to date for measuring perceptual color differences in smartphone photos, addressing the limitations of existing metrics on complex, real-world images. They propose CD-Net, a novel lightweight neural network that learns a generalized color difference metric, outperforming 33 existing methods and demonstrating better generalization and interpretability.

What Problem Does This Paper Address?

Modern smartphones are primary cameras, and their image quality, particularly color reproduction, is a key selling point. However, existing color difference (CD) metrics, largely developed for simple color patches or limited natural images, struggle to accurately assess the perceptual differences in complex smartphone photographs. These differences arise from sophisticated image signal processors (ISPs), post-processing filters, and varying camera hardware. The authors aim to bridge this gap by creating a comprehensive dataset and a robust, generalizable CD metric specifically for smartphone photography.

Methods

The core of the paper is CD-Net, a lightweight deep neural network designed for perceptual CD assessment. CD-Net operates in two main stages:

  1. Coordinate Transform: An RGB image is transformed into a perceptually more uniform feature space using a lightweight DNN. This DNN incorporates a multi-scale filter bank (1x1 and 11x11 kernels) to capture spatial context, generalizing previous spatial extensions of CD metrics.
  2. CD Calculation: A Mahalanobis distance metric is used to compute local color differences in the transformed space. This is parameterized by a learnable matrix, allowing it to adapt to different color spaces and incorporate aspects of existing metrics like CIE94 and CIEDE2000.
  3. Global Aggregation: Local CD values are averaged to produce a single overall CD score for the image pair.

The authors also meticulously collected human perceptual judgments of color differences through a controlled psychophysical experiment.

Datasets

The paper introduces the Smartphone Photography Color Difference (SPCD) dataset, the largest of its kind for this task. It comprises:

  • 15,335 photographic images from 1,000 distinct natural scenes.
  • Images are captured by six flagship smartphones.
  • They are altered by Photoshop® to simulate ISP functions, post-processed with built-in smartphone filters, and reproduced with incorrect ICC profiles.
  • The dataset includes 30,000 image pairs with human-rated perceptual color differences.

The SPCD dataset is designed to span diverse content, background complexity, lighting, and camera modes (HDR, night). For evaluation, they also used the COM dataset, a standard benchmark for homogeneous color patches.

Key Insights and Ideas

  • Existing CD metrics fail on smartphone photos: Traditional metrics, developed for simple color patches, do not generalize well to the complex, learned image processing pipelines of modern smartphones.
  • Spatial context is crucial: Simple pixel-wise comparisons are insufficient. CD-Net's multi-scale filter bank effectively captures local spatial information, improving performance.
  • "Visual distortions" vs. "color differences": Metrics designed for general image quality (like SSIM, LPIPS) perform poorly on this task because smartphone-induced color shifts are not always perceived as visual distortions.
  • Lightweight DNNs can be powerful: CD-Net, despite its small parameter count, achieves state-of-the-art performance, suggesting that complex architectures aren't always necessary for this specific task.
  • Generalization is key: CD-Net shows good generalization to unseen distortions and even to homogeneous color patch data, despite being trained on natural images.

Key Results

  • CD-Net significantly outperforms 33 existing CD measures on the SPCD dataset, achieving competitive results even against much larger deep CNN models.
  • On the SPCD dataset, CD-Net achieved a STRESS score of 21.431, a PLCC of 0.846, and an SRCC of 0.842.
  • Qualitative results show that CD-Net generates smoother and more interpretable local CD maps compared to other methods, avoiding noisy or blocky artifacts.
  • Ablation studies confirmed the importance of the multi-scale filter bank and the benefits of concatenating different kernel sizes.
  • CD-Net demonstrated good generalization to unseen color distortions (TID2013 dataset) and homogeneous color patch data (COM dataset).
  • Empirical tests suggest CD-Net behaves as a proper metric in the RGB space, satisfying properties like non-negativity, symmetry, and identity of indiscernibles.

Limitations and Future Work

  • Invertibility of the learned transform: While CD-Net is designed to be a proper metric in the transformed space, its invertibility in the original RGB space is not guaranteed, which is a common challenge for deep learning models. The authors empirically probe this property.
  • Training data resolution: Performance slightly degrades with increased testing image size when training on smaller images, suggesting the need for high-resolution training data.
  • Future work could explore: Further investigation into the invertibility of the learned transform and exploring more sophisticated methods for handling misregistration in image pairs. The authors also hope their dataset and CD-Net will spur further research in this area.

Summary updated

BibTeX
@article{wang2023measuring,
  author = {Zhihua Wang and Keshuo Xu and Yang Yang and Jianlei Dong and Shuhang Gu and Lihao Xu and Yuming Fang and Kede Ma},
  title = {{Measuring Perceptual Color Differences of Smartphone Photographs}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  doi = {10.1109/tpami.2023.3262424},
}
Figure