Function iase2interval

namespace:morph
page:iase2interval

Synopse

Create an interval from a pair of structuring elements.

  • Iab = iase2interval(a, b)
    • Iab: Interval
    • a: Structuring Element Left extremity.
    • b: Structuring Element Right extremity.
1. from numpy import *
2. 
3. def iase2interval(a, b):
4.     from ianeg import ianeg
5. 
6.     Iab = (a,ianeg(b))
7.     return Iab

Description

iase2interval creates the interval [a,b] from the structuring elements a and b such that a is less or equal b.

Examples

Example 1

1. from ia870 import iase2interval
2. from ia870 import iasecross
3. from ia870 import iasebox
4. from ia870 import iaintershow
5. 
6. 
7. i = iase2interval( iasecross(),iasebox());
8. print iaintershow(i)
. 0 . 
0 0 0 
. 0 .

Equation

Where W is a finite rectangle.

Limitations

Both structuring elements must have the same size with odd dimensions. To avoid this limitation, use iase2hmt.