• Aucun résultat trouvé

Set manipulations of fractal objects using matrices of IFS

N/A
N/A
Protected

Academic year: 2022

Partager "Set manipulations of fractal objects using matrices of IFS"

Copied!
13
0
0

Texte intégral

(1)

HAL Id: inria-00510104

https://hal.inria.fr/inria-00510104

Submitted on 10 Nov 2010

HAL

is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire

HAL, est

destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

IFS

Joëlle Thollot

To cite this version:

Joëlle Thollot. Set manipulations of fractal objects using matrices of IFS. Discrete Geometry for

Computer Imagery (DGCI’97), Dec 1997, Montpellier, France. �inria-00510104�

(2)

Using Matrices of IFS

Jo~lle Thotlot

LIGIM - B£t 710 - Universit6 Claude Bernard 43, bd du 11 Novembre 1918

69622 VILLEURBANNE Cedex

Tel: 04.72.44.80.00 ext. 42.74 Fax: 04.72.43.13.12 E-mail: [email protected]

Laboratoire d'Informatique Graphique Image et Mod61isation

A B S T R A C T . One of the major problems in geometric modeling is the con- trol of shape construction. Indeed, one should be able to construct geometrical forms by combining or manipulating simple entities. This problem is even more important when we deal with fractal geometry. In this paper, we propose some methods for increasing the modeling capabilities of fractal shape constructions.

We propose an extension of the IFS model based on the definition of matrices of IFS that provides a constructive approach of fractal shapes.

K E Y W O R D S . Fractals, geometric modeling, IFS, matrices of IFS.

1 I n t r o d u c t i o n

The aim of geometric modeling is to model forms by manipulating or combining well-known shapes such as circles and boxes. In order to be convenient such a model should allow easy control and manipulation of the final shape. When dealing with fractal geometric modeling, the control on ffactal figures is not so easily achieved as with classical smooth ones. The difficulty comes from the fact that fractal shapes are usually generated with iterative or recursive procedures.

In order to have a better control on the shape, we wish to develop a fractal modeler. Such a modeler should be constituted of a set of basic shapes, a set of unary operations (shape modifications) and a set of binary operations (shape combinations).

Our work focuses on set operations based on the IFS model. This approach has been inspired by constructive solid geometry (CSG). This technique is clas- sical in geometric modeling. It permits to build complex objects using set oper- ations (union, intersection, ...). In fractal modeling such operations are possible using IFS matrices which are a way to generate a wide class of fractat shapes, not necessarily self-similar. These matrices can be combined using certain operations to yield complex fractal shapes in a constructive way.

(3)

2 I F S m o d e l i n g

Fractals are characterized by their property of self similarity. BAR.NSLEY's idea [Bar88] consists in using this property in order to encode the different parts of the fractal by contractive operators. An iterative scheme based on these operators is applied. This scheme transforms any initial shape into a union of its reduced copies. The contraction property of the operators is used to prove the existence of a unique invariant set named the attractor. Below, we summarize the basic notions of IFS theory and introduce the notation used in the remainder of the paper.

2.1 D e f i n i t i o n s

An IFS-based modeling system is defined by a triple (X, d, S) where:

- (X, d) is a complete metric space. We shall call it the

iterative space.

- S is a semigroup acting on points of ,t2 such that : p ~+ T o p, where T E S is a contractive operator. $ is called the

iterative semigroup.

The space 7/(X) denoting the set of non-empty compacts of X is a complete metric space, endowed with the HAUSDORFF distance:

