The Insight Journal logo

Small Hole Filling in ITK

Doria, David
Rensselaer Polytechnic Institute
Publication cover image

Please use this identifier to cite or link to this publication:
New: Prefer using the following doi:
Submitted by David Doria on 2011-08-24 15:09:28.

This code provides an implementation of a simple technique to fill small holes in an image. We use a multi-pass method that fills pixels on the border of a hole with the average of its non-hole 8-connected neighbors. This process is repeated until all holes are filled. The code is available here: