find_surface_pores¶
- find_surface_pores(im: ndarray[Any, dtype[_ScalarType_co]], conn: Literal['max', 'min'] = 'min')[source]¶
Finds surface pores that do not span the domain
- Parameters:
im (ndarray) – A boolean array with True 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:
surface – A array containing boolean values indicating voxels which belong to surface pores.
- Return type:
ndarray
Examples
Click here to view online example.