Welcome to our Support Center

ROI To Mask

Description

Transform a Region of Interest into Mask. Type : polymorphic.

 

Input parameters

 

Image Model : class
Filling Value : integer,
pixel value of the mask. All pixels inside the region of interest take this value.
Background Value : integer,
pixel value of the background.

ROI Descriptor : cluster, descriptor that defines the region of interest.

Global Rectangle : array, minimum rectangle required to contain all of the contours in the ROI. Rectangles are specified by their bounding rectangle, with the format (Left/Top/Right/Bottom).
Contours : array, are each of the individual shapes that define the ROI.

ID : enum, refers to whether the contour is the external or internal edge of an ROI. If the contour is external, all of the area inside it is considered part of the ROI.
Type : integer, is the shape type of the contour.
Coordinates : array, are the coordinates that define the contour.

Output parameters

 

Image Dst : class, output type is U8.

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install TIGR library to run it).

Table of Contents