算子 ExpandLine

运算符 Library: Synchronization

ExpandLine 算子会保存每个输入图像的最后一行图像。 该保存的图像行将用于替换输出端下一图像的所有图像行。 换句话说,该算子会将最后一行图像复制到下一图像的所有行中。

请注意,此算子的行为仅会影响下一帧,而不会影响当前帧。 因此,Acquisition Start 之后的第一帧的输出数据必须使用参数 Init 进行指定。

如果后续帧的宽度小于上一帧, 算子将保持图像尺寸不变,且仅输出所保存行的前一部分。 如果后续帧的宽度大于上一帧, 算子将用随机的 Memory 内容来填充缺失的像素。

算子限制

  • 不支持空图像。

    不支持具有不同行长的图像。

    输入图像的尺寸必须等于 链路中设置的最大图像尺寸。

I/O Property

Property 值
Operator Type O
Input Link I,数据输入
Output Link O,数据输出

Supported Link Format

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

1

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

参数

Init
键入 static 参数
默认 0
范围 [0, 2^InputBitWidth - 1]

该参数用于指定第一个输出帧像素的初始化值。 该参数仅接受无符号值。 对于有符号的初始化值,请输入其无符号表示形式。

使用示例

以下示例展示了 ExpandLine 算子的使用方法: