Operator FrameMin

Operator Library: Accumulator

此算子返回针对每个输入帧找到的最小像素值。输出帧的大小与输入帧相同,其中每个像素都被替换为迄今为止在图像中找到的最小值。如果当前像素是新的最小值,则输出 Link IsMinO,否则为 0。

[注意] 资源消耗

The operator's FGPA resource consumption strongly increases with the Parallelism. We recommend to use low Parallelism at this operator.

在此算子的许多用例中,可以通过在此算子之前选择最小并行组件来降低 Parallelism。对于此操作,请使用 SplitParallel、MergeKernel 和 MIN。

每当有新输入帧时,最小值检测就会重新开始。此外,当将 ClrI link 设置为 1 时,可以手动清除当前的最小值。当无需手动清除时,您必须确保 ClrI 保持恒定的 0,以启用正常操作。

The following example shows the relation of input values to output values.

Often, this operator is used in conjunction with operators RemoveLine and RemovePixel to use only the last image pixel containing the results of all frame pixels.

Image Restrictions

  • 空图像

    Empty images, i.e., images with no pixels, are allowed. The operator will output an empty image.

I/O Property

Property 值
Operator Type O
输入链路 I,图像输入
ClrI,清除输入
输出链路 O,数据输出
IsMinO,用于指示新最小值的二进制输出

支持的 Link Format

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

参数

无

使用示例

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