region_size
¶
Each voxel is replaced with the size of the region to which it belongs
Import packages¶
import matplotlib.pyplot as plt
import numpy as np
import porespy as ps
import scipy.ndimage as spim
import skimage
ps.visualization.set_mpl_style()
np.random.seed(0)
[01:03:00] ERROR PARDISO solver not installed, run `pip install pypardiso`. Otherwise, _workspace.py:56 simulations will be slow. Apple M chips not supported.
im
¶
Generate a test image. Can be either 2D or 3D.