height_profiles#
Derive height profiles across the images.
Attributes#
Functions#
|
Interpolate heights along the maximum feret. |
Module Contents#
- height_profiles.LOGGER#
- height_profiles.interpolate_height_profile(img: numpy.typing.NDArray, mask: numpy.typing.NDArray, **kwargs) numpy.typing.NDArray #
Interpolate heights along the maximum feret.
Interpolates the height along the line of the maximum feret using SciPy scipy.interpolateRegularGridInterpolator https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.RegularGridInterpolator.html. Arguments can be passed using ‘kwargs’.
- Parameters:
img (npt.NDArray) – Original image with heights.
mask (npt.NDArray) – Binary skeleton.
**kwargs (dict) – Keyword arguments passed on to scipy.interpolate.RegularGridInterpolator().
- Returns:
Interpolated heights between the calculated feret co-cordinates.
- Return type:
npt.NDArray