porosity_profile#

porosity_profile(im, axis=0)[source]#

Computes the porosity profile along the specified axis

Parameters:
  • 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.

Returns:

result – A 1D-array of porosity along the specified axis

Return type:

1D-array

Examples

Click here to view online example.