This operator facilitates the random read of the buffered data. The frame data is transferred into the operator via link I. The random read of the data can be performed by transferring addresses to ports RColA (read column address) and RRowA (read row address). The operator uses the addresses to read the frame data by the given coordinates. The resulting output frame has the image dimensions of the address inputs. One VisualApplets resource of type RAM is required. Check 'Allocation of Device Resources' for more information.
The FrameBufferRandomRead operator buffers the image stream in the Frame Grabber RAM (DRAM). One VisualApplets resource of type RAM is required. Multiple resources of type RAM use the same physical RAM with the shared memory concept. Documentation for how to use the shared memory is available in the Application Note: Shared Memory.
The operator has two states:
-
Write state: Input images are stored in the buffer. The operator works like a FIFO. If enough memory is available, multiple images can be stored in the buffer.
-
Read state: After an image has been fully stored in the memory, the memory is read-out using the addresses given at the inputs RColA and RRowA. The number of addresses and address link image dimensions define the output image's width and height.
The image data input and the address inputs are not synchronous to each other. They may have different image dimensions. Both address inputs RColA and RRowA have to be O-synchronous.
Note the timing of the input links: The address inputs must not be sourced by the same operator as the data link input I without buffering. This is, because while writing the image data into the operator, no addresses to read the current frame can be accepted. Only if the frame is fully stored into the buffer, addresses can be accepted. In many cases, operator 'CreateBlankImage' is used to generate the images for the addresses.
The operator uses large non-FPGA memory. If only small frames or lines have to be stored, consider using operators FrameMemoryRandomRd or LineMemoryRandomRd.
The operator can handle both two-dimensional image (Img Protocol = VALT_IMAGE2D), as well as a one-dimensional sequence of lines (Img Protocol = VALT_LINE1D). In the two-dimensional mode full frames are processed, which means that reading can only start, when a full frame has been written. Once the address ports (RColA and RRowA) receive the end of a frame, the frame's memory is available again and the next read addresses will address the next frame. The one-dimensional mode processes lines. As a result, reading can start, as soon as one line has been written. The end of a line on the address port RColA releases the line's memory and the next RColA value will address the next line. RRowA is not used in the one-dimensional line mode and should be set to any constant value (CONST).
All pins allow empty frames, empty lines and varying line lengths.
The dimensions of input frames may exceed the dimension of the internal frames. The operator then cuts the incoming frames to the dimensions defined by MaxFrameWidth and MaxFrameHeight.
Operator Restrictions
-
There is no validity check on the read addresses. If the RColA is greater than or equal to MaxFrameWidth or if RRowA is greater than or equal to MaxFrameHeight (only in 2D mode), the operator reads random dummy values from the memory.
-
The parallelism of all input ports is 1.
-
For this hardware platform the operator doesn't support non-stoppable image data sources.
For optimal performance the used number of data bits should match as closely as possible the number provided in the module parameter RamDataWidth. The maximum bandwidth going through the operator is reached, if the product of bit width and kernel size is equal to the internal RAM port width RamDataWidth.
| Property | Value |
|---|---|
| Operator Type | M |
| Input Links | I, image data input RColA, read column address for the pixel at I RRowA, read row address for the pixel at I |
| Output Link | O, data input |
Synchronous and Asynchronous Inputs
- Synchronous Group: RColA and RRowA
- Input I is asynchronous to the group.
|
The range of the input bit width is:
The input bit width must not exceed the native RAM data width RamDataWidth. |
|
|
The bit width of the column address is: ![]() |
|
|
The bit width of the row address is: ![]() |
|
|
BitWidth * Columns * Rows <= RamDataWidth |
|
|
BitWidth * Columns * Rows <= RamDataWidth |
|
|
MaxImageWidth * MaxImageHeight <= 2^RamAddressWidth |
| RamDataWidth | |
|---|---|
| Type | static write parameter |
| Default | 0 |
| Range | Integer number |
|
This parameter provides the number of data bits that can be used. |
|
| RamAddressWidth | |
|---|---|
| Type | static write parameter |
| Default | 0 |
| Range | Integer number |
|
This parameter provides the number of address bits that can be used. The sum of the row and column address width must not be larger than this number. |
|
| MaxFrameSizeMode | |
|---|---|
| Type | dynamic write parameter |
| Default | Auto |
| Range | {Auto, Custom} |
|
This parameter defines whether the parameters MaxFrameWidth and MaxFrameHeight should automatically follow the max. image dimension at input I (mode=Auto) or whether these parameters can be adjusted (mode=Custom). Mode Custom enables setting a maximum frame dimension, which is customized for the application and may be much smaller than the limits from the input link. This way, more frames can be stored in the RAM. |
|
| MaxFrameWidth | |
|---|---|
| Type | dynamic write parameter |
| Default | 1024 |
| Range | [1, Max. Image Width at I] |
|
This parameter sets the max. image width for the current image processing configuration. The lines of input frames that exceed this limit are cut to MaxFrameWidth. Reducing this number below the max. image width saves memory space and allows storing more frames. This parameter can only be edited when MaxFrameSizeMode is set to Custom. |
|
| MaxFrameHeight | |
|---|---|
| Type | dynamic write parameter |
| Default | 1024 |
| Range | [1, Max. Image Height at I] |
|
This parameter sets the max. image height for the current image processing configuration. Input frames exceeding this height limit are cut to MaxFrameHeight. Reducing this number below the max. image height saves memory space and allows to store more frames. This parameter can only be edited when MaxFrameSizeMode is set to Custom and the Image Protocol is set to VALT_LINE1D. |
|
The use of operator FrameBufferRandomRead is shown in the following examples:
-
'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.
-
'Geometric Transformation Using FrameBufferRandomRead'
Examples- Geometric Transformation using FrameBufferRandomRead
-
'Geometric Transformation and Distortion Correction'
Examples- Geometric Transformation and Distortion Correction using PixelReplicator
-
Examples- Distortion Correction
-
Examples - Scaling A Line Scan Image
-
Examples - Scaling A Line Scan Image
-
'Image Composition Using Exposure Fusion'
Examples - ExposureFusion









Prev

