Operator SORT

Operator Library: Filter

The operator SORT sorts all elements of an input kernel-stream depending on their gray values. Input link I and output link O both have a kernel field of of size N rows times M columns (I [N, M] and O [N, M]). This kernel field is sorted by the pixel values. The pixel with the maximum gray value will be found on O [0, 0], the 2nd biggest value on O [0, 1], the minimum gray scale value at O [N - 1, M - 1]. Mind that O [ N / 2, M / 2] will output the median of kernel of arbitrary size.

I/O Properties

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

Supported Link Format

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



Examples of Use

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