Operator Library: Accumulator
此算子返回在每个输入帧中找到的最大像素值。 输出帧与输入帧的大小相同,其中每个像素都被替换为 到目前为止在图像中找到的最大值。 如果当前像素是新的最大值,则输出 Link IsMaxO 为 1,否则为 0。
![]() |
资源消耗 |
|---|---|
|
The operator's FGPA resource consumption strongly increases with the Parallelism. We recommend to use low Parallelism at this operator. 在此算子的许多用例中,可以通过在此算子之前选择最大并行组件来降低 Parallelism。 可使用 SplitParallel、MergeKernel 和 MAX 来执行此操作。 |
每当有新输入帧时,最大值检测将重新开始。 此外,当将 ClrI link 设置为 1 时,可以手动清除当前最大值。 如果不需要手动清除,则必须确保 ClrI 保持恒定的 0, 以启用正常操作。
以下示例展示了输入像素与输出值之间的关系。

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.
| Link Parameter | Input Link I | 输入链路 ClrI | Output Link O | Output Link IsMaxO |
|---|---|---|---|---|
| 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 |
以下示例展示了 FrameMax 算子的使用方法:
-
示例 - 将斑点分析算子应用于输入相机图像。 该小程序显示了小程序中斑点数据的使用情况。 在此情况下,定位具有最大面积的对象,并使用坐标从原始图像中 剪切出该对象。
-
“Library Accumulator 和 Library Logic 特定算子的功能示例”
示例 - 算子使用方法演示

![[注意]](../common/images/admon/note.png)
上一页

