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 | |
|---|---|
| タイプ | static パラメータ |
| Default | 8 |
| 範囲 | [1, 32] |
|
Using this parameter, the range of parameter ScaleFactor is defined. If ScaleFactor is set to static, this parameter is disabled |
|
| ScaleFactor | |
|---|---|
| タイプ | static/dynamic read/write parameter |
| Default | 1 |
| 範囲 | [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:
-
Threshold binarization
-
例 - ヒストグラムシレッショルド
-
Examples - オペレーター Blob_Analysis_2D の使用方法を示します。 アプレットは入力データを二値化し、ブロブ解析結果を求めます。結果および元画像は、2つのDMAチャネルを使用して出力されます。
-
例 - ブロブ解析オペレーターが入力カメラ画像に適用されます。 このアプレットは、アプレット内でのブロブデータの使用方法を示しています。 このケースでは、最大面積を持つオブジェクトが特定され、その座標を使用して元の画像からオブジェクトが切り出されます。
-
'Color Plane Separation Option 5 - Sequential Output with Advances Processing'
カラープレーン分離の例。 RGB入力はコンポーネントに分割され、1つのDMAチャネルを介して順次出力されます。 分割は、パラレルワードで同じコンポーネントを収集し、FrameBufferRandomReadで読み取ることで実行されます。
-
例 - Kirsch フィルターは、無方向エッジに対して優れたエッジ検出フィルターです。
-
Examples - Roberts Cross Gradient フィルターの例。
-
例 - X方向のみの Sobel フィルター。
-
例 - 全4方向の Sobel フィルター。
-
Examples - Shows the implementation of a morphological close applied to binary images.
-
Examples - Shows the implementation of a morphological open applied to binary images.
-
例 - シンプルな 3x3 ボックスフィルター。
-
例 - 5x5 カーネルを使用する Gauss フィルター。
-
例 - 元の画像データを得るために、フィルターからサブカーネルを抽出する方法を示しています。 この例では、簡単なローカルのアダプティブ二値化を実行します。
-
「High Boost Sharpening Filter」
例 - シャープネス処理用のハイブースト Laplace フィルター
-
使用例 - 3x3 ラプラスフィルター。
-
例 - オペレーター SampleDnを使用せずに3x3の係数でダウンサンプリングします。
-
Examples - Auto Exposure: Automatic ajustment of exposure time

![[注]](../common/images/admon/note.png)


前へ

