This operator computes the sum of all pixel values for each input frame. The output frame has the same size as the input frame, where each pixel is replaced by the current frame sum. Thus, each each pixel is replaced by the pixel sum determined so far.
The operator's FGPA resource consumption strongly increases with the parallelism. We recommend to use low parallelism at this operator.
In many use cases of this operator, the parallelism can be reduced by adding up the parallel components prior this operator using SplitParallel and ADD.
With every new input frame the summation starts from zero. Additionally, it is possible to clear the current sum manually when the ClrI link is set to 1. When a manual clear is not necessary, you must ensure a constant 0 at ClrI, to enable normal operation.
The following example shows the relation of input values to output values.
Varying line lengths and empty lines are allowed in non-empty images.
Empty images, i.e., images with no pixels, are allowed. The operator will output an empty image.
|Input Links||I, Image Input
ClrI, Clear Input
|Output Link||O, Data Output|
The use of operator FrameSum is shown in the following examples:
Determines the mean value of an image and used the value as threshold value for the next image processed.