- nphase_border(im, include_diagonals=False)#
Identifies the voxels in regions that border N other regions.
Useful for finding triple-phase boundaries.
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
image – A copy of
imwith voxel values equal to the number of uniquely different bordering values
- Return type:
Click here to view online example.