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
Type: image
Description: Image to mask
contours
Type: [table]
Description: Contours

Output ports

result
Type: image
Description: 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

Example flows demonstrating this node:

Implementation

class node_contours.ContourToLabels[source]