Painting Crack Elimination Using Viscous Morphological Reconstruction
Painting Crack Elimination Using Viscous Morphological Reconstruction
Painting Crack Elimination Using Viscous Morphological Reconstruction
Proceedings of the 12th International Conference on Image Analysis and Processing (ICIAP’03)
0-7695-1948-2/03 $17.00 © 2003 IEEE
Authorized licensed use limited to: Universitatsbibliothek der TU Wien. Downloaded on January 6, 2009 at 15:54 from IEEE Xplore. Restrictions apply.
is
Æ
´½µ
Æ
´½µ
(1)
´½µ
where Æ indicates a dilation of image by the struc-
turing element . The reconstruction by dilation of mask
from marker , defined as the iteration of the geodesic di-
lation of marker with respect to mask until stability, is
denoted
´µ
Æ (2)
´ µ ´·½µ
where is chosen such that Æ Æ . In
general, the structuring element is chosen to be the unit
structuring element.
Viscous morphological reconstruction was introduced to
solve a problem similar to the one shown in Figure 2. Fig-
ure 2a shows an area marked out by black circles on a white
foreground. We wish to expand the marker shown in Fig-
ure 2b so that it fills out the region surrounded by the black
circles. Obviously, a standard morphological reconstruction
using Figure 2a as the mask and Figure 2b as the marker
would produce Figure 2a as the result. The notion of vis-
cosity was therefore introduced into the reconstruction pro-
cess.
In order to incorporate viscosity, one performs an open-
ing on the marker image after each geodesic dilation step.
The viscous geodesic dilation of marker with respect to
Figure 1. Infra-red image of medieval painting mask is defined as
taken in the near IR-range. The black rectan-
´½µ ´½µ
gles show the subregions used in figures 4
Æ (3)
and 5.
where is, as before, the structuring element used for the
geodesic dilation, and is the structuring element used
as to classify it. for the opening. As in equation 2, viscous reconstruction by
In section 2, we present the theory behind the viscous dilation is defined as
morphological reconstruction operator. The results of this ´ µ
(4)
operator applied to removing cracks from infra-red images
of paintings are given in section 3. ´µ ´·½µ
where is chosen such that .
As a demonstration of viscous reconstruction, we recon-
2. Viscous Morphological Reconstruction struct the marker in Figure 2b inside the mask in Figure 2a,
using a disc of radius for both structuring elements and
Viscous morphological reconstruction was introduced by . For values of pixels, one obtains the initial mask
Serra [7], who formulates it in a mathematically rigorous (Figure 2a) as a result, as the spacing between at least one
way in terms of viscous lattices. In this section, we give pair of points is wider than pixels. When pixels,
a brief application-oriented introduction to viscous recon- the result shown in Figure 2c is obtained. Here, the recon-
struction, beginning with an overview of standard morpho- struction has been constrained to lie inside the surround-
logical reconstruction [8]. ing points. This corresponds to the largest reconstructed
With standard morphological reconstruction, one recon- region constrained by the points. If the radius is further in-
structs a mask image from a marker image by iterating creased (i.e. pixels), then the reconstruction cannot
geodesic dilations of the marker image inside the mask im- penetrate into the narrower parts between the points, as is
age until stability. We denote by the marker image and by seen in Figure 2d, which shows a reconstruction for a disc
the mask image. Both these images have the same size, with pixels. Serra [7] demonstrates a method for
and . The geodesic dilation with structuring element obtaining a line which approximates the distribution of the
of the marker image with respect to the mask image points. One calculates the maximum reconstruction within
Proceedings of the 12th International Conference on Image Analysis and Processing (ICIAP’03)
0-7695-1948-2/03 $17.00 © 2003 IEEE
Authorized licensed use limited to: Universitatsbibliothek der TU Wien. Downloaded on January 6, 2009 at 15:54 from IEEE Xplore. Restrictions apply.
(a) mask (b) marker (a) mask (b) standard opening
(c) reconstruction with disc of ra- (d) reconstruction with disc of (c) marker image (d) viscous reconstruction
dius 24 pixels radius 32 pixels
the points (as done above) and the maximum reconstruction thick line, and would therefore be reconstructed too.
starting from a marker lying outside the points. The median The use of viscous reconstruction is a good solution to
line of the intersection of these two reconstructions gives a this problem. We begin by creating the marker image shown
good representation of the outline of the area sketched out in Figure 3c by eroding Figure 3a by a disc of radius pix-
by the points. els. To reconstruct the initial image, we use equation 4, with
In the context of this paper, we are interested in the abil- a pixel square, and a disc of radius pixels.
ity of the viscous reconstruction to reconstruct small details In order to reconstruct the small details, we append an ex-
while preventing certain elements from being reconstructed. tra geodesic dilation onto the reconstruction algorithm. The
The challenges faced in the art history application are illus- result of this reconstruction is shown in Figure 3d.
trated schematically in the simple binary example shown It remains to discuss some practical details of the use of
in Figure 3a. In this image, we wish to preserve the thick viscous reconstruction. The first is the choice of the struc-
line and all its details as accurately as possible, while re- turing elements and . If one wants to ensure that all
moving the thin lines which intersect it. The thin lines are regions in the marker image are used as seeds for the re-
known to have a diameter of less than pixels, but inter- construction process, then should be the same size as
sections can sometimes result in thicker regions. An open- , as in the first example discussed. Alternatively, if
ing of Figure 3a with a disc-shaped structuring element of is set to the unit structuring element (or any structuring el-
radius is shown in Figure 3b. As expected, the details on ement smaller than ), then any regions in the marker im-
the thick line have been smoothed, however, not all the thin age which are smaller than after the first geodesic dila-
lines have been successfully removed. Using a larger struc- tion with will be eliminated. This is potentially useful,
turing element would smooth the thick line even more, and as it allows less severe filters to be used in the creation of
reconstruction cannot be used as the thin lines intersect the the marker image. This is demonstrated in the example of
Proceedings of the 12th International Conference on Image Analysis and Processing (ICIAP’03)
0-7695-1948-2/03 $17.00 © 2003 IEEE
Authorized licensed use limited to: Universitatsbibliothek der TU Wien. Downloaded on January 6, 2009 at 15:54 from IEEE Xplore. Restrictions apply.
Figure 3, where even though not all the thin lines are elim- (Figure 4b) is the additional opening performed during the
inated in the creation of the marker, they still do not appear reconstruction process. After one unit dilation, the cracks
in the result. The second implementation detail to discuss remaining in the marker image get eliminated by this open-
is the addition of an extra geodesic dilation at the end of the ing, as they are not wide enough to survive.
reconstruction procedure. For the first example, this is not Due to this extra ability of the reconstruction process
recommended as one aims to keep the reconstructed area to remove cracks, it is not necessary to use such a large
inside the markers, and the extra geodesic dilation step will structuring element during the initial erosion. We there-
certainly expand it further into the exterior region. For the fore decided to take some extra a priori information into
second example, where we wish to preserve small details on account during this erosion, namely that a large majority of
the thick line being reconstructed, this additional geodesic the cracks have a preferred orientation, as discussed in the
dilation is useful. introduction. For the image under consideration, this pre-
Having demonstrated the use of viscous reconstruction ferred orientation is horizontal. We therefore take as our
operators on binary images, we now move onto their appli- marker image an erosion of the initial image by a vertical
cation to the removal of thin cracks in greyscale images. line of length pixels, shown in Figure 4e. The viscous
reconstruction from this marker image, using a pixel
3. Application to the removal of cracks square for , and a disc-shaped structuring element of ra-
dius for , is shown in Figure 4f. It is clear that while the
cracks are eliminated as efficiently as before, more structure
We present a comparison between various mathematical
remains in the strokes.
morphology based methods of removing cracks from infra-
Potential problems with this method arise when brush
red images of paintings. For this example, we use Figure 4a,
strokes are of a similar thickness to the cracks. In contrast
which corresponds to the lower sub-region indicated in Fig-
to the work in [4], we do not have any colour information
ure 1. Note that all morphological operations in this section
allowing us to distinguish between the two. Further infor-
are performed on the inverse of Figure 4a so that the objects
mation, such as the smoothness of the lines, will potentially
to be removed are lighter than the background, as this sim-
have to be taken into account in difficult cases. An exam-
plifies the use of the reconstruction operator. The resulting
ple of such a difficult case is shown in Figure 5a, the upper
images shown have been inverted again.
sub-region indicated in Figure 1. The same parameters were
An obvious way of removing the cracks which are
used to calculate the viscous reconstruction shown in Fig-
smaller than a given size is to use a morphological open-
ure 5b as for the previous example, that is, the marker was
ing with a disc which has a diameter larger than the cracks,
created by eroding the initial image with a vertical line of
but smaller than the brush strokes. The result of such an
length pixels, and the viscous reconstruction was done
with a pixel square for , and a disc of radius
opening with a disc of radius is shown in Figure 4b. This
approach has the disadvantage of leaving a number of arte-
for . In the reconstruction, many of the light, thin brush
facts corresponding to the shape of the structuring element,
strokes in the complicated left half of the image are also
and of smoothing the boundaries of the strokes. The stan-
eliminated.
dard way of keeping the strokes as similar to the original as
possible is to reconstruct the original image (mask) from an
image eroded by the same disc used before (marker), which 4. Conclusion
is shown in Figure 4c. In this case, however, the cracks are
reconstructed too, as they have a similar greylevel and are We have demonstrated the application of viscous mor-
connected to the brush strokes. phological reconstruction to an art history problem dealing
In order to avoid reconstructing the narrow cracks, re- with the analysis of infra-red reflectograms of ancient panel
construction with viscosity can be used, with the structur- paintings. In these reflectograms, it is required that the thin
ing element used to do the opening ( in equation 4) set to lines (the cracks) be eliminated, while retaining as much de-
a disc slightly larger than the cracks. Figure 4d shows the tail as possible in the thicker lines (the brush strokes). The
result of this viscous reconstruction, which uses an erosion greylevels of the cracks and the brush strokes are similar,
of the (inverted) initial image by a disc of radius pixels as and the fact that they intersect prohibits the use of stan-
the marker. It is clear that this image contains fewer back- dard morphological reconstruction. Other available a pri-
ground artefacts than the image resulting from a standard ori information which has been taken into account is that
opening (Figure 4b). For the viscous reconstruction, struc- the cracks have a preferred orientation due to the mechani-
turing element is set to a square, and to a disc- cal properties of the wood on which the painting was done.
shaped structuring element of the same size as for the initial The suggested approach functions well except in more com-
erosion ( pixels). The main reason for the disappearance of plicated regions of a painting where the brush strokes have
the cracks which were still visible after the standard opening a similar width to the cracks. Further work on separating
Proceedings of the 12th International Conference on Image Analysis and Processing (ICIAP’03)
0-7695-1948-2/03 $17.00 © 2003 IEEE
Authorized licensed use limited to: Universitatsbibliothek der TU Wien. Downloaded on January 6, 2009 at 15:54 from IEEE Xplore. Restrictions apply.
(a) initial image (b) standard opening (c) ordinary reconstruction from ero-
sion by disc SE
(d) viscous reconstruction from ero- (e) line erosion (f) viscous reconstruction from (e)
sion by disc SE
Figure 4. (a) Initial image. (b) Standard opening of (a) with a disc of radius 6 pixels. (c) Reconstruction
of (a) using as marker an erosion of (a) by a disc of radius 6 pixels. (d) Viscous reconstruction of (a)
from the marker used for image (c). (e) Erosion of (a) by a vertical line of length 10 pixels. (f) Viscous
reconstruction of (a) using (e) as a marker.
Proceedings of the 12th International Conference on Image Analysis and Processing (ICIAP’03)
0-7695-1948-2/03 $17.00 © 2003 IEEE
Authorized licensed use limited to: Universitatsbibliothek der TU Wien. Downloaded on January 6, 2009 at 15:54 from IEEE Xplore. Restrictions apply.
strokes and cracks based on their smoothness remains to be
done.
Further applications of viscous morphological recon-
struction exist. It has been used, for example, in determin-
ing a poorly-visible outline of a heart muscle in a positron
image [7]. In the context in which it has been applied here,
it could be interesting to apply it to scratch removal in mo-
tion picture restoration. Such scratches have a similar ori-
entation specificity to the cracks on paintings, being always
vertically oriented with respect to the images [5].
Acknowledgements
References
Proceedings of the 12th International Conference on Image Analysis and Processing (ICIAP’03)
0-7695-1948-2/03 $17.00 © 2003 IEEE
Authorized licensed use limited to: Universitatsbibliothek der TU Wien. Downloaded on January 6, 2009 at 15:54 from IEEE Xplore. Restrictions apply.