reduce_peaks
#
Broad or elongated peaks are replaced with single peaks located at the centre of original voxels
Import packages#
import matplotlib.pyplot as plt
import numpy as np
from edt import edt
import porespy as ps
ps.visualization.set_mpl_style()
np.random.seed(0)
peaks
#
Find peaks
on the test image