Operator Coordinate_X

The operator Coordinate_X provides the x coordinate of the input pixels at its output. Thus, each pixel at the input is replaced by its x-position in the image. The actual input pixel values are not used. The operator works as a counter which is incremented with every new pixel and is reset after the end of a line. The first pixel of each 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, VALT_LINE1D} as I
Color Format any VAF_GRAY
Color Flavor any FL_NONE
Max. Img Width any as I
Max. Img Height any as I

1

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

2

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

Parameters

None

Examples of Use

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