Function iaclohole

Synopse

Close holes of binary and gray-scale images.

  • y = iaclohole(f, Bc=iasecross())
    • y: Image
    • f: Image
    • Bc: Structuring Element ( connectivity).

Description

iaclohole creates the image y by closing the holes of the image f, according with the connectivity defined by the structuring element Bc.The images can be either binary or gray-scale.

Examples

Example 1

1. from ia870 import iaclohole
2. 
3. 
4. a = mmreadgray('pcb1bin.tif')
5. b = iaclohole(a)
6. mmshow(a)
7. mmshow(b)

Example 2

1. a = mmreadgray('boxdrill-B.tif')
2. b = iaclohole(a)
3. mmshow(a)
4. mmshow(b)

Equation