vampire.processing.align_contours#

vampire.processing.align_contours(contours, mean_contour)[source]#

Returns aligned contours to their mean.

Parameters:
contourslist[ndarray]

List of contour coordinates. List with length n_contours; ndarray with shape (2, n_points).

mean_contourndarray

Mean of registered contours, with shape (2, n_points).

Returns:
aligned_contours_flatndarray

Flattened aligned contours, with shape (n_contours, 2*n_points).

See also

align_contour