Modeling Colors of Single Attribute Variations with Application to Food Appearance

Yaser YacoobarXiv 2015

Introduction

In computer vision, accurately representing an object's color is a persistent challenge due to lighting fluctuations, shadows, and intrinsic material variations. Traditional approaches often rely on complex statistical models or extensive datasets. This paper, authored by Yaser Yacoob from the University of Maryland, proposes a more "economical" solution by focusing on the "intra-image color-space" problem. Specifically, it examines objects subject to a single attribute variation—whether extrinsic (like shading) or intrinsic (like chemical changes during cooking).

Methodology

The proposed framework follows a systematic pipeline to transform raw pixel data into a robust parametric model:

  1. Color Quantization: To manage noise and data volume, images are reduced to a representative set of 256 colors using K-Means or Minimum Variance Quantization.
  2. Eigenspace Analysis: Principal Component Analysis (PCA) is employed to determine the dimensionality of the color data. A "Planarity Measure" (PM) assesses how closely these colors align with a 2D plane within the 3D RGB cube.
  3. Parametric Modeling:
    • Linear Models: Applied to simple shading variations where changes are primarily geometric.
  4. Cubic Polynomials: Utilized for complex physical/chemical processes, such as the Maillard reaction in food. These curves are fitted to quantized color points on the identified planar subspace.
Slices of roasted beef showing internal color variations due to the cooking process.

The Planarity Hypothesis

A central finding of this research is the "Planarity Hypothesis": for nearly all single-process variations, colors reside on a nearly perfect plane in RGB space. In many instances, the first two eigenvalues capture over 99% of the total color variance. While shading variations typically follow linear paths through the origin, chemical transformations—like the browning of dough—create distinct "bends" in the color space that are best captured by cubic polynomials.

Applications in Food Appearance

The model's continuous nature allows for powerful interpolation and extrapolation. Unlike discrete histograms, a polynomial curve can recognize intermediate states (e.g., "medium-well" steak) even if the training exemplar only contains "rare" and "well-done" samples.

Toasted bread rolls illustrating the browning process used for model training and segmentation.

In practical tests, a model derived from a single image of toasted bread successfully segmented various other baked goods, such as pizza and muffins, by identifying their shared "browning" subspace. The system also demonstrated high fidelity, with reconstruction errors often falling below 10 units in RGB distance.

Conclusion and Future Work

While highly effective for single-process variations, the model faces limitations when multiple dominant processes overlap, such as simultaneous browning and deep shadowing. Additionally, extreme shifts in illumination color temperature can necessitate new exemplars. Future research aims to automate the detection of these single-attribute subspaces within complex scenes, reducing the need for manual exemplar selection.

Summary updated

Abstract

This paper considers the intra-image color-space of an object or a scene when these are subject to a dominant single-source of variation. The source of variation can be intrinsic or extrinsic (i.e., imaging conditions) to the object. We observe that the quantized colors for such objects typically lie on a planar subspace of RGB, and in some cases linear or polynomial curves on this plane are effective in capturing these color variations. We also observe that the inter-image color sub-spaces are robust as long as drastic illumination change is not involved. We illustrate the use of this analysis for: discriminating between shading-change and reflectance-change for patches, and object detection, segmentation and recognition based on a single exemplar. We focus on images of food items to illustrate the effectiveness of the proposed approach.
BibTeX
@misc{yacoob2015modeling,
  author = {Yaser Yacoob},
  title = {{Modeling Colors of Single Attribute Variations with Application to Food Appearance}},
  year = {2015},
  eprint = {1512.06075},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1512.06075},
}
Figure