Contours to labels

../../../../_images/image_contours_to_labels.svg

Takes a contour and creates integer labels for an image based on a list of contours. Use the node Image to List to extract each region from these labels

Documentation

Takes a contour and creates integer labels for an image based on a list of contours. Use the node Image to List to extract each region from these labels

Definition

Input ports

image image

Image to mask

contours [table]

Contours

Output ports

result image

Resulting mask

Configuration

X column (X)

Column names with contour X coordinates

Y column (Y)

Column names with contour Y coordinates

Type (close)

Select if the countour should be closed

Examples

Implementation

class node_contours.ContourToLabels[source]