porespy.filters.local_thickness_conv#

porespy.filters.local_thickness_conv(im: numpy.typing.NDArray, dt: numpy.typing.NDArray = None, sizes: int = 25, smooth: bool = True)#

Calculates the radius of the largest sphere that overlaps each voxel while fitting entirely within the void space.

Parameters:
  • im (ndarray) – A binary image with the phase of interest set to True

  • dt (ndarray) – The distance transform of the void space. If not provided it will be computed but providing it saves time. Note that rounding and/or converting the values to integers and using sizes=None can save time by limiting the number of sizes that are used.

  • sizes (array_like or scalar) – The sizes to insert. If a list of values is provided they are used directly. If a scalar is provided then that number of points spanning the min and max of the distance transform are used. If None, the all the unique values in the distance transform are used, which may become time consuming.

  • smooth (bool, optional) – Indicates if protrusions should be removed from the faces of the spheres or not. Default is True.

Returns:

image – A copy of im with the pore size values in each voxel

Return type:

ndarray

Notes

The way local thickness is found in PoreSpy differs from the traditional method (i.e. used in ImageJ https://imagej.net/Local_Thickness).

Examples

Click here to view online example.