Function iacloseth

Synopse

Closing Top Hat.

  • y = iacloseth(f, b=ia_secross(NULL))
    • y: Image
    • f: Image
    • b: Structuring Element
1. from numpy import *
2. import ia870 as MT
3. from iasecross import iasecross
4. 
5. def iacloseth(f, b = iasecross()):
6. 
7.     y = MT.iasubm( MT.iaclose(f,b), f)
8.     return y

Description

iacloseth creates the image y by subtracting the image f of its morphological closing by the structuring element b.

Examples

Example 1

1. from ia870 import iacloseth
2. from ia870 import iasebox
3. 
4. 
5. a = mmreadgray('danaus.tif')
6. mmshow(a)
7. b = iacloseth(a,iasebox(5))
8. mmshow(b)

Equation