|
Algorithm 3 Binary hole filling |
-
1:
Apply Flood-Fill algorithm using the background edge pixels as its seed.
-
2:
Repeat step 1 until no edge background pixels exist.
-
3:
Create a mask containing only the flood-filled pixels.
-
4:
Set every non-masked pixel in to 1 to obtain .
|