porosity_profile

porosity_profile(im, axis=0)[source]

Returns a porosity profile along the specified axis

Parameters
  • im (ND-array) – The volumetric image for which to calculate the porosity profile

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