Welcome to our Support Center

Ungroup ROI

Description

Separates an ROI descriptor describing many contours into an array of ROI descriptors. Each of the ROI descriptors returned contains a single contour. Type : polymorphic.

 

Input parameters

 

ROI Descriptor : cluster, descriptor that contains multiple contours.

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 an ROI.

ID : enum, refers to whether the contour is the external or internal edge of an ROI.
Type : integer, is the shape type of the contour.
Coordinates : array, indicates the relative position of the contour.

Output parameters

 

 ROI Descriptors : array, returned array of ROI descriptors. Each ROI descriptor contains a single contour.

 Global Rectangle : array, contains the coordinates of the bounding rectangle. Rectangles are specified by their bounding rectangle, with the format (Left/Top/Right/Bottom).
 Contours : array, are each of the individual shapes that define an ROI.

 ID : enum, refers to whether the contour is the external or internal edge of an ROI.
 Type : integer, is the shape type of the contour.
 Coordinates : array, indicates the relative position of the contour.

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