Digital Image Processing
Digital Image Processing
• String Matching
• Syntactic Methods
• Interpretations
Matching Shape Numbers
• Let a and b denote shape numbers of closed boundaries
represented by 4-directional chain codes. There two
shapes have a degree of similarity k if
s j (a) = s j (b), for j = 4,6,8,..., k
s j (a) ≠ s j (b), for j = k + 2, k + 4,...
1 2
3 1
2 0 4 0
7
5
3 6
• Digital boundary with resampling grid superimposed
• All shapes of order 4, 6,and 8
Order6
Order4
Order8
3. Mirror problem.
– insertion
– deletion
– substitution
• Suppose that two region boundaries, a and b, are coded
into strings denoted a1, a2, …, an and b1, b2, …,bm,
respectively.
• For example:
the srting of Fig.
12.26(c) is abbbbbc.
• Step 2: use of semantics (production rules)
• Step 3: automata as string recognizers
Thank You