Welcome to our Support Center

Line Profile

Description

Calculates the profile of a line of pixels. Type : polymorphic.

 

Input parameters

 

Image Src : class, type accepted U8 and I16.
Line Coordinates : array, specifying the pixel coordinates that form the end points of the line.

Output parameters

 

Line Graph : cluster, contains the line profile with an x-origin at 0 and an increment of 1.

x0 : integer, always returns 0.
dx : integer,
always returns 1.
Pixels Line : array,
returns the line profile calculated in an array in which elements represent the pixel values belonging to the specified vector.

ROI Pixel Statistics : cluster, contains relevant information about the pixels found in the specified vector.

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

Global Rectangle : cluster, contains the coordinates of a bounding rectangle for the line in the image.

Left : integer, indicates the x-coordinate of the top-left corner of the rectangle.
Top :
integer, indicates the y-coordinate of the top-left corner of the rectangle.
Right :
integer, indicates the x-coordinate of the bottom-right corner of the rectangle.
Bottom :
integer, indicates the y-coordinate of the bottom-right corner of the rectangle.

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