Due to the fact that the light source is not a point source, the shadow boundary, as
a rule, proves to be fuzzy.In this case, the definition of shadow (1) and (2) still holds,
if the diffusion function is smooth and has no ridge point (sign reversals of the
derivative). In this case, as a frontier point
of shadow field we take a point, where
the diffusion function is equal to half-sum of its extreme values. From now on this
point will be called middle point of twilight area. Thus, the locus of
is a boundary
shadowed area. Examples of the
locus are shown on fig. 3.
Furthermore, the shadow field for various rows k may differ because of the relief
of picture frame. Thus, the shadow field has two regions, the distortion character of
which and, consequently, the methods for their correction must differ, and the
boundaries of these regions are in general not rectilinear.
Directly to the
OY -axis adjoins the (main) area with the uniform shading, the
latter being determined by the parameter d. Between this area and illuminated area
there is a twilight area, generally more narrow, which shading is decreasing towards
the
OX -axis. The boundaries of the twilight area separating it from the shaded and
illuminated fields are curved. Usually, the X-coordinate of these curves has a slight
spread with respect to a straight line parallel to the
OY -axis.
Thus, the problem is to determine the boundaries of main and twilight area of
shadow and to elaborate the algorithms for color correction in each of these fields
taking into account the peculiarities of variations of shadow distortion intensity in
each of them. The proposed information technology is oriented at implementation in a
distributed computing system.
3 Detecting a Boundary of Shadow Area
The task of detecting the boundaries of shadow area is, in fact, the task of edge
detection [13]. The most approximate to it is the task of edge detection in the CIE Lab
color space considered in [10]. In the said paper, the so called method of active
contours [9][11] was employed based on the theory of curve evolution. But in our
case, this method can not be used in original form, as the contours of the fields are
fuzzy. In the following, we consider the algorithm for detecting the boundaries of
shadow area accounting for the mentioned peculiarities of contours.
The problem is solved in two steps. First, we determine a set G of points
,
kk
yG pertaining to the so called midline of the twilight area oriented along the
oy -axis. Then, the entire twilight area is formed in its neighborhood.
Let us consider a lightness component L of a three-component color image. To
detect the boundary of shadow area introduce a criterion. For the point
, being a
boundary of the shadow field determined by Eq. (1) and (2), the so called contrast
indicator is introduced:
L
sCC
(3)
where
5