Operator SCALE

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.

I/O Property

Property 値
オペレータータイプ O
Input Link I, data input
Output Link O, data output

サポートされているリンクフォーマット

Link Parameter Input Link I Output Link O
Bit Width [1, 32] unsigned, [2, 32] signed auto1
Arithmetic {unsigned, signed} as I
Parallelism any as I
Kernel Columns any as I
Kernel Rows any as I
Img Protocol {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D} as I
Color Format VAF_GRAY as I
Color Flavor FL_NONE as I
Max. Img Width any as I
Max. Img Height any as I

1

The bit width at the output is the input bit width + parameter ScaleFactorMaxBits if parameter ScaleFactor is set to dynamic. If the parameter is set to static, the output bit width is

パラメーター

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:

  • マルチDMAチャネル設計

    Threshold binarization

  • 'Histogram Threshold'

    例 - ヒストグラムシレッショルド

  • 'Blob_Analysis_2D (Legacy)'

    Examples - オペレーター Blob_Analysis_2D の使用方法を示します。 アプレットは入力データを二値化し、ブロブ解析結果を求めます。結果および元画像は、2つのDMAチャネルを使用して出力されます。

  • 'Blob2D ROI Selection'

    例 - ブロブ解析オペレーターが入力カメラ画像に適用されます。 このアプレットは、アプレット内でのブロブデータの使用方法を示しています。 このケースでは、最大面積を持つオブジェクトが特定され、その座標を使用して元の画像からオブジェクトが切り出されます。

  • 'Color Plane Separation Option 5 - Sequential Output with Advances Processing'

    カラープレーン分離の例。 RGB入力はコンポーネントに分割され、1つのDMAチャネルを介して順次出力されます。 分割は、パラレルワードで同じコンポーネントを収集し、FrameBufferRandomReadで読み取ることで実行されます。

  • 「Kirsch Filter」

    例 - Kirsch フィルターは、無方向エッジに対して優れたエッジ検出フィルターです。

  • 'Roberts Cross Gradient'

    Examples - Roberts Cross Gradient フィルターの例。

  • 「Sobel Gradient X」

    例 - X方向のみの Sobel フィルター。

  • 「Sobel Multi Gradient」

    例 - 全4方向の Sobel フィルター。

  • 'Close'

    Examples - Shows the implementation of a morphological close applied to binary images.

  • 'Open'

    Examples - Shows the implementation of a morphological open applied to binary images.

  • 「Averaging 3x3」

    例 - シンプルな 3x3 ボックスフィルター。

  • 「Gaussian Filter 5x5」

    例 - 5x5 カーネルを使用する Gauss フィルター。

  • 'Filter Sub Kernels'

    例 - 元の画像データを得るために、フィルターからサブカーネルを抽出する方法を示しています。 この例では、簡単なローカルのアダプティブ二値化を実行します。

  • 「High Boost Sharpening Filter」

    例 - シャープネス処理用のハイブースト Laplace フィルター

  • 'Laplace Filter 3x3'

    使用例 - 3x3 ラプラスフィルター。

  • 3x3ダウンサンプリング

    例 - オペレーター SampleDnを使用せずに3x3の係数でダウンサンプリングします。

  • 'Auto Exposure'

    Examples - Auto Exposure: Automatic ajustment of exposure time