vampire.processing.sample_contours

vampire.processing.sample_contours(contours, num_points=50)[source]

Returns sampled contours using B-spline.

Parameters
contourslist[ndarray]

List of contour coordinates, list with length num_contours, ndarray with shape (2, num_points).

num_pointsint, optional

Number of sample points of object contour. Defaults to 50.

Returns
sampled_contourslist[ndarray]

Sampled contours, list with length num_contours, ndarray with shape (2, num_points).

See also

sample_contour