Operator Library: Base
The module SelectBitField makes it feasible to select a field of succeeding bits form the input link. Define the required output bit width using the output link. Additionally, you can define the bit offset using parameter BitOffset. If the input arithmetic is signed, the values will be reinterpreted and always output as unsigned values.
Each color component is sliced separately.
See the following figure for explanation. In this example, the output transports 3 bits cut from the 6 bit input values with an offset of two. For example, input value 20 will become 5.
BitOffset | |
---|---|
Type | static parameter |
Default | 0 |
Range | [0, InputBitWidth - OutputBitWidth] if gray [0, (InputBitWidth - OutputBitWidth) / 3] if color |
This parameter defines the bit offset for the first bit to be used. This first bit is mapped to bit position 0 at the output link. For color formats, the offset is handled per component. |
The use of operator SelectBitField is shown in the following examples:
-
Tutorial - Basic Acquisition
-
'Grayscale Camera Link Full Area'
Tutorial - Basic Acquisition
-
'Example for the DMAFromPC Operator on the imaFlex CXP-12 Quad Platform'
Examples - Demonstration of how to use the operator using the example of shading correction
-
Examples - A high speed and robust laser line detection algorithm. The algorithm determines center of gravity coordinates to obtain sub-pixel resolution results.