Operator Library: Arithmetics
The operator performs a multiplication of the input with a parameterizable value. The multiplicand can be defined using parameter ScaleFactor. The range of ScaleFactor is defined by parameter ScaleFactorMaxBits if ScaleFactor is a dynamic parameter. Only positive values are allowed for the scale factor.
Less Resources for Static Parameter | |
---|---|
The operator requires less FPGA resources if the parameter ScaleFactor is set to static. Moreover, users should consider using operator HWMULT together with CONST to save resources. |
ScaleFactorMaxBits | |
---|---|
Type | static parameter |
Default | 8 |
Range | [1, 32] |
Using this parameter, the range of parameter ScaleFactor is defined. If ScaleFactor is set to static, this parameter is disabled |
ScaleFactor | |
---|---|
Type | static/dynamic read/write parameter |
Default | 1 |
Range | [0, 2^ScaleFactorMaxBits - 1] if dynamic |
This parameter defines the factor for the multiplication with the operator's input. The range of this parameter is [0, 1^ScaleFactorMaxBits - 1], if parameter ScaleFactor is dynamic. Otherwise, the range of this parameter is [1, 2^32 - 1]. |
The use of operator SCALE is shown in the following examples:
-
' Multiple DMA Channel Designs '
Threshold binarization
-
Example - Histogram thresholding
-
Examples - Shows the usage of operator Blob_Analysis_2D. The applet binarizes the input data and determines the blob analysis results. The results as well as the original image are output using two DMA channels.
-
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.
-
'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.
-
Examples - The Kirsch filter is a good edge detection filter for non directional edges.
-
Examples - Roberts Cross Gradient filter example.
-
Examples - A Sobel filter in x-direction only.
-
Examples - A Sobel filter in all 4 directions.
-
Examples - Shows the implementation of a morphological close applied to binary images.
-
Examples - Shows the implementation of a morphological open applied to binary images.
-
Examples - A simple 3x3 box filter.
-
Examples - A Gauss filter using a 5x5 kernel.
-
Examples - Shows how to extract a sub kernel from a filter to obtain the original image data. This example performs a simple local adaptive binarization.
-
'High Boost Sharpening Filter'
Examples - A high boost Laplace filter for sharpening
-
Examples - A 3x3 Laplace filter.
-
Examples - Downsampling by factor 3x3 without the use of operator SampleDn.