Operator Library: Arithmetics
The operator performs an arithmetic shift of the input data to the left. The number of bits to be shifted is defined using parameter Shift. Each bit at the input is left shifted by the parameterized number of bits. The newly inserted least significant bits will have value zero.
Bit shifting is usually used to scale a value by a power of two value. For example a left shift by one bit will double the value. A left shift by 2 bits will quadruple the input value.
Each color component is shifted separately.
Shift | |
---|---|
Type | static parameter |
Default | 0 |
Range | [0, 64 - Input BitWidth] |
This parameter defines the number of bits by which the input is left shifted. |
The use of operator ShiftLeft is shown in the following examples:
-
Figure 216, 'ShiftLeft Operator Added for 16Bit Output'
Tutorial - User ShiftLeft to change DMA bit width.
-
Examples - A high speed and robust laser line detection algorithm. The algorithm determines center of gravity coordinates to obtain sub-pixel resolution results.
-
Example - Calculates image moments orientation and eccentricity
-
'2D Shading Correction / Flat Field Correction'
Examples - The example shows the implementation of a 2D shading correction. Correction values are stored in frame grabber RAM. The applet performs a high precision offset and gain correction.
-
'2D Shading Correction / Flat Field Correction Using Operator RamLUT'
Examples - The example shows the implementation of a 2D shading correction. Correction values are stored in the operator RamLUT. The applet performs a high precision offset and gain correction.
-
'1D Shading Correction Using Block RAM'
Examples - The example shows an 1D shading correction. The correction values are stored in block RAM memory.
-
'1D Shading Correction Using Frame Grabber RAM'
Examples - The example shows an 1D shading correction. The correction values are stored in Frame Grabber RAM.