Choice of Distance Metrics For RGB Color Image Analysis
Choice of Distance Metrics For RGB Color Image Analysis
Abstract
Many image clustering algorithms use distance metric in the Distance metrics
process of taking decision. When dealing with color images, a A distance is a [3] function d with nonnegative real values, defined
distance metric will be used to decide whether two pixels or on the Cartesian product E x E of a set E. It is called a metric on E
regions are closed. Colorimetric distances proposed by if for every x,y,z ϵ E:
CIE(Commission Internationale de l’Eclairage) are often used in - d (x,y)=0 if x=y (the identity axiom);
Lab color space because it is a uniform chromaticity space. - d (x,y) + d (y,z) ≥ d (x,z) (the triangle inequality);
However, RGB color space is useful to image processing and - d (x,y)= d (y,x) (the symmetry axiom).
instead of converting color image from RGB to another color
space before processing, it might be interesting to have the same Minkowsky distance
or better results without changing the color space. In our work, we Minkowsky distance is a general form of many other distance
implement different distance metrics and compare the result of k- measures.
mean clustering algorithm in RGB color space to the one in
∑ |x /
L*a*b* with the colorimetric distance. Two evaluation criteria , y| (1)
have been used and we conclude that being in RGB color space
and choosing adequately the distance metric, we obtain better
Euclidian distance
This distance is a Minkowsky distance for p=2. It measures
segmentation results.
straight-line distance between two points.
Keywords: distance metric, color image, color space.
, ∑ (2)
Introduction
In many color image segmentations algorithms the metric distance Canberra distance
is used to compare two color vectors or two regions. In most of Introduced in 1966 [4] and modified in 1967, this distance is useful
cases, the color space used is the ones considered as perceptually for data scattered around an origin.
| |
uniform. These color spaces was proposed in 1976 by CIE [1]. , ∑ (3)
| |
So the color image segmentation algorithms often convert color Each term of the summation has value between zero and one. In
images from RGB space to L*a*b* or L*u*v* color space and then the particular case of the numerator and the denominator equal to
apply the Euclidian distance metric for colors comparison. In our zero, the term is defined equals to zero.
work, we maintain the image in RGB space and then use various
distance metrics to determine the one that gives the best results for Squared chords distance
image segmentation. We present the color spaces and distance Squared chords distance measure de dissimilarity between two
metrics. K-mean algorithm will enable us to conclude. vectors.
d x, y ∑ √x y (4)
Color spaces
In color image classification or segmentation, one of the frequently Chi-Square Distance
encountered problems is to find the color space so that distance is This distance is mainly used when dealing with qualitative
proportional to one’s ability to perceive changes in color. variables.
RGB color space results from the transformation of the spectral
, ∑ (5)
power distribution in a three-dimension vector. This color space is | |
device-dependant and gives sometimes negative values. CIE has
proposed XYZ color space to overcome these drawbacks. Many Chebychev distance or Queen-wise distance
other color spaces have been adopted in industries. Chebychev distance is a particular case of Minkowsky distance
MacAdam has demonstrate that CIE chromaticity diagram presents where p=∞. It is a measure of dissimilarity.
limitations: this representation is non-uniform[2]. He’s deduced
, | | (6)
from the former a uniform representation. Later in 1976 there was
1
a large industry agreement on two standards CIELAB (L*a*b*)
and CIELUV (L*u*v*). The uniformity in these color spaces
permit to define the colorimetric distance which is proportional to
color difference.
.
Author Biography
Augustin S. DOSSA received his MS degree in physics from the Université
d’Abomey-Calavi (2005) and then is pursuing his MS in Computer Science.