define_curve_sliders#

ktch.landmark.define_curve_sliders(indices)[source]#

Generate slider matrix from sequential landmark indices.

Creates a topology matrix for curve semilandmarks where each row specifies [before_index, slider_index, after_index]. The first and last indices are treated as fixed anchors and do not slide.

Parameters:
indicesarray-like

Sequential landmark indices along the curve. The first and last points are fixed anchors and do not slide. For closed curves, repeat the anchor index at both ends (e.g., [0, 1, 2, 3, 0]).

Returns:
slider_matrixndarray, shape (n_sliders, 3)

Topology matrix where each row is [before, slider, after]. n_sliders = len(indices) - 2.

See also

GeneralizedProcrustesAnalysis

GPA with semilandmark support.

combine_landmarks_and_curves

Convert TPS format to GPA format.