Operator Library: Accumulator
Register is a data storage element. Input pixels are stored and forwarded to the output while the Capture input is set to 1. If Capture is set to 0, than the previously stored value will be held.
It is possible to reset the register to the initial value at the and of a line, the end of a frame or never. This behavior is controlled using parameter AutoClear. An initial value can be defined using parameter Init. This initial value is applied on start-up.
Register operators are commonly used to store intermediate results.
Resource Consumption | |
---|---|
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 selecting the last parallel component using operator SelectFromParallel prior to this operator. |
Property | Value |
---|---|
Operator Type | O |
Input Links | I, Image Input Capture, binary input to control the register |
Output Link | O, Data Output |
AutoClear | |
---|---|
Type | static parameter |
Default | EoL |
Range | {EoL, EoF, None} |
This parameter selects whether to reset the register to the initial value at end of line (EoL), end of frame (EoF) or never (None). If image protocol VALT_LINE1D is used, the auto clear at the end of a frame is not possible. For VALT_PIXEL0D or VALT_SIGNAL, the parameter is disabled. |
Init | |
---|---|
Type | static parameter |
Default | 0 |
Range | [0, 2^InputBitWidth-1] |
This parameter defines the initialization value for the register operator at design start up, after a design reset, or after an auto clear event. The minimum value is 0. The maximum value can be derived from the pixel bit width at the input. Currently, no signed values can be edited. To set the parameter to a signed value enter the unsigned two's complements representation. For color and other multi component formats, the parameter Init defines the initialization value for all components, i.e. all components will be initialized with the same value. |
The use of operator Register is shown in the following examples:
-
Examples - The blob analysis operator is applied to an input camera image. The applet shows the usage of the blob data in the applet. In this case, the object with the maximum are is localized and the coordinates are used to cut out the object from the original image.