Function iahomothin

namespace:morph
page:iahomothin

Synopse

Interval for homotopic thinning.

  • Iab = iahomothin()
    • Iab: Interval
01. from numpy import *
02. 
03. def iahomothin():
04.     from iase2hmt import iase2hmt
05.     from iabinary import iabinary
06. 
07. 
08.     Iab = iase2hmt( iabinary([[0,0,0],
09.                              [0,1,0],
10.                              [1,1,1]]),
11.                    iabinary([[1,1,1],
12.                              [0,0,0],
13.                              [0,0,0]]))
14. 
15. 
16.     return Iab

Description

iahomothin creates an interval that is useful for the homotopic (i.e., that conserves the relation between objects and holes) thinning of binary images.

Examples

Example 1

1. from ia870 import iahomothin
2. from ia870 import iaintershow
3. 
4. 
5. print iaintershow( iahomothin())
0 0 0 
. 0 . 
0 0 0

Equation