Returns a porosity profile along the specified axis
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.
result – A 1D-array of porosity along the specified axis
- Return type
Click here to view online example.