Today's Image Capturing Needs: Going Beyond Color Management
Today's Image Capturing Needs: Going Beyond Color Management
The Fifth
Color
Color
Science,
Imaging
Systems,
TheConference:
Fifthand
Color
Applications
Color
Imaging
Science,
Conference:
Systems,
Color
and Scien
Applications Copyright 1997, IS&T
203
The Fifth Color Imaging Conference:
The Fifth
Color
Color
Science,
Imaging
Systems,
TheConference:
Fifthand
Color
Applications
Color
Imaging
Science,
Conference:
Systems,
Color
and Scien
Applications Copyright 1997, IS&T
• one-dimensional histograms We now present a few case studies that illustrate our
• multi-dimensional histograms approach.
• frequency analysis (using either classical FFT
techniques, windowed FFT techniques or multi- Case study 1: tonal correction of
resolution analysis) black/white images for the newspaper
• filtered versions of a complete image or smaller regions business
etc.
In contrast with the traditional offset presses, the
Also parameters that are special to the problems to be newspaper printing has specific constraints and, therefore,
addressed can be used. We hereby think, e.g., of parameters special gamut mapping techniques are required in order to
such as the hue of the lightest and darkest point, average produce good reproductions. In particular, the total ink limit
colors of regions of interest showing skin, snow, grass, sky constraints are very important and should be used as a
etc. driving force behind the gamut mapping. Although the
The type of the corrections to be applied in order to solutions to this problem are far from trivial, they already
generate the output images can be determined either have been studied in the past.
automatically from the corrected test set or by discussing Often, skilled scanner operators apply subtle tonal
the applied corrections with the skilled scanner operator. In changes on top of the color management transforms
the past, we have been doing experiments to determine the described above. These tonal changes appear to depend
parameters of well-defined parameterized transformations heavily on the type of the original. In order to get a better
automatically using neural networks. The learning set feeling of what kind of corrections usually are applied, we
consists of K elements (one for each image) mapping the asked an experienced scanner operator to collect a number of
analysis parameters (∝n)n:1..L to the parameterized representative grey-scale images and to correct those images.
representation of the transforms (Γn)n:1..M . This experiment resulted in a database of images and their
corrected versions. It turned out that the corrections could be
In
→ I 'n reduced to a global remapping of the intensity values. Most
often, a small contrast enhancement or reduction was applied
⇓ together with some corrections in the highlights or shadows.
α1 ( I n ) ... α L( I n ) → Γ1 ( In ) ... ΓM ( I n ) More sophisticated spatial filters to create local contrast
changes (such as dodging) were not considered.
Although reasonable results were obtained at that time, The test set that we got back from our skilled scanner
often better results can be obtained using classical methods operator consists of 30 images some of which:
from numerical analysis based on linear and non-linear
regression techniques [4,5]. • are tonally good;
The following steps (2,3 and 4) describe how a • are overexposed;
particular image will be transformed. • are underexposed;
• have flat shadow parts;
Step 2: detection of well-known parameters • have a high contrast in the shadows;
Now, we need to calculate the characterizing set of • have a low contrast in the highlights;
parameters as described above. In this step, we basically • have a too high contrast in the highlights;
determine which class(es) the given image belongs to. • have flat mid-tones;
Often, heuristic techniques (based on fuzzy logic) are • have too much contrast in the mid-tones;
applied; rule-based systems or Prolog-based search engines • etc.
can be used in this context as well.
All of the images in the test set have one or more of the
Step 3: generating color transforms based o n
these parameters characterics listed above. Most of the items in the list can
This step calculates the image transforms based on the be derived by looking at the histogram or cumulative
characterizing set of parameters as returned in Step 2. Now, distribution function (CDF). By plotting all CDF’s in a
the image correction can be applied to the source image. diagram, we get a fairly good idea of what types of originals
we can expect. Most of the CDF’s are positioned in a kind
Step 4: learning mode of hysteresis shape.
The user is able to request small adjustments to the In figure 1, we show a few CDF curves and how they
(automatically) proposed image transforms. The modified can be interpreted. The horizontal axis represents the dot
parameters are then fed back to the algorithm and used later percentages; the vertical axis represents the accumulated
on. We advise an additional option to enable/disable the frequency percentages. The curves can be interpreted as
learning mode.
follows :
204
The Fifth Color Imaging Conference:
The Fifth
Color
Color
Science,
Imaging
Systems,
TheConference:
Fifthand
Color
Applications
Color
Imaging
Science,
Conference:
Systems,
Color
and Scien
Applications Copyright 1997, IS&T
100
• curve 1 is the CDF of an image which will be 90
perceived as overall too dark; 80
• curve 2 is the CDF of an image with no mid-tones; 70
Fm CO
• curve 3 is the CDF of an image with a uniform 60 Fm CH
histogram; 50 Fm CN
∑ ∆(CDF(f), CDF(g))
Fm ( f )
A straightforward method to improve the CDF would be to
apply a so-called histogram equalization (as pointed out in f∈F
TF(g) =
∑ ∆(CDF(f), CDF( g ))
[1]). It turns out that, although the tonally compressed areas 1
come out much better after histogram equalization, the result
f∈F
often looks artificial and is unacceptable. Therefore, we
propose to use the test set created by the skilled operator. Additional spatial corrections can be carried out to sharpen
After careful investigation of the test set, the test images can the images; the parameters for these USM filters can also be
be divided in 5 different families: determined automatically but are not covered in this article.
• Family CO, containing 5 images : underexposed images Case study 2: adaptive color corrections
without contrast problems; for negative to positive conversion
• Family CH, containing 10 images : overexposed
images without contrast problems; The problem of scanning negative film and converting the
• Family CN, containing 5 images : images with normal negative signal into a well-known positive RGB space has
been addressed extensively in the past [8,10,11,12]. The
exposure; main problem consists of calculating appropriate inversion
• Family CL , containing 9 images : images with tables in order to convert from negative to positive; these
contrast problems (usually located near the mid-tones); inversion curves are based on the characteristic film curves
and, of the negative film as perceived by the scanner as shown in
• Family CU, containing 1 image : images with Figure 3 (see also [9]). It turns out, however, that the
characteristic film curves do not only depend on the type of
extremely high contrast and lacking mid-tones.
film, but can vary from batch to batch and are also heavily
influenced by the development of the negative film. On top
The families were derived by analyzing the problem and of these problems, the circumstances under which the picture
looking at the proposed correction. After averaging the was taken also influence the final result (shutter speed,
curves proposed by the expert user, following corrections opening, type of camera, light conditions etc.).
could be derived for each family:
205
The Fifth Color Imaging Conference:
The Fifth
Color
Color
Science,
Imaging
Systems,
TheConference:
Fifthand
Color
Applications
Imaging
Color Science,
Conference:
Systems,
Color
andScien
Applications Copyright 1997, IS&T
2 .5
result in the so-called TFS curves3 which define the adapted
characteristic film curves for this specific film.
2 Now the frame to be converted is analyzed further in
order to get rid of local color casts due to, e.g., the
1 .5 Re d
illumination or other environmental parameters (such as
Gre e n flash-light). The final correction is obtained as a weighted
Bl u e average of the general mean densities, the densities of the
1
206
The Fifth Color Imaging Conference:
The Fifth
Color
Color
Science,
Imaging
Systems,
TheConference:
Fifthand
Color
Applications
Color
Imaging
Science,
Conference:
Systems,
Color
and Scien
Applications Copyright 1997, IS&T
will always be very subjective. In this section, we will not This type of correction requires a study of the spatial
cover our solution to automatic image correction in detail characteristics of the image by means of Fourier or wavelet
but we will rather outline some ideas we have been pursuing analysis [3].
and which seem of fundamental importance. In particular,
we will summarize the corrections we have been using for To conclude, I would like to emphasize that the
image improvement in general and some of the indicators obtained results must be interpreted in a standard color space
that allowed the determination of the parameters for the that has been determined up front. The classifying
transformations. parameters as well as the proposed corrections depend on the
choice of this exchange space. Candidates for such a space
Global color corrections: are monitor spaces having a specific gamma value. The
Global corrections can be defined as color corrections chromaticities of of this space should be wide enough to
which are applied to one or more color components span a reasonable gamut. Preferably, it should be specified
independently of each other. They can be implemented as an ICC profile (cf. [2]). Once the images are in this
using one-dimensional tonal LUT’s (look-up tables). The exchange space, standard CMS techniques can be used to
most important global color corrections are: transform the images from this space to any other space.
• dynamic range adjustments: often, the digital
image is not using its full range of values. This Conclusions
suggests that the dynamic range should be stretched to
the allowed values. This should be carried out carefully, In this document, we described a global approach to
however, based on a classification the original. automatic image correction. Although substantial results
Otherwise, very saturated colors or pastel tints might be have been reached so far, it is obvious that the general
ruined. problem of correcting colored images automatically will
• tonal corrections: a more general tonal correction is never have a completely satisfying solution and therefore
needed if the original appears to be overall too light or will need on-going attention and improvements. The main
too dark. One way to determine this is to study the technique which has been introduced here is essentially based
CDF as discussed in Case 1. This method can be on a statistical analysis of a test set of images using a
number of parameters which describe important features
improved by also taking into consideration the spatial
allowing to make some kind of classification. After the
activity in certain areas, the main idea being that a analysis of the test set, a relationship is established between
spatially active area often needs tonal enhancement. the classifying parameters and the corrections proposed by an
• color cast removal: for color cast removal, experienced user. In operational mode, the algorithm will
analogous techniques to Case 2 can be used. calculate the image specific parameters and come up with a
correction as proposed by the expert. In addition, the end-
Local color corrections: user will be able to apply minor changes to the proposed
Sometimes, particular areas in the color space require further corrections; the system will learn about the subjective
enhancement. In order to determine such color corrections changes proposed by a particular user and will correct its
(which are also known as selective color corrections), we future behavior accordingly.
need to detect reference objects in the original. This The inference engine which establishes a relationship
detection will be based on both spatial and color content. between the input parameters and image correction is
Areas which are considered to be very important are, e.g., essentially a rule-based system. It might be worthwhile to
areas containing skin, sky, meadows etc. study the usability of other formalisms to establish this
The correction then consists of mapping the color of the relationship such as, .e.g, neural networks or Prolog-based
detected area to a configurable color using a selective color engines.
transformation. The learning facilities (cf. Step 4 above) The quality of the obtained results is heavily dependent
consist of both influencing the detection of the special on the classifying parameters. Much of the future work will
categories as well as the determination of the target colors. be concentrated on trying to come up with new classifying
parameters and more sophisticated corrections. For spatial
Spatial corrections:
On top of color corrections, spatial corrections might be corrections, we can make use of wavelets and the associated
needed for further enhancement. We hereby think of: multi-resolution analysis; for color corrections, further
analysis of 3-D histograms can give better insight in what
• sharpening; type of original scene we are dealing with. An even more
• noise removal and removal of other artifacts (such as advanced solution might be based on a 5-dimensional
artifacts from lossy compression schemes); spatial/color analysis; this is, e.g., necessary to deal with
• scratch removal; colored patterns of cloth.
• dodging;
• ...
207
The Fifth Color Imaging Conference:
The Fifth
Color
Color
Science,
Imaging
Systems,
TheConference:
Fifthand
Color
Applications
Color
Imaging
Science,
Conference:
Systems,
Color
and Scien
Applications Copyright 1997, IS&T
2 . International Color Consortium, ICC Profile Format 11. Tuijn C., "An Adaptive Approach to Negative
Specification, Version 3.3, http://www.color.org, Scanning", Proceedings of SPIE/Europto’s Conference
November 1996 on Imaging Sciences and Display Technologies, Berlin
FRG, 1996, pp. 281-290
3 . Kaiser G., “A Friendly Guide to Wavelets”, Birkhäuser,
Boston, 1994 12. Tuijn C., "Scanning Color Negatives", Proceedings of
IS&T/SID Fourth Color Imaging Conference: Color
4 . Lawson C.L. and Hanson R., "Solving Least Squares Science, Systems and Applications, Scottsdale AZ,
Problems", Prentice Hall, Englewood Cliffs NJ, 1974 1996, pp. 33-38
5. Marquardt D.W., Journal of the Society for Industrial 1 Agfa HDC 100 is a registered trademark of Agfa-
and Applied Mathematics, vol. 11, pp. 431-441, 1963 Gevaert N.V.
2 Agfa DuoScan is a registered trademark of Agfa-
6. Pytela O., Majer J., Journal of Imaging Science, vol.
35.6, pp. 362-364, "Quantitative Interpretation of Gevaert N.V.
Sensitometric Curves of Photographic Materials", 1991 3 TFS stands for Total Film Scanning and refers to
the fact that, in order to determine the correction
7. Stroebel L., Compton J., Current I. and Zakia R., parameters for a particular frame of the negative
"Photographic Materials and Processes", Focal Press, film roll, the entire strip (i.e., the total film) is
Boston, 1986 scanned first. TFS is a registered trademark of
Agfa-Gevaert N.V.
8. Tuijn C., "Input Calibration for Negative Originals",
4 Agfa FotoLook 3.0 is a registered trademark of
Proceedings of IS&T/SPIE's Symposium on Electronic
Imaging: Science and Technology, Device-Independent Agfa-Gevaert N.V.
Color Imaging II, Volume 2414, San Jose CA, 1995, pp.
76-83
208