- porosity_profile(im, axis=0)#
Computes the porosity profile along the specified axis
im (ndarray) – The volumetric image for which to calculate the porosity profile. All voxels with a value of 1 (or
True) are considered as void.
axis (int) – The axis (0, 1, or 2) along which to calculate the profile. For instance, if axis is 0, then the porosity in each YZ plane is calculated and returned as 1D array with 1 value for each X position.
result – A 1D-array of porosity along the specified axis
- Return type:
Click here to view online example.