Skip to content

get_structured_light_model_paramGetStructuredLightModelParamGetStructuredLightModelParamget_structured_light_model_paramT_get_structured_light_model_param🔗

説明🔗

get_structured_light_model_paramGetStructuredLightModelParamGetStructuredLightModelParamget_structured_light_model_paramT_get_structured_light_model_param — ストラクチャー照明モデルのパラメーターを確認する。

書式🔗

get_structured_light_model_param( structured_light_model StructuredLightModel, attribute.name GenParamName, out attribute.value GenParamValue )void GetStructuredLightModelParam( const HTuple& StructuredLightModel, const HTuple& GenParamName, HTuple* GenParamValue )static void HOperatorSet.GetStructuredLightModelParam( HTuple structuredLightModel, HTuple genParamName, out HTuple genParamValue )def get_structured_light_model_param( structured_light_model: HHandle, gen_param_name: MaybeSequence[str] ) -> Sequence[Union[int, float, str]]

def get_structured_light_model_param_s( structured_light_model: HHandle, gen_param_name: MaybeSequence[str] ) -> Union[int, float, str]Herror T_get_structured_light_model_param( const Htuple StructuredLightModel, const Htuple GenParamName, Htuple* GenParamValue )

HTuple HStructuredLightModel::GetStructuredLightModelParam( const HTuple& GenParamName ) const

HTuple HStructuredLightModel::GetStructuredLightModelParam( const HString& GenParamName ) const

HTuple HStructuredLightModel::GetStructuredLightModelParam( const char* GenParamName ) const

HTuple HStructuredLightModel::GetStructuredLightModelParam( const wchar_t* GenParamName ) const (Windows only)

HTuple HStructuredLightModel.GetStructuredLightModelParam( HTuple genParamName )

HTuple HStructuredLightModel.GetStructuredLightModelParam( string genParamName )

説明🔗

オペレーター get_structured_light_model_paramGetStructuredLightModelParam はストラクチャー照明モデル (StructuredLightModelstructuredLightModelstructured_light_model) の様々なパラメーターの値を確認するために使用されます。 取得するパラメーターの名前をパラメーター GenParamNamegenParamNamegen_param_name に渡し、 対応する値が GenParamValuegenParamValuegen_param_value に返却されます。get_structured_light_model_paramGetStructuredLightModelParam の一度の呼び出しで複数のパラメーターを確認することができます。 set_structured_light_model_paramSetStructuredLightModelParam で操作できるすべてのパラメーターを 確認することができます。各パラメータ―の説明については set_structured_light_model_paramSetStructuredLightModelParam のドキュメントを参照してください。

以下の追加パラメータを照会できます。

ストラクチャー照明モデルの概念の説明とサポートされるアプリケーションについては、 Inspection / Structured Light の章のイントロダクションを参照してください。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

StructuredLightModelstructuredLightModelstructured_light_model (input_control) structured_light_model → (handle)HTuple (HHandle)HStructuredLightModel, HTuple (IntPtr)HHandleHtuple (handle)

ストラクチャー照明モデルのハンドル

GenParamNamegenParamNamegen_param_name (input_control) attribute.name(-array) → (string)HTuple (HString)HTuple (string)MaybeSequence[str]Htuple (char*)

取得されるモデルパラメーターの名前

初期値: 'min_stripe_width'"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'"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"

GenParamValuegenParamValuegen_param_value (output_control) attribute.value(-array) → (integer / real / string)HTuple (Hlong / double / HString)HTuple (int / long / double / string)Sequence[Union[int, float, str]]Htuple (Hlong / double / char*)

取得されるモデルパラメーターの値

例🔗

(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_paramGetStructuredLightModelParam は2 (H_MSG_TRUE)の値を返します。 そうでない場合は、例外が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

create_structured_light_modelCreateStructuredLightModel

関連項目

set_structured_light_model_paramSetStructuredLightModelParam

モジュール🔗

3D Metrology