Set Pixel Line

Description

Changes the intensity values in a line of pixels of an image. 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,
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.
Documentation illustration (illustration unavailable in the archive). 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.
Documentation illustration (illustration unavailable in the archive). 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

 

Documentation illustration (illustration unavailable in the archive). Image Src : class

 

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