Operator Coordinate_Y

Operator Library: Base

The operator Coordinate_Y provides the y coordinate of the input pixels at its output. Thus, each pixel at the input is replaced by its y-position in the image. The actual input pixel values are not used. The operator works as a counter which is incremented with every new line and is reset after the end of a frame. The pixels of the first image row will have coordinate zero.

I/O Properties

Property Value
Operator Type O
Input Link I, data input
Output Link O, data output

Supported Link Format

Link Parameter Input Link I Output Link O
Bit Width [1, 64]1 auto2
Arithmetic {unsigned, signed} unsigned
Parallelism any as I
Kernel Columns any 1
Kernel Rows any 1
Img Protocol VALT_IMAGE2D as I
Color Format any VAF_GRAY
Color Flavor any FL_NONE
Max. Img Width any as I
Max. Img Height any as I


The range of the input bit width is [1, 64]. For signed inputs, the range is [2, 64]. For unsigned color inputs, the range is [3, 63] and for signed color, the range is [6, 63].


The output bit width is automatically determined from the maximum image height i.e.



Examples of Use

The use of operator Coordinate_Y is shown in the following examples:

  • 'Laser Triangulation'

    Examples - A high speed and robust laser line detection algorithm. The algorithm determines center of gravity coordinates to obtain sub-pixel resolution results.

  • 'Image Timing Generator'

    Example - While image timing is provided by a generator the designs data flow can be analyzed.

  • 'ImageSplitAndMerge'

    Examples - Shows how to split an merge image streams. Appends a trailer to the image.