reduce_peaks
¶
Broad or elongated peaks are replaced with single peaks located at the centre of original voxels
Import packages¶
import numpy as np
import porespy as ps
import scipy.ndimage as spim
import matplotlib.pyplot as plt
import skimage
from edt import edt
ps.visualization.set_mpl_style()
np.random.seed(0)
[01:02:53] ERROR PARDISO solver not installed, run `pip install pypardiso`. Otherwise, _workspace.py:56 simulations will be slow. Apple M chips not supported.
peaks
¶
Find peaks
on the test image