get_structured_light_model_param🔗
説明🔗
get_structured_light_model_param — ストラクチャー照明モデルのパラメーターを確認する。
書式🔗
get_structured_light_model_param( structured_light_model StructuredLightModel, attribute.name GenParamName, out attribute.value GenParamValue )
説明🔗
オペレーター get_structured_light_model_param はストラクチャー照明モデル
(StructuredLightModel) の様々なパラメーターの値を確認するために使用されます。
取得するパラメーターの名前をパラメーター GenParamName に渡し、
対応する値が GenParamValue に返却されます。get_structured_light_model_param
の一度の呼び出しで複数のパラメーターを確認することができます。
set_structured_light_model_param で操作できるすべてのパラメーターを
確認することができます。各パラメータ―の説明については set_structured_light_model_param
のドキュメントを参照してください。
以下の追加パラメータを照会できます。
- 'type':
ストラクチャー照明モデルのタイプ
(現在は 'deflectometry' か '3d_reconstruction'のいずれかが
create_structured_light_modelにて設定されます).
ストラクチャー照明モデルの概念の説明とサポートされるアプリケーションについては、 Inspection / Structured Light の章のイントロダクションを参照してください。
実行情報🔗
実行情報
-
マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)
-
マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)
-
並列演算処理には未対応
パラメーター🔗
StructuredLightModel (input_control) structured_light_model → (handle)
ストラクチャー照明モデルのハンドル
GenParamName (input_control) attribute.name(-array) → (string)
取得されるモデルパラメーターの名前
初期値: 'min_stripe_width'
値のリスト: 'camera_setup_model', 'derivative_sigma', 'min_gray_difference', 'min_stripe_width', 'normalization', 'pattern_height', 'pattern_orientation', 'pattern_type', 'pattern_width', 'persistence', 'single_stripe_width', 'type'
GenParamValue (output_control) attribute.value(-array) → (integer / real / string)
取得されるモデルパラメーターの値
例🔗
(HDevelop)
* Create the model
create_structured_light_model ('deflectometry', StructuredLightModel)
* Get the default value
get_structured_light_model_param (StructuredLightModel, \
'min_stripe_width', Default)
* Set the value
set_structured_light_model_param (StructuredLightModel, \
'min_stripe_width', 64)
* Get the value
get_structured_light_model_param (StructuredLightModel, 'min_stripe_width', \
MinStripeWidth)
* Generate the patterns to project
gen_structured_light_pattern (PatternImages, StructuredLightModel)
* Decode the camera images
decode_structured_light_pattern (CameraImages, StructuredLightModel)
結果🔗
与えられたパラメーターが有効だった場合、オペレーター
get_structured_light_model_param は2 (H_MSG_TRUE)の値を返します。
そうでない場合は、例外が発生します。
他のオペレーターとの組み合わせ🔗
モジュール🔗
3D Metrology