Function iacloserec

namespace:morph
page:iacloserec

Synopse

Closing by reconstruction.

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

Description

iacloserec creates the image y by a sup-reconstruction ( with the connectivity defined by the structuring element bc) of the image f from its dilation by bdil.

Examples

Example 1

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

Equation