Height Profiles Modules
Derive height profiles across the images.
interpolate_height_profile(img: npt.NDArray, mask: npt.NDArray, **kwargs) -> npt.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:
| Name | Type | Description | Default |
|---|---|---|---|
img
|
NDArray
|
Original image with heights. |
required |
mask
|
NDArray
|
Binary skeleton. |
required |
**kwargs
|
dict
|
Keyword arguments passed on to scipy.interpolate.RegularGridInterpolator(). |
{}
|
Returns:
| Type | Description |
|---|---|
NDArray
|
Interpolated heights between the calculated feret co-cordinates. |