Beruflich Dokumente
Kultur Dokumente
Abstract
An image transformation method, first used by the artist M.C. Escher, and described mathematically by H. W.
Lenstra and B. de Smit, is generalized for use in a graphics program. The transformation renders an endless repetition
of a picture in a picture.
r 2007 Elsevier Ltd. All rights reserved.
In 1956, Maurits Cornelis Escher completed a The transformation consists of three stages, which will
drawing called ‘‘Print Gallery’’ (Fig. 1). The drawing be described as follows:
depicts a young man looking at a print in a gallery that Stage 1: Logarithmic transformation
is deformed almost beyond recognition. There is an The transformation zj-ln z will transform the com-
enigmatic white area in the center of the image. In 2003, plex plane into a strip running from N to +N along
a group of mathematicians at Leiden University, led by the real axis with a width equal to 2p: Any point on the
Prof. Hendrik Lenstra, succeeded in unraveling the complex plane can be represented as z ¼ reiy, so
mathematical structure of the image [1]. Once this ln z ¼ ln r+iy. As 0pyp2p, all points will be trans-
structure was known, they could ‘complete’ the image by formed to a strip of width 2p.
filling in the famous white spot with the help of a However as reiy ¼ rei(y+2pn), for any integer n, any
computer algorithm. In doing so, they found that the parallel strip between n2p and (n+1)2p can be
drawing repeats itself indefinitely at an ever smaller considered as an image of the complex plane: in other
scale. This is called the ‘‘Droste effect’’, after an words, ln z will transform the complex plane into an
advertisement for cocoa from the Droste chocolate infinite number of copies.
company in the Netherlands (Fig. 2). The nurse in the For our image transformation, let us consider how
image holds a package on which there is the same nurse ln z transforms the area between a set of concentric
holding a package, and so on. A summary of Lenstra’s circles of radius r1 and r2. The transformation illustrated
method was published in a paper [2], and received a lot in Figs. 3 and 4 is the transformation zj-ln(z/r1). The
of acclaim, not only in academic circles, but also in the outer circle becomes a vertical line at ln(r2/r1), and the
general press. inner circle is transformed to a vertical line at zero: we
In this article I will show how Lenstra’s method can have cut the disc of Fig. 3 along line A0 –A, and bent it
be applied more generally for the transformation of into a rectangle.
images, as well as the generation of endless zoom Stage 2: Rotation and scaling
(progressive magnification) animations. The rectangle in Fig. 4 is now rotated so that its
diagonal coincides with the imaginary axis, and the
E-mail address: jos.leys@pandora.be. rectangle is shrunk so that the diagonal is equal to 2p.
0097-8493/$ - see front matter r 2007 Elsevier Ltd. All rights reserved.
doi:10.1016/j.cag.2006.12.001
ARTICLE IN PRESS
J. Leys / Computers & Graphics 31 (2007) 516–523 517
divided by (r2/r1)b. This means a scaling by j(r2/r1)bj and transformed so that they tile in spiral form in a seamless
a rotation by minus the argument of (r2/r1)b. fashion. All the replicas are self-similar: area ‘E’ in Fig. 8
We now go back to stage 2. We replicate the rectangle can be enlarged and rotated to cover area ‘F’ exactly.
of Fig. 5 so that it tiles the plane, and then do the stage 3 The configuration of stage 2, where the rectangle is
transformation again. Rectangle ‘E’ in Fig. 7 is the rotated and scaled so that the diagonal is vertical, and
original rectangle of Fig. 5, and is transformed by equals 2p is not the only one possible. All possible
stage 3 to the area ‘E’ in Fig. 8. Rectangles ‘G’ and ‘H’ configurations are shown in Fig. 9. If the rotation is 01
will also be transformed to area ‘E’. Rectangle ‘F’ will be or 1801 and the scaling factor equals 1, the transforma-
transformed to area ‘F’ in Fig. 8. We thus obtain an tion will produce an infinite number of concentric copies
infinite number of replicas of the original image, of the original image. In all other cases, the scaling
ARTICLE IN PRESS
J. Leys / Computers & Graphics 31 (2007) 516–523 519
Choose r1 and r2 (a slight adaptation is necessary to The transformation was implemented in Ultrafractal
allow circle centers different from the origin). [3], a graphics program that features user-defined algo-
Calculate a, f, and b. rithms, and some examples are shown in Figs. 10–15.
Calculate b ln(z/r1) for the area between the circles, The algorithm can be adapted to allow for non-
tile the resulting rectangle, and finally calculate concentric circles, or even non-concentric polygons. The
eb lnðz=r1 Þ for all pixels. area between the two squares in Fig. 16a is transformed
ARTICLE IN PRESS
520 J. Leys / Computers & Graphics 31 (2007) 516–523
Fig. 18. ‘‘LW346’’ by M.C. Escher ‘‘(r 2006 The M.C. Escher
Company, the Netherlands. All rights reserved. Used by
permission.)