vampire.coloring.label_img#

vampire.coloring.label_img(img, img_df)[source]#

Label objects in the image according to clusters.

Parameters:
imgndarray

Image to be labeled.

img_dfDataFrame

Properties of objects from img. Contains labels and cluster_ids.

Returns:
labeled_imgndarray

Image with objects labeled according to clusters.