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

Numerical example

a=
[[0 0 0 0 0 0]
 [0 1 1 1 1 0]
 [0 1 0 0 1 0]
 [0 1 0 0 1 0]
 [0 1 1 1 1 0]
 [0 0 0 0 0 0]]
b=
[[0 0 0 0 0 0]
 [0 1 1 1 1 0]
 [0 1 1 1 1 0]
 [0 1 1 1 1 0]
 [0 1 1 1 1 0]
 [0 0 0 0 0 0]]

Example 1

Example 2

Equation