ROI Profile

Description

Calculates the profile of the pixels along the boundary of an ROI descriptor. Type : polymorphic.

 

Documentation illustration (illustration unavailable in the archive).

Input parameters

 

Documentation illustration (illustration unavailable in the archive). Image Src : class, type accepted U8 and I16.

Documentation illustration (illustration unavailable in the archive). ROI Descriptor : cluster, descriptor that defines the region of interest.

Documentation illustration (illustration unavailable in the archive). 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).
Documentation illustration (illustration unavailable in the archive). Contours : array, are each of the individual shapes that define the ROI.

Documentation illustration (illustration unavailable in the archive). ID : enum, refers to whether the contour is the external or internal edge of an ROI.
Documentation illustration (illustration unavailable in the archive). Type : integer, is the shape type of the contour.
Documentation illustration (illustration unavailable in the archive). Coordinates : array,indicates the relative position of the contour.

Documentation illustration (illustration unavailable in the archive).

Output parameters

 

Documentation illustration (illustration unavailable in the archive). Pixel Coordinates : array, contains the spatial coordinates of each pixel along the ROI boundary.

Documentation illustration (illustration unavailable in the archive).

Documentation illustration (illustration unavailable in the archive). ROI Graph : cluster, contains the ROI profile with an x-origin at 0 and an increment of 1.

Documentation illustration (illustration unavailable in the archive). x0 : integer, always returns 0.
Documentation illustration (illustration unavailable in the archive). 
dx : integer, 
always returns 1.
Documentation illustration (illustration unavailable in the archive).
Pixels Line : array,
returns the ROI profile calculated in an array in which elements represent the pixel values belonging to the specified vector.

Documentation illustration (illustration unavailable in the archive).

Documentation illustration (illustration unavailable in the archive). Global Rectangle : cluster, contains the coordinates of a bounding rectangle for the ROI in the image.

Documentation illustration (illustration unavailable in the archive). Left : integer, indicates the x-coordinate of the top-left corner of the rectangle.
Documentation illustration (illustration unavailable in the archive).
Top :
integer, indicates the y-coordinate of the top-left corner of the rectangle.
Documentation illustration (illustration unavailable in the archive). Right :
integer, indicates the x-coordinate of the bottom-right corner of the rectangle.
Documentation illustration (illustration unavailable in the archive).
Bottom :
integer, indicates the y-coordinate of the bottom-right corner of the rectangle.

Documentation illustration (illustration unavailable in the archive).

Documentation illustration (illustration unavailable in the archive). ROI Pixel Statistics : cluster, contains relevant information about the pixels found in the ROI boundary.

Documentation illustration (illustration unavailable in the archive). Min : integer, returns the smallest pixel value found in the ROI profile.
Documentation illustration (illustration unavailable in the archive). 
Max : integer, 
returns the largest pixel value found in the ROI profile.
Documentation illustration (illustration unavailable in the archive). 
Mean : float, 
returns the mean value of the pixels found in the ROI profile.
Documentation illustration (illustration unavailable in the archive). 
Std Dev : float, 
returns the standard deviation from the ROI profile.
Documentation illustration (illustration unavailable in the archive). 
Count : integer, 
returns the number of pixels found in the ROI profile.

Documentation illustration (illustration unavailable in the archive).

Examples

All these examples 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 Computer Vision ​library to run it).