Professional Documents
Culture Documents
~~a···~)
CISM
JULIUSZ KULIKOWSKI
AC:\DEMY OF SCIENCES - WARSAW
lnfQrmation
s.~l
'==s{=o~=}=ce=:::!lr"-L:_J--
Transmission
charmel ~
Decoder
{z}
Z(~
~
Decision
system
{v} -
y
' t1
Noise
source
Fig. 1
4. AB against AB or AB or AB,
5. AB or AB against AB against AB,
6. AB or AB against AB against AB,
7. AB or AB against AB against AB,
8. AB or AB against AB against AB,
9. AB or AB against AB against AB,
10. AB or AB against AB against AB,
11. AB or AB against AB or AB,
12. AB or AB against AB or AB,
13. AB or AB against AB or AB,
14. AB against AB against AB against AB.
(some of the formulations can be evidently simplified). The sec
ond-level decision sy~
{Z} = (1.6)
(1. 7)
c~ = {zhc{z} . (1. 8)
alized relation.
I II I II
If U and U are some non-empty sets and U xU is
their cartesian product, then any subset of this product
(1.9)
I
is called a relation between the elements lA. EU and those ones
'I)' E U11 • For example if
U xu"
1
= {Co,o),(0,1),(1,o),C1,1)} ,
and
Rf = {C0,0),(1,1)} ,
R2 = {(0,1), (1,0)}
'lt =
is an integer.
The relation Rwill be called empty if R is an
empty subset of U and will be called a trivial one if it is iden
20 Chap. 2 - Algebra of Relations
( 1.12)
2. Algebra of relations.
(2 .1)
b) a conjunction of relations
(2.2)
Examples of Generalized Relations 21
(2. 3)
<U1 U2 u3
U4 U5 U6
U, Ua U9>
The following relations will be introduced:
a) "a horizontal line in the upper-half of the segment"
Ra = {<111 000 000>,<000 111 000>},
b) 11 a horizontal line in the down-half of the segment 11
Rb = {<000 111 000>,<000 000 111>};
then the following new relations can be defined:
c) "a horizontal line through the segment"
Rc = RaURb = {<111 000 000>, < 000 111 000>,<000 000 tti>},
cO "a horizontal line going through the centre of the seg-
ment"
22 Chap. 2 - Algebra of Relations
(2 .4)
and
if u1, Uz, .•• ,UN are ordered accordingly to their indices. Conse
quently, the order will be supposed to be conserved if a dis-
junction, a conjunction or a difference of the subfamilies is
considered, The two above-mentioned linearly ordered subfamilies
I II
of sets will be briefly denoted by <:U >and <U >, corresponding-
ly. Let R' and R" be some relations described on <U> and <U>. Jl I
R< U>
!ll
• (2. 6)
·<U2 u3
• Us u6
• U8 U9> •
It is clear, tha"t R will describe "a horizontal line through
the subsegment".
j
Let <U> be a subfamily of a family <U> of sets
I I
and let R and R be some relations described on <U> and on <U>
correspondingly. We will take into account all the realizations
of the rela"tion R such that their projections on <U> satisfy to
R. R
I II
the relation The set of realizations satisfying to this
condition is a subrelation
(2.7) R"CR
II I
and the projection of R into <U> is a subrelation
(2 .8)
I
will be called a conditional relation R for given R and
will be denoted by
Let us consider the following example. There are given the form
er families of set
U Ill
<>
u In uII
= <><> (2. 10)
(2.11)
II
and R<U>. • • • Let us take their conjunction:
(2 .12) =
,.
The relation R consists of all the subsequences
Ill
of the elements belonging to the sets of< U> such that any suE
sequence is a common part of two sequences satisfying to the
relation R• and Ru correspondingly. The two above-mentioned
sequences can be joined into a sequence belonging to the family
. ~'It"
< U> of sets. The set of all joined sequences will be denoted
by R; it can be considered as a new relation described on the
~'It I II
family<U> , connected in some sense with the relations R , R •
It will be called a convolution of the relations
(2 .13) R =
Now it is clear, that the conditional relation
RJ (R 11 ) is a particular case of the convolution R' *R 11
obtained
II I
in the case if <U> C <U> • The following example will illustrate
the idea of convolution.
Let us consider a segment of the retina having
the following form
An Example of Relations Convolution 27
The two relations called "a line through the centre of the seg-
I II
ment" will be defined on <U> and <.U> correspondingly:
R' = { <000111 000>,<010 010 010>,<100 010 001> ,<001 010 100>},
(2 .14)
II
and <U> correspondingly. We will take into account the follow
ing subfamilies of the sets:
(2 .15) ...
< U> = < u'>.!..< ull
>J
< U>
Ill
::
< 100 010. 001 . ... > '<001 010. 100 . ... >'
< .... 000 .111 000 > '< ... .010 .010 010 >'
(2 .18)
(2 .21)
(2.23)
(2. 24)
32 Chap. 2 - Algebra of Relations
(2.25)
--
= R'xR"
It can be also proved the associativity law for both operations
(2.26a)
(2.26b)
. variable X:•
,R" z, •.., R" k>such that" there exists at least one random
satisfying to all the relations of this sequence. However, it
does not mean that there is a statistical dependence between
the rest of the arguments of the relations R"i ,R"2, ...,Rn k , because
it can be very easily proved that the statistical dependence b~
all sequences of the relations <Rn 1,R"z' ... ,Rn,? such that R""' is
performed if all the preceding relations R"1'R" 2, ..,Rn....1are performed.
A question then arises of what is the "highest order" relation
between the relations P and T. For example, they are overlap-
ping in the former sense. Investigations of this kind of rela-
c = (3.1)
N (3.3)
't '
and the problem of choosing the set of basic features becomes
equivalent to the one of optimum classification of the original
class of pictures into x' classes of the first discrimination
level. However, the so obtained x' number should not be confused
36 Chap. 3 - Structural Approach to the Recognition of Patterns
by
z* = * *
<z 1 ,z 2 , ••• *
,zn> (3.4)
a standard signal representing the local feature, which is to
be detected, and
z = (3.5)
is the local subrealization of a real input signal, which is to
be processed. The most popular distance measure is this one pr~
N
a(z* ,z) = L C:x:!- :x:..,). (3.6)
\l=i
t/2.
(3.9) eCz*,z) = [K(z*,z*)+K(z,z)-2K (z*,z)] •
(z*,z)
(3.12) g(z*,z) =
11t(z*) + v(z) - (z*,z)
r(z*,:z) = (3.15)
where
1 N
z = N~1 Zy' (3.16)
where
. . .000
0 0 0 . .000 . .0 0 0 . .010 .
.000 . .010 . .0 10 . .0 0 0 . .000 .
. 0 10 . . 0 0 0 . .000 . .0 1 0 . .000 .
. .... . .. . . . . . . . . . . .
the unities showing the addresses of the Rt ( m, n) relations be-
ing satisfied.
However, usually a picture is not given in such
a distinct form, as supposed in the example. The lines are rather
42 Chap. 3 - Structural Approach to the Recognition of Patterns
{0 if z., =
'
0or z.,' = 1and 2 < 'lll'(~m
'
n) ~ e'
(3.21) zm,n: =
1 otherwise
ing results:
. . . . . .
0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 .
0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 1 0 0 0 1 1 1 1 1 1 0 0 .
0 0 0 1 1 1 0 0 1 0 0 0 0 1 0 0 .
. 0 0 0 0 1 1 0 0 . 1 0 0 0 0 1 0
. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .
0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0 .
0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0 .
. . . . . . . . . .
The procedure can be repeated several times, i f
necessary . Applied once more it gives, correspondingly:
. . .
. . 0 0 1 0 0 0 0 0 0 0 0 0
0 0 1 1 0
0 . . 1 1 1 1 1 0
0 0 0 1 0
0 0 0 0 0 1 0
0 0 0 0 0
0 . 0 0 0 0 1 0
0 0 0 0 0
0 0 0 0 0 1 1
0 0 0 0 0
0 0 0 0 0 0 0 .
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 .
and both pictures are ready for the application of the algorithms
proving the distinct local relations.
The situation gets more complicated if the pic-
ture is distorted by noise, as illustrated by the following ex-
amples:
44 Chap. 3 - Structural Approach to the Recognition of Patterns
z•(m,n) = <Z m-1 1 n-H Z m-i 1n' Z m-i,n-tB Z m,n- i. ' Z m,n, Z m7 n+ i '
(3.22)
.zm+i,n-i' zm+i,nJ z.ll+f,n+i > •
calculate the weights 11t[z• (m,n)] and the following matrix will
be filled in:
,.[z'(2,2)] 11t[z'(2,4)]
,.,.[z•(4,2)] 1al[z'(4,4)]
and
(3.25b) 11)"~-i,~+i + ,.~,~ + \t~+i,i-i > 11t~,~+i + W"~+i,j + \)'~+1,i+1;
RIV(.~,~') is satisfied by all the subvectors such that
(3.26a) 1&J'~,.i-1 + \t~,j + W"~,~+i > 'llt~-1,i-i + 'llt~-t,j. + 'llt~-1,i+1,
and
(3.26b)
I II lll IV
The relations R , R , R and R can be called cor-
respondingly the "North-West-South-East", the 11 North-Sonth 11 , the
"North-East-South-West" and the ''West-East 11 directions of a line
going through the centre (~ ,i) of a segment. Applied to the 'bt· . -
~d-
0 0 0 0
0 0 0 t
0 0
i 0
0
0
0 0 0
0 0 0
.. ...
0 0 0 1 1 1 0 0 0 0
0 0 0 t 0 0 0 t 1 t
0011011100 may be coded
0 0 1 1 0 0 t 1 0 0
0011111110 into the fonn R~H
0011101100
0 0 t 1 0 0 1 1 0 0 R;
0 0 0 0 0 0 0 0 0 0
~ ~~ ~~~
where the R , R and R are the symbols of the following local
relations being detected:
R., "line-end",
RH - "line-bend",
RltH - "line-b ranching".
In order to classify the initial picture as a pa!,
* Rt(
H~
on the left of Re * Ri
H~) ( ~
on the left of Re •
~)
(4.1)
(4.2)
h(q)CH(q) . (4.3)
(4.4) v~ = 'f'(U) .
(4. 5)
. .
<Um-t,n-i Um-t,n
... um,n-i
The relation RI
projected intc the family of sets
gives us
R" 1
= {<11 00>,<00 11>}
R .
II I
which is identical with the relation The relation R and
R" are then mutually isomorphic. This kind of an isomorphism
may be called a "shiftening".
An isomorphism between the relations defined on
the same family of sets (ordered in different ¥.-ays) will be cal-
led an automorphism. The relation R1 in the last example and a
~,.
uk-i 1 > as
'
There are given two families of sets<U> ,<V> with the relations
Ru and Rv , correspondi ngly. Let us suppose that l is an
than this one based on the idea of morphism. This cab be reached,
in general, by introducing some distance characteristics into
the space of structure.
Let us suppose, that there is a correspondence
at the lowest level of the structure being compared. It means,
that the set-families <U> , <V> and a class of projections 'I',
{~~} are given. The algebra of relations makes it p~ssible to
describe the meta-relations between the relations {R~} as well
as those between the relations {Rt} . The meta-relations can be
expressed in terms of subrelations, convolutions, cartesian pro~
f) A(R) ~ 1 A(R) .
<Ui u2. u3
u4 Us u6
u7 Ua U9>
and the following relations:
R4 = R3<uhu4,u7> = {<000>,<111>,<100>,<010>,<001>}.
and the graph illustrating the meta-relations will have the fol
lowing form:
The structure can be compared
from the point of view of sim_!
larity of the graphs describing
their internal logical micro-
Fig. 4 structure. This general concept
can be improved by additional indexing of the nodes: the nodes
corresponding to the relations mutually isomorphic may have as-
signed the same index of the class of isomorphic relations. In
the above-given example the same additional index should be at-
tached to the nodes corresponding to the relations Rt andRe •
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 1 1 1 1 0 0
0 0 1 1 1 1 0 0
00111100
00111100
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
the standard procedure CMARK (Zl, Z2, Z3, '123 1 ) will give the
result
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 1 1 1 0 0
00111100
00111000
00111000
0 0 0 0 0 0 0 0
00000000
A Standard Procedure THRESHOLDCMARK 65
0 0 0 0 0 0 0 0 0
0 0 0 0 1 1 0 0 0
0 0 0 1 1 1 0 0 0
0 0 1 1 1 1 0 0 0
0 0 0 1 1 1 0 0 0
0 0 0 1 1 1 0 0 0
000111100
0 0 1 1 1 1 1 0 0
0 0 0 0 0 0 0 0 0
we obtain the contour of the image:
0 0 0 0 0 0 0 0 0
000011000
000111000
001101000
0 0 0 1 0 1 0 0 0
0 0 0 1 0 1 0 0 0
0 0 0 1 0 1 1 0 0
001111100
0 0 0 0 0 0 0 0 0
66 Chap. 5 - Formal Languages for Image Processing
00000000 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 001111 0 0
0 0 0 0 0 0 0 0 0 1 1 t 1 1 1 0
0 0 1 0 0 0 0 0 0 1 1 1 1 1 1 0
0 0 0 1 0 0 0 0 0 1 1 11 1 1 0
0 0 0 0 0 0 0 0 0 1 t 1 1 1 1 0
0 0 0 0 0 t 0 0 0 0 1 1 1 1 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 1 0 0 0
0 0 0 1 0 1 0 0
0 0 1 1 1 1 1 0
00011110
0 0 0 0 0 0 1 0
0 0 0 0 0 1 0 0
00000000
A Standard Procedure THRESHOLDCHAIN 67
0 0 0 1 0 1 0 1
10011001
0 0 t 0 0 1 1 0
00111001
1 1 0 0 0 1 0 0
01101100
11100011
0 1 1 0 1 0 0 0
1 1 0 0 0 0 0 0 00000011
11100000 0 0 0 0 0 1 1 1
01110000 00001110
00111000 00011100
0 0 0 1 1 0 0 0 00111000
00001110 01110000
00000111 1 1 1 0 0 0 0 0
00000011 11000000
0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1
1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1
0 0 1 1 0 0 0 0 0 0 0 0 0 1 1 0
0 0 1 1 1 0 0 0 0 0 0 1 1 0 0 0
0 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0
0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0
0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0
0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0
00000011
00000111
00001110
00011100
00111000
01110000
1 1 1 0 0 0 0 0
1 1 0 0 0 0 0 0
0 0 0 0 0 0 0 1
0 0 0 0 0 0 1 0
0 0 0 0 0 1 0 0
0 0 0 0 1 0 0 0
0 0 0 1 0 0 0 0
0 0 1 0 0 0 0 0
0 1 0 0 0 0 0 0
1 0 0 0 0 0 0 0
01000001 0 0 0 0 0 0 0 0
01001110 0 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0
00111110 0 0 0 0 0 0 0 0
0 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0
00011100 11110000
01110010 1 1 1 1 0 0 0 0
0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0
0 0 0 0 0 0 0 0
Other Picture - Processing Languages 71
L = <A,F> (5.1)
dx + ey + f < 0
gx + hy + ~ < 0
Moscow, 1967.
[11] Sebestyen G. S. : "Decision making processes in pattern rec
ognition. The McMillan Company, New York, 1962.
[12] Trudy III Vsesojuznoj konferencji po informacjonno-poisk£
vym sistemam i avtomatizirovannoj obrabotke
nautno-techni~eskoj informacji - Transactions of
the 3rd all-Union conference on the information-
retrieval systems and automatic processing of
scientific and technical information, in Russian
Vol. III Avtomaticeskije citajuscije ustrojstva.
VINITI, Moscow 1967.
B. On algebraic and structural methods
page
Preface ........................................ 3
Chapter 1. Introductory Remarks..... ............... 7
Chapter 2. Algebra of Relations... ................. 20
Chapter 3. Structural Approach to the Recognition
Patterns.... ................. ........... 34
Chapter 4. Recognition of Integral Features....... . 47
Chapter 5. Formal Languages for Image Processing... 60