Welcome to our Support Center

Set Pixel Line

Description

Changes the intensity values in a line of pixels of an image. Type : polymorphic.

 

Input parameters

 

Image Src : class, type accepted U8 and I16.
Line Coordinates : array,
four-element array specifying the pixel coordinates that form the end points of the line to modify. The first two elements (left, top) in the array correspond to the coordinates for the first endpoint of the line. The last two elements (right, bottom) correspond to the second endpoint of the line.
Pixels Line (U8) : array, array of unsigned 8-bit integers containing the new values for the pixel line. This input is required if Image is an unsigned 8-bit image.
Pixels Line (I16) : array, array of 16-bit integers containing the new values for the pixel line. This input is required if Image is an 16-bit image.

Output parameters

 

Image Src : class

 

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