WIPIVERSE All articles

Color moments

Definition
In image processing and computer vision, color moments refer to statistical measures—typically the first three moments (mean, variance, and skewness)—computed from the distribution of pixel intensities in each color channel of an image. These moments serve as compact descriptors that capture the color characteristics of an image.

Mathematical Formulation

For a given color channel $C$ (e.g., red, green, blue) with pixel values $p_i$ (where $i = 1, \dots, N$ and $N$ is the number of pixels):

  1. First moment (Mean)
    $$ \mu_C = \frac{1}{N}\sum_{i=1}^{N} p_i $$

  2. Second moment (Variance)
    $$ \sigma_C^2 = \frac{1}{N}\sum_{i=1}^{N} (p_i - \mu_C)^2 $$

  3. Third moment (Skewness)
    $$ \gamma_C = \frac{1}{N}\sum_{i=1}^{N} (p_i - \mu_C)^3 $$

The set ${\mu_C, \sigma_C, \gamma_C}$ for each channel forms the color moment descriptor. In practice, the first two moments are often sufficient for many tasks, while the third moment provides additional discrimination for images with similar mean and variance.

Historical Context
The concept was introduced in the early 2000s as a method for content‑based image retrieval (CBIR). Notable early work includes Stricker and Orengo (1995), who demonstrated that low‑order moments effectively represent color distribution for image indexing.

Applications

Application Role of Color Moments
Image Retrieval Used to compare images by calculating Euclidean or Mahalanobis distances between their moment vectors.
Image Classification Serve as feature inputs for classifiers (e.g., SVM, k‑NN) to distinguish between object categories based on color.
Video Summarization Summarize color content across frames for quick indexing and navigation.
Object Detection Combined with texture or shape descriptors to improve detection accuracy in cluttered scenes.
Medical Imaging Employed in texture analysis of histopathology slides where color variation is diagnostically relevant.

Advantages

  • Compact representation (typically 9 values for RGB).
  • Invariant to image scaling and translation.
  • Computationally inexpensive, suitable for real‑time systems.

Limitations

  • Sensitive to illumination changes; color constancy preprocessing is often required.
  • May not capture spatial arrangement of colors, leading to ambiguity in images with similar color histograms but different layouts.
  • Higher‑order moments increase descriptor dimensionality without proportional performance gains.

Related Concepts

  • Color Histograms – Discrete distribution of color values; more detailed but larger in size.
  • Color Correlograms – Capture spatial correlation of colors, addressing histogram limitations.
  • Moment Invariants – Extensions of moments that are invariant to rotation and scaling, commonly applied to shape rather than color.

Standard Practice

Most implementations compute color moments in a perceptually uniform color space (e.g., CIELAB, HSV) to reduce sensitivity to lighting variations. The descriptor is often concatenated across channels, yielding a vector of dimension $3 \times K$, where $K$ is the number of channels (commonly 3).

References

  1. Stricker, M., & Orengo, M. (1995). Similarity measurement for colour images. In Proceedings of the 8th International Conference on Pattern Recognition (ICPR).
  2. Swain, M. J., & Ballard, D. H. (1991). Color indexing. IEEE Transactions on Pattern Analysis and Machine Intelligence, 13(6), 516–526.
  3. Manjunath, D., & Ma, W. Y. (1996). Texture features for browsing and retrieval of image data. IEEE Transactions on Pattern Analysis and Machine Intelligence, 18(8), 837–842.

See Also

  • Color histogram
  • Color space conversion
  • Feature extraction (computer vision)
Browse

More topics to explore

    Browse all articles