dH( K, K')

= max{max_~eK

qeK'nain d(p, q) , ~aKX ~i~ d(p, q) }.

An IFS is a finite subset of the semigroup S:

T = . . , TN}.

The associated HUTCHINSON operator is:

K n(X) ToK =TIoKU...uT v oK.

This operator is contractive in the metric space (?/(X),

dH)

and thus admits a fixed point

A(T)

given by:

A ( T ) = lira 7 -k o K0, k-+oo

for any non empty compact set tf0.

IFS attractors constitute a particular family of compacts. They are

invariant sets

for T:

A = T l o A U o . , U T N O A ,

with T~ E T .

Example i.

We present on Figure 1 an IFS given in [PH91]. By convention,

- T(a, b, c)

denotes the translation by the vector (a, b, c).

-

Rx(a)

denotes the rotation of angle a around the

Ox

axis.

- H(a) denotes the scaling of ratio a with respect to the origin of the coordinate system.

(4)

T1 = H(0.5);

T2 = T(0, 0.5, 0) o H(0.5);

T3 = T(O, 1, O) o Rx(Tr/4) o H(0.5);

T4 = T(O, 1, O) o R x ( - ~ / 4 ) o g(0.5).

t"

Fig. l: Example of IFS.

IFS techniques are an interesting approach for modeling fractals. In addition to the simplicity of their mathematical formalism, they provide an efficient toot to encode complex shapes with a small set of contractive operators. This paper focuses on affine operators.

However, IFS techniques suffer from important drawbacks when used for geometric modeling purposes. These consist of two essential restrictions. Firstly, the attractors are strictly self-affine. Secondly, there is no convenient way to manipulate these attractors. Such a deficiency is an important limit of fractal geometric modeling.

2.2 G e n e r a l i z a t i o n s o f IFS t e c h n i q u e s

Many authors have proposed generalizations of the tFS model. These generally consist in constructing subsets of an IFS attractor:

Ko~ C_ A(T) with K~ -- lira Kn and tf~, C T ' o/to.

n--+oo

Two different approaches can be distinguished. Firstly, a "discrete" approach based on quadtrees or octrees [BM89] [CD93]: A(T) = [0, 1] 2 or [0, 1] 3. Secondly, a "continuous" approach in which the IFS is arbitrary [Gen92] [PH92] [TT93]

[DTG95]. The discrete approach is often used for image compression.

Moreover, in each case there are different techniques to define the restriction of the IFS, such as formal languages, equations systems, trees, graphs, etc. These approaches are not totally equivalent. That's why we have looked for a model that could integrate a wide part of these models. Moreover we needed a model on which operations could easily be defined.

A generalization based on a matricial formalism is proposed in this paper.

This approach integrates not only the existing models based on equations sys- tems or graphs but also those based on regular languages (finite automaton, grammars). Moreover, a set of operations is given for a constructive approach of fractal attractors using basic operations such as union and intersection.

3 I F S m a t r i c e s

Our approach is based on the HUTCHINSON operator, generalized by

PEITGEN,

JURGENS and S A U P E [PJS92].

(5)

3.1 Space o f matrices o f c o m p a c t s

We define matrices which components are compact sets. As the HAUSDOlZFF dis- tance is defined for non empty compacts, we should generalize the HAUSDORFF distance in a particular way in order to allow empty components.

We denote

MR(7-I(X))

the set of matrices in 7/(X) where the non empty elements are given by R C { 1 , . . . n } x { 1 , . . . n } . T h a t is to say for all matrix

-ff E MR(Ti(X)),

fiu ~

~(x)

u

O,

We

c a n n o w d e f i n e a d i s t a n c e o n

MnUt(X)): let K" and K" be in Mn(7~(X)),

~ ( ~ ' , ~')

= max d ~ ( ~ ' ~ , i~'j).

(~,j)en

As R is a finite set and

(Tt(X), dg)

a metric space,

(MR(7-1(X)), d~)

is a complete metric space.

3.2 IFS M a t r i x

We now define a matrix which components are IFS. Let $ be an afflne semigroup.

We define a matrix of IFS as an n x n matrix which components are finite, possibly empty, subsets of S. We denote P+(S) the set of finite subsets of S and

MR(7)+(_S))

the set of matrices of IFS.

Let H = (Hij) E Mn(7~+(S))

