Line Profile

Description

Calculates the profile of a line of pixels. 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). Line Coordinates : array, specifying the pixel coordinates that form the end points of the line.

Output parameters

 

Documentation illustration (illustration unavailable in the archive). Line Graph : cluster, contains the line 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 line 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). ROI Pixel Statistics : cluster, contains relevant information about the pixels found in the specified vector.

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

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 line 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).

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).