Function iacloserecth

Synopse

Close-by-Reconstruction Top-Hat.

  • y = iacloserecth(f, bdil=ia_secross(), bc=ia_secross())
    • y: Image
    • f: Image
    • bdil: Structuring Element (dilation)
    • bc: Structuring Element ( connectivity)
1. from numpy import *
2. from iasecross import iasecross
3. 
4. def iacloserecth(f, bdil=iasecross(), bc=iasecross()):
5.     from iasubm import iasubm
6.     from iacloserec import iacloserec
7. 
8.     y = iasubm( iacloserec(f,bdil,bc), f)
9.     return y

Description

iacloserecth creates the image y by subtracting the image f of its closing by reconstruction, defined by the structuring elements bc and bdil.

Examples

Example 1

1. from ia870 import iacloserecth
2. from ia870 import iasebox
3. 
4. 
5. a = adreadgray('danaus.tif')
6. adshow(a)
7. b = iacloserecth(a,iasebox(4))
8. adshow(b)

Equation