vampire.extraction.get_contours_from_image

vampire.extraction.get_contours_from_image(img, object_labels)[source]

Returns a list of contours associated with each object in an image.

Parameters
imgndarray

2D binary image to be analyzed.

object_labelsndarray

Labels of each object.

Returns
contourslist[ndarray]

List of contour coordinates of objects.