util
¤
align_edges(src_pts: ndarray, src_edges: ndarray, tgt_pts: ndarray, tgt_edges: ndarray, return_transform: bool = False) -> ndarray
¤
Calulate mean change in angle and position between two curves
Parameters:
Name | Type | Description | Default |
---|---|---|---|
src_pts |
ndarray
|
|
required |
tgt_pts |
ndarray
|
|
required |
src_edges |
ndarray
|
|
required |
tgt_edges |
ndarray
|
|
required |
return_transform |
bool
|
If True, return a 3x3 transformation matrix. Otherwise, return the transformed points. |
False
|
Source code in src\curvey\util.py
periodic_interpolator(x: ndarray, f: ndarray, typ: InterpType | str = 'cubic') -> Callable[[ndarray], ndarray]
¤
Construct a periodic interpolator of the function f(x)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x |
ndarray
|
|
required |
f |
ndarray
|
|
required |
typ |
InterpType | str
|
The type of interpolator. One of
|
'cubic'
|
Returns:
Type | Description |
---|---|
interpolator
|
A function |