porosity_profile
¶
Computes the porosity profile along the given axis of an image.
import porespy as ps
import numpy as np
import matplotlib.pyplot as plt
[03:06:58] ERROR PARDISO solver not installed, run `pip install pypardiso`. Otherwise, _workspace.py:56 simulations will be slow. Apple M chips not supported.
im
¶
The porosity is computed by summing the voxels with a value of 1. This means that in a boolean image the void space is indicated by True
. If the image is multiphase (i.e. voxel values of 1, 2, …) then only the 1’s will be counted.
axis
¶
The axis along which to compute the profile. The default is axis=0
.