nphase_border#
- nphase_border(im, include_diagonals=False)[source]#
Identifies the voxels in regions that border N other regions.
Useful for finding triple-phase boundaries.
- Parameters:
im (ndarray) – An ND image of the porous material containing discrete values in the pore space identifying different regions. e.g. the result of a snow-partition
include_diagonals (bool) – When identifying bordering pixels (2D) and voxels (3D) include those shifted along more than one axis
- Returns:
image – A copy of
im
with voxel values equal to the number of uniquely different bordering values- Return type:
ndarray
Examples
Click here to view online example.