Operator Library: Base
運算子 CONST 會在輸出鏈路上提供一個固定值。 所有輸入值都會被捨棄,並由該常數取代。 該常數可透過參數Value 來定義。 此值可以是靜態值,也可以是動態值。 因此,該值可在執行期間進行變更。
請注意,對於 RGB 等多成分格式,該常數值是針對整個像素定義的單一數值, 而非僅針對單一成分。
Example: Output link RGB 24bit, constant value is set to 11862494 (0xB501DE). The output components will then be set to the following const values: R = 222 (0xDE), G = 01 (0x01) and B = 181 (0xB5). The constant concatenates the component values to a single value. The component 0 is placed in LSB area and the highest component in MSB area, i.e. for RGB, the constant value is {B-G-R}. Value = {component N-1, ..., component 0}, with N being the number of the components.
| Value | |
|---|---|
| Type | static/dynamic 讀寫參數 |
| Default | 0 |
| Range | 這取決於算術運算以及輸出鏈路的位元寬度 |
|
此參數定義輸出鏈結上的值。 若將此參數設定為「靜態」,則該值將於設計階段選定。 若將此參數設定為「動態」,則可在執行階段變更該值。 |
|
以下範例展示了運算子 CONST 的用法:
-
局部自適應閾值法的二值化範例。 採用 8×8 像素的核大小。
-
Examples - 顯示如何對影像進行垂直鏡射。 請注意平行字組與像素的鏡射。
-
範例 - 一種 High Speed 且強固的雷射線檢測演算法。 此演算法會決定重心座標,以取得次像素解析度的結果。





上一頁

