Skip to main content
. 2019 Jun 27;19(13):2848. doi: 10.3390/s19132848
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 IOR to 1 to obtain Ifill.