trim_saddle_points(peaks, dt, max_iters=20)¶
Removes peaks that were mistakenly identified because they lied on a saddle or ridge in the distance transform that was not actually a true local peak.
peaks (ND-array) – A boolean image containing
Truevalues to mark peaks in the distance transform (
dt (ND-array) – The distance transform of the pore space for which the peaks are sought.
max_iters (int) – The number of iteration to use when finding saddle points. The default is 20.
image – An image with fewer peaks than the input image
- Return type
 Gostick, J. “A versatile and efficient network extraction algorithm using marker-based watershed segmentation”. Physical Review E. (2017)