Function iahomothick

namespace:morph
page:iahomothick

Synopse

Interval for homotopic thickening.

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

Description

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

Examples

Example 1

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

Equation