( Uk~1u

Tk if (i, j) E R ff-Iij = 0 otherwise '

with Tk E S and

l~j

C_ [ 1 . . . N ] where N =

Card(Uij Hij).

Example 2.

Let Ttree be the IFS previously defined. We can choose the following matrix of IFS:

Htre~ ({T3~T4} {T1, T2 } )

= {T1, T2 } "

[ttr~e C Mn(P+(S))

with R = {(1, 1), (1, 2), (2, 2)}.

We can now define the composition of these matrices.

Let

ft C Mn(7'.(S)),[£ E Ms(Tt(X))

and

fi'E Ms(P.(S)):

( g o I4_)~j = U f-Iik o {(kj e MRoS(Tt(X)).

k=l..,~,(i,k)en,(k,j)eS

(fi o/t'),/j

----

U fii,~ o fi~j E MRos('P, (S)).

f ¢ = l . . n , ( i , k ) E R , ( k , j ) E S

(6)

with R o S =

U(<k)eR,(k,j)es{(i,

j ) ] .

Moreover if the relation R is a transitive one, then MR (P+ ($)) is stable by composition, t h a t is:

~ 6 MR(P+(S)), fi 6 MR(n(X)) ~ [-I o [£ 6

M R ( ? / ( X ) ) a n d / t is a contractive operator on

(MR(~I(X)), d~).

3.3 A t t r a c t o r m a t r i x

We now define an a t t r a c t o r m a t r i x as the limit of an iterated m a t r i x of IFS.

Such a limit exists when the m a t r i x of IFS is aperiodic. Intuitively, this means t h a t e m p t y components of the m a t r i x will be stable during the iteration. This hypothesis is necessary because of the HAUSDORFF distance.

More precisely, we define /Y E Mn(7~+(S)) as an aperiodic m a t r i x when it exists m E N such t h a t

Vk > m , R '~ = R k.

Let S =

R m,

then

Ms(P+(8))

is stable by o and vk > ~ , f t k e Ms(P+(S)).

Moreover, if ~I is a diagonal m a t r i x , we have

Vk > m, ~k o k ~ Ms(~t(X)).

We can now define an a t t r a c t o r m a t r i x in the same way as the a t t r a c t o r of an IFS. Indeed, l e t / t be an aperiodic m a t r i x , a s / t is a contractive operator, we can prove t h a t the sequence

(fIko [()k>m

is a CAUCHY sequence in the complete metric space

( Ms ( ?-l ( X ) ) , doo ) .

T h e limit of such a sequence is thus defined, and we call it the a t t r a c t o r matrix:

fi,(H) = lim /;rn o/~'.

n - ~ - o o

Denoting 7- = U(i,d)eR

Hid,

we have

A(H)q _c A(T).

Example 3.

In the case of the IFS Ttree =

{T1,T2,T3, T4},

with the m a t r i x of IFS:

< {Ta;T4} {T,,T2} ~

[-It~ ~ : { TI , T2 } J '

w e h a v e

(;4 )

~kre ¢ : {T3, }k Ui+d=k_I{Ta,T4 } {TI,T2}j

{T1,T2}k

thus

~([ttree):

lim /~rn o / ¢ =

(A(T;,T4)..4(73,T4)U{T3,T4}*oA(T1,T2))

,>-+ ~ ,,4 ( T, , T J "

A(Htr~e)

is shown Figure 2.

(7)

Fig. 2: Agtraetor matrix A(Dtr~e).

We have proved the equivalence of our model with the existing techniques, in particular we have worked on the relation between our model and formal languages ones [Tho96].

In the case of a model based on finite a u t o m a t a , the idea of this relation is to select some of the components of the matrix. T h e choice is m a d e according to the initial and final states of the a u t o m a t o n . T h e a t t r a c t o r associated to the a u t o m a t a is then the union of the chosen components.

4 S e t m a n i p u l a t i o n s

T h e m a t r i x model permits combination of two IFS matrices to obtain a new a t t r a c t o r m a t r i x . We have studied two types of operations, some general op- erations on matrices, such as union, composition, intersection, tensor product [Tho96]; and some operations associated with formal language theory, such as tensor sum, block m a t r i x [TT95].

These operations provide us with a constructive approach. Indeed, it is pos- sible to combine two IFS matrices and to obtain a resultant m a t r i x t h a t we combine with another one, and so on. Before illustrating this approach with an example, let us give a brief definition of each operation.

(8)

4.1 M a t r i c e s o p e r a t i o n s

Let/jr and H~ be two matrices of IFS of size respectively n and m.

The union and intersection operations are defined in the following way:

(# u H')~5 = H~ u H u ,

Composition has already been defined:

k Tensor product is an externM operation:

/r]rll U / ~ ' ...

~rl~

U 2'~/-1 "~

#,, = ~ ® ~ ~ ' = . ) '

~,~, u ~ ' ... #,,., u.~' with H " a square matrix of size n.m, and

~rij

U / ] r ' =

-

) .

-

~' H u u ~ ' , ~

Hi; U H . , I

4.2 L a n g u a g e o p e r a t i o n s

Tensor summation is an operation associated with language theory. This opera- tion corresponds to the shuffle (denoted by II) of two regular languages. For this reason, we denote it "~u". We define it by

~,, = ~ u / ~ / , = [ Id./t21 I5.H~2 U I5.H2~

/

w i t h / t " a square matrix of size n.m and f'd the identity matrix of size m.

The block matrix operation is a simple combination of two matrices:

£r,, = # 0 o ~ ' = ~ , .

As for the tensor summation, this operation has been inspired by language theory. It corresponds to the union of two regular languages. Using this operation we can define the union of two fractal shapes.

Moreover, if we replace some ~ with the identity in the resulting matrix, we obtain the concatenation of two regular languages. We will denote this operation by"{}.".

(9)

4.3 C o n s t r u c t i v e a p p r o a c h

We show Figure 3 some attractor matrices made for a project "art and science".

These pictures have been made by Martine Rondet-Mignotte. She is an artist and uses our work to produce artistic images. This figure shows how some complex shapes can be constructed, using the "step by step" approach, with the use of the matrix operations.

Once the resulting matrix has been constructed, one can choose some of the components. This allows to construct an object which is the union of some components. Figure 4 shows an example of objects extracted from the resulting matrix of Figure 3

Figure 5 shows some other results of operations.

4.4 C l a s s i f i c a t i o n by i n c l u s i o n

To facilitate the choice of operations, we have ordered (in the sense of set in- clusion) the results of these operations. We consider the compact union of all components of the attractor matrix:

x(9)= U

~,j~{1,...n}

Denoting by T the IFS composed of all the transformations used in both IFS matrices H1 and H2, we can prove the following inclusions [Tho96], where

$ denotes inclusion.

[A(f&

n

92)]

[A(/)I) n.A(/t~) I

,I. .I,

r ._j

Figure 6 shows an example of inclusion.

(10)

@

f

-~. :;--.'~. ~

J

C

f ~o J f j

f

®

C

~'f~r,fj£

~_- .... .r-~

(11)

Fig. 4: Four different selections of some components of" ~he precedent attractor matrix

ii

Fig. 5: Examples of 3D attractors

(12)

D /'D

I

,,4(_fi/,) and ,,4(/7/2)

Fig. 6: Example of inclusion.

C A([tl ®u H2)

5 C o n c l u s i o n

Using a generMization of the classical IFS model, we construct a fractat model t h a t enables a constructive approach.

This approach is a p a r t of a project of fractal modeler. In this project, we have also worked on free forms techniques applied to fractals [ZT96]. We should now combine b o t h approaches to obtain a complete system of fractal modeling.

R e f e r e n c e s [Bar88]

[BM89]

[CD93]

[DTG95]

[Gen92]

[PH91]

[PH92]

[PJS92]

M.F. Barnsley. Fractals Everywhere. Academic press, INC, 1988.

J. Berstel and M. Morcrette. Compact representation of patterns by finite automata. In Proceedings of Pixim, pages 387-395, 1989.

K. Culik II and S. Dube. Rationnal and affine expressions for image synthesis.

Discrete AppL Math., 41:85-120, 1993.

S. Dural, M. Tagine, and D. Ghazanfarpour. Mod61isation de fractals par les arbres 6tiquet6s. In 3emes journges AFIG, Marseille, pages 125-134, novembre 1995.

C. Gentil. Les Fractales en Synth~se d'Images : le ModUle IFS. PhD thesis, Universit6 Claude Bernard LYON 1, France, 1992.

P. Prusinkiewicz and M.S. Hammel. Automata, languages and iterated func- tion systems. In lecture notes for the S[GGRAPH'91 course : "Fractal mod- eling in 3D computer graphics and imagery", 1991.

P. Prusinkiewicz and M.S. Hammel. Escape-time visualization method for language-restricted iterated function systems. In Proceedings of Graphics Interface '92, May 1992.

H.O. Peitgen, H. Jfirgens, and D. Saupe. Encoding images by simple trans- formations. In Fractals For The Classroom, New York, 1992.

(13)

[Tho96]

ITT93]

!TT95]

[ZT96]

J. Thollot. Extension du ModUle 1FS pour une Gdoragtrie Fractale Construc- tive. PhD thesis, Universit~ Claude Bernard LYON 1, France, sept 1996.

J. Thollot and E. Tosan. Construction of fractales using formal languages and matrices of attractors. In Harold P. Santos, editor, Proceedings of Com- pugraphies'93, pages 74-81, Technical University of Lisbon, december 1993.

J. Thollot and E. Tosan. Constructive fractal geometry : constructive ap- proach to fraetal modeling using languages operations. In Proceedings of

Graphics Interface'95~ Quebec, Canada, pages 196-203, may 1995.

C. Zair and E. Tosan. Fractal modeling using free forms tedmiques. In Proceedings of Eurographics, 1996.

Références

Documents relatifs

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des

Lapidus, Random Fractal Strings: Their Zeta Functions, Complex Dimensions and Spectral Asymptotics, Trans Amer. Hawkes, Random re-orderings of intervals complementary to a linear

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des

In this paper, starting from the kinematic equation that describes the evolu- tion of the coordinates density of users, we obtained the equation for the time evolution of the

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des

When creating a mobile autonomous robot, it became necessary to solve the problem of recognizing a certain categorical set of objects on the Raspberry Pi-3 Model B board with

A label on an arrow pointing from an asset to a process identifies the role the given asset plays in the process, for example, workforce, infra- structure, etc.. A label on an

In our previous work [1], we have introduced a Fractal Enterprise Model (FEM) which has a form of a directed graph with two types of nodes Processes and Assets, where the