porespy.filters.fill_invalid_pores#
- porespy.filters.fill_invalid_pores(im: numpy.typing.NDArray, axis=None, conn: Literal['max', 'min'] = 'min')#
Fills invalid pores which are either closed or do not span the domain
- Parameters:
im (ndarray) – A boolean array with True indicating the phase of interest
axis (int) – The direction which defines the surfaces of interest. If not given then all surfaces are considered.
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 copy of im with invalid pores set to False
- Return type:
ndarray
Examples
Click here <https://porespy.org/examples/filters/reference/fill_closed_pores.html>`__ to view online example.