porespy.filters.fill_closed_pores#

porespy.filters.fill_closed_pores(im: numpy.typing.NDArray, conn: Literal['max', 'min'] = 'min')#

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

Parameters:

im (ndarray) – The image of the porous material

Returns:

  • im (ndarray) – A Boolean image, with True values indicating the phase of interest.

  • conn (str) – Can be either ‘min’ or ‘max’ and controls the shape of the structuring element used to determine voxel connectivity. The default if ‘min’ which imposes the strictest criteria, so that voxels must share a face to be considered connected.

Returns:

im – A version of im but with all the closed or disconnected pores converted to solid (i.e. False)

Return type:

ndarray

Examples

Click here to view online example.