算子 RemoveLine

Operator Library: Synchronization

The operator RemoveLine is used to completely remove image lines. The control whether a line is removed is made using the binary input link Rem. If the very first pixel of each line at input link Rem is value 1, the line will be removed. If the pixel value is 0, the line is forwarded to the output.

Both inputs have to be synchronous i.e. they have to be sourced by the same M-type operator through an arbitrary network of O-type operators.

Empty lines cannot transport the information whether they have to be removed or not as they have no data pixel. In this case, the lines will always be removed. If all lines of an image are removed, the operator will output an empty image at its output.

I/O Property

Property 值
Operator Type P
输入链路 I,数据输入
Rem,控制输入
Output Link O,数据输出

支持的 Link Format

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

1

对于无符号输入,输入 Bit Width 的范围是 [1, 64]。 对于有符号输入,范围是 [2, 64]。 对于无符号彩色输入,范围是 [3, 63],对于有符号彩色输入,范围是 [6, 63]。

同步和异步输入

  • 所有输入彼此同步,即它们必须由同一个 M 型算子通过任意的 O 型算子网络提供源。

参数

无

使用示例

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

  • “带宽瓶颈”

    带宽瓶颈 - 在去除像素后降低 Parallelism。

  • “3x3 降采样”

    示例 - 在不使用 SampleDn 算子的前提下按 3x3 因子进行降采样。

  • 'ImageSplitAndMerge'

    示例 - 展示了如何拆分和合并图像流。向图像追加尾部数据。

  • '激光三角测量'

    示例 - 一种 High Speed 且稳健的激光线检测算法。 该算法可确定重心坐标,以获得亚像素分辨率的结果。