Pollefeys, 2004). Then, the color textures of im-
ages may be aligned by the estimated function. Most
of these methods require prior knowledge of expo-
sures on a static scene observed with a fixed camera
(Debevec and Jitendra, 1997; Mitsunaga and Nayar,
1999). Extensions have been proposed for non static
scene (Grossberg and Nayar, 2002) and free move-
ment of the camera or adding vignetting correction
(Kim and Pollefeys, 2008). Such a radiometric align-
ment addresses images acquired with a single digital
camera but is not adapted to a large image dataset ac-
quired over time in several medical centers with dif-
ferent commercial digital cameras.
Indeed, automatic white balancing and color ad-
justments embedded in digital cameras do not ensure
color constancy as the applied algorithms differs from
a trademark to another. Each digital camera provides
a device-dependent RGB color coordinates system.
So, different cameras can exhibit radically different
color responses and can cause significant errors in
scene interpretation (Ilie and Welch, 2005). Further-
more, digital cameras - even of the same type - do
not give consistent response. So, we need to homog-
enize the photos of the data base before the classi-
fier learning stage. A reasonable consistency can be
obtained by pair-wise correlation for modeling trans-
fer function based on image color histogram (Porikli,
2003). But the complexity of this approach increases
quadratically with the number of cameras and may in-
troduce distortions and quantization errors
In this context, a good solution to achieve a color
alignment between images captured with different
cameras is given by introducing a small calibrated
color pattern in the field of view during acquisition.
Then, color values may be converted in a device-
independent coordinate system by estimating the best
adaptation transform that maps the image color mea-
surements to the corresponding target reference co-
ordinates. This on-line calibration process reduces
the color variations due to illumination and camera
changes and consequently ensures the reproducibil-
ity of the automatic segmentation and classification of
the textured color regions. A classical choice for the
color pattern is the 24-sample Macbeth color checker
(Barnard et al., 2002; Haeghen et al., 2000; Ilie and
Welch, 2005; Mansouri et al., 2005). This standard
pattern consists of 24 patches chosen to emulate com-
mon natural colors such as skin, foliage, and sky, in
addition to primary colors and a six step grey scale.
It covers an extensive gamut, adapted to a large range
of images. But a common drawback of a calibration
with such a standard pattern is the decrease in perfor-
mance of constancy when interesting colors are not
represented in the color checker. In fact, many surface
inspection problems are based on a limited palette of
colors. Then, a good strategy for color calibration
would be to minimize the mean square errors in some
judiciously selected areas of the color space, to ensure
stronger constancy of these interesting colors.
In this paper, we propose a methodology for ex-
tracting judicious colors to design a customized pat-
tern by analyzing contextual information in a large
image dataset. This issue deals with the color quanti-
zation problem for automatically extracting dominant
colors in images by some adaptive clustering algo-
rithm (Hsieh and Fan, 2000; Cheng and Yang, 2001;
Sirisathitkul et al., 2004). But here, the aim is not to
classify pixels into their corresponding palette colors,
but to design a specific color chart. So, the domi-
nant colors were selected from a set of images instead
of a single image. Next, a special sorting algorithm
was developed to reduce these colors to a very small
set while saving the best share-out in the color space.
A comparative study between correction results ob-
tained with the standard Macbeth color checker chart
and our customized one proves that the color distance
errors are minimized, to consequently provide a more
robust automatic classification in the area of interest.
The organization of the paper is as follows: in the
next section, we present the proposed methodology
for designing a contextual checker chart. The adopted
correction process for insuring color constancy across
camera and illumination changes is detailed in section
3. In section 4, we present the results of the proposed
approach before to conclude in the last section.
2 DESIGN OF A CUSTOMIZED
COLOR CHECKER
Considering a given surface inspection problem, the
color consistency has to be particularly centered on a
limited palette of interesting colors. In this section,
we propose an automatic method to customize a color
checker pattern using contextual data scene statistics.
The first thing to do is to collect a large dataset
of images under varying illuminations and cameras in
real conditions relative to the aimed application. All
the images have been captured with a small standard
Macbeth color checker pattern included in the field
of view, to be first normalized by applying a standard
color calibration detailed in the next section.
To reduce the combinatorial complexity of the
24-bit color representation, we apply a perceptual
color quantization for automatically extracting dom-
inant colors in this collection of images. The pre-
processing stage includes a Peer group filtering algo-
rithm to remove impulsive noise in the images and to
DESIGN OF A CUSTOMIZED PATTERN FOR IMPROVING COLOR CONSTANCY ACROSS CAMERA AND
ILLUMINATION CHANGES
61