PMEAL / porespy

A set of tools for characterizing and analying 3D images of porous materials
https://porespy.org
MIT License
309 stars 100 forks source link

enhance trim_nearby_peaks to accept a tolerance or threshold #193

Closed jgostick closed 3 years ago

jgostick commented 5 years ago

At the moment it trims peaks that are closer to another peak than to solid, but it'd be nice if we could put some sort of absolute AND relative tolerance, so it only trims peaks if they are too close to a nearby peak within some acceptable amount.

Ni2M commented 3 years ago

It is a good idea. I think we can apply this idea on https://github.com/PMEAL/porespy/blob/dd5c2240a3a7d0da5a03f2338ae54b5b885e373a/porespy/filters/__funcs__.py#L626.