fill_blind_pores(im, conn=None, surface=False)[source]#

Fills all blind pores that are isolated from the main void space.


im (ndarray) – The image of the porous material


  • im (ndarray) – A version of im but with all the disconnected pores removed.

  • conn (int) – For 2D the options are 4 and 8 for square and diagonal neighbors, while for the 3D the options are 6 and 26, similarily for square and diagonal neighbors. The default is the maximum option.

  • surface (bool) – If True, any isolated pore regions that are connected to the sufaces of the image are but not connected to the main percolating path are also removed. When this is enabled, only the voxels belonging to the largest region are kept. This can be problematic if image contains non-intersecting tube-like structures, for instance, since only the largest tube will be preserved.


Click here to view online example.