AG903ライブラリリファレンス
内容インデックスホーム
前へ上へ次へ
AG903_PgpMgrSetConfigThresholdSpatialFilter1Bit 関数

閾値処理の 1bit 空間フィルタ設定

Syntax
C++
int32_t AG903_PgpMgrSetConfigThresholdSpatialFilter1Bit(AG903_PgpMgrPipelineHandle * handle, int32_t coeff[9], int32_t thr);
引数 
説明 
AG903_PgpMgrPipelineHandle * handle 
[in] パイプラインハンドルを指定します。 
int32_t coeff[9] 
[in] 閾値処理の1bit空間フィルタ係数を指定します。 
int32_t thr 
[in] 閾値処理の1bit空間フィルタの閾値を指定します。 

設定結果

返値の詳細 
説明 
正常終了 
-AG903_EINVAL 
handleに不正な値が指定された場合
coeffにNULLが指定された場合 

閾値処理の 1bit 空間フィルタのパラメータを設定します。 引数に指定可能な範囲は以下の通りです。

引数 
設定可能範囲 
coeff 
下位 1bit のみ有効 
thr 
下位 6bit のみ有効 
1: int32_t AG903_PgpMgrSetConfigThresholdSpatialFilter1Bit(AG903_PgpMgrPipelineHandle *handle, int32_t coeff[9], int32_t thr) 2: { 3: int32_t i; 4: 5: 6: if ((handle == NULL) || (handle->id != AG903_PGP_MGR_PIPELINE_HANDLE_ID)) { 7: return -AG903_EINVAL; 8: } 9: 10: 11: if (coeff == NULL) { 12: return -AG903_EINVAL; 13: } 14: 15: 16: for (i = 0; i < 9; i++) { 17: handle->thr_spf1_coeff[i] = coeff[i] & THR_SPF1_COEFF_MASK; 18: } 19: handle->thr_spf1_thr = thr & THR_SPF1_THR_MASK; 20: handle->is_config_dirty[AG903_PGP_MGR_CONFIG_THR_SP_FILTER_1BIT] = true; 21: handle->is_dirty = true; 22: return AG903_ENONE; 23: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.