Operator Library: Base
Library: Base
The operator CastParallel enables the re-interpretation of the input link bits. Change the parallelism at the output link for re-interpretation. For example, an input link width of 16-bit per pixel and a parallelism of two transmits 32-bits at each clock cycle. The CastParallel operator gives you the possibility to interpret these 32-bits as 8-bit per pixel at parallelism 4 or 4-bit per pixel at parallelism 8, etc. One constraint of the cast is that the product of the width and the parallelism must be identical for the input and the output link. The 2nd constraint is that the output pixel width must not exceed 64-bits.
At parallelism casts, the lower parallel components will be mapped to the lower bits.
Note that the operator will change the bit width of a pixel and the width of the images.
The range of the input bit width is [1, 64]. For signed inputs, the range is [2, 64]. For unsigned color inputs, the range is [3, 63] and for signed color, the range is [6, 63]. |
|
The output bit width is determined from the output parallelism, the input parallelism and the input bit width by where = bit width at the input, = parallelism at the input, = output parallleism and = bit width at the output. |
|
The output image width must not exceed 2^31 - 1. |
The use of operator CastParallel is shown in the following examples:
-
Design Parametrization - Invalid link property.
-
'Functional Example for the FrameBufferMultRoiDyn Operator on the imaFlex CXP-12 Penta Platform'
Examples - Demonstration of how to use the operator
-
Examples - Shows the usage of operator Blob_Analysis_1D in line scan applications.
-
'Color Plane Separation Option 5 - Sequential Output with Advances Processing'
Example on separation of color planes. The RGB input is split into its component and sequentially output via one DMA channel. The splitting if performed by collecting same components in parallel words and reading with FrameBufferRandomRead.
-
Example - For debugging purposes the Scope operator provides options for analyzing gray-scale pictures. .
-
Examples - Shows how to vertically mirror an image. Note the mirroring of the parallel words and the pixel.
-
'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 Frame Grabber RAM'
Examples - The example shows an 1D shading correction. The correction values are stored in Frame Grabber RAM.