Skip to content

get_structured_light_objectGetStructuredLightObjectGetStructuredLightObjectget_structured_light_objectT_get_structured_light_object🔗

説明🔗

get_structured_light_objectGetStructuredLightObjectGetStructuredLightObjectget_structured_light_objectT_get_structured_light_object — ストラクチャー照明モデルの(中間)結果を取得する。

書式🔗

get_structured_light_object( out object Object, structured_light_model StructuredLightModel, string ObjectName )void GetStructuredLightObject( HObject* Object, const HTuple& StructuredLightModel, const HTuple& ObjectName )static void HOperatorSet.GetStructuredLightObject( out HObject objectVal, HTuple structuredLightModel, HTuple objectName )def get_structured_light_object( structured_light_model: HHandle, object_name: MaybeSequence[str] ) -> HObject

Herror T_get_structured_light_object( Hobject* Object, const Htuple StructuredLightModel, const Htuple ObjectName )

HObject HStructuredLightModel::GetStructuredLightObject( const HTuple& ObjectName ) const

HObject HStructuredLightModel::GetStructuredLightObject( const HString& ObjectName ) const

HObject HStructuredLightModel::GetStructuredLightObject( const char* ObjectName ) const

HObject HStructuredLightModel::GetStructuredLightObject( const wchar_t* ObjectName ) const (Windows only)

HObject HStructuredLightModel.GetStructuredLightObject( HTuple objectName )

HObject HStructuredLightModel.GetStructuredLightObject( string objectName )

説明🔗

オペレーター get_structured_light_objectGetStructuredLightObject により、 decode_structured_light_patternDecodeStructuredLightPattern を使用してすでに復号された ストラクチャー照明測定準備の(中間)結果を入手および検査する ことができます。

一方では、欠陥画像である処理結果 ('defect_image'"defect_image")とともに復号処理の 結果('correspondence_image'"correspondence_image") を確認するのに役立ちます。 もう一方では、get_structured_light_objectGetStructuredLightObject は復号処理のトラブル シューティングとして役立ちます。 中間結果を収集するためには、復号する 前に StructuredLightModelstructuredLightModelstructured_light_model に対して 'persistence'"persistence" モードが有効になっている必要があることに注意 してください。( set_structured_light_model_paramSetStructuredLightModelParam を参照してください)

persistence モードが有効ではない場合に入手可能なオブジェクト:🔗

  • 'correspondence_image'"correspondence_image": モニターやプロジェクタとカメラの間の対応を表す画像。復号が垂直および水平方向で 実行された場合、両方の対応画像が配列で返却されます。 そうでない場合、該当する方向の画像のみが返却されます。

  • 'pattern_region'"pattern_region": 復号されたカメラ画像において分割された領域。この領域は対応画像の ドメインと同一です。

  • 'defect_image'"defect_image" ( 'deflectometry'"deflectometry"タイプのストラクチャー照明モデル用): カメラに向かって表示パターンが反射した表面上の欠陥候補を表す画像。 基本的に、欠陥画像における高いグレイ値は対応画像の勾配が近傍の勾配 から大きな差異があることを示します。 このオブジェクトは、'deflectometry'"deflectometry" タイプの ストラクチャー照明モデルでのみ使用可能であることに注意してください。

persistence モードの場合のみ入手可能なオブジェクト:🔗

復号が垂直および水平方向で実行された場合、両方向の画像が配列で 返却されます。そうでない場合、該当する方向の画像のみが返却されます。

  • 'binarized_image'"binarized_image": グレイコードシーケンスの画像で、白と黒のグレイ値はカメラの画素が、 表示または投影されたパターンの白または黒の領域によって 照らされた表面点を観察したことを示します。 set_structured_light_model_paramSetStructuredLightModelParam を使用して 'normalization'"normalization" に 'inverted_pattern'"inverted_pattern" が 設定された場合、反転ペアのうち最初の画像を参照します。

  • 'decoded_phase_shift_image'"decoded_phase_shift_image": 表示、もしくは投影パターン画像に対応する位相もしくは角度を含む復号された位相シフト画像。 位相の一周期は範囲 'min_stripe_width'"min_stripe_width" の投影パターン内の縞を含みます。

  • 'decoded_single_stripe_image'"decoded_single_stripe_image": 単一縞画像からのみ計算され、デコードされた単一縞画像。 もし、'pattern_type'"pattern_type"が'single_stripe'"single_stripe"と設定されている場合、 対応する画像はこの画像とグレイコード画像、位相シフト画像の組み合わせです。

  • 'gray_code_correspondence_image'"gray_code_correspondence_image": グレイコード画像から単純に計算された対応画像。 'pattern_type'"pattern_type"が'gray_code_and_phase_shift'"gray_code_and_phase_shift"と設定されている場合は、 実際の対応画像はこの画像とデコードされた位相シフト画像の組み合わせです。 'pattern_type'"pattern_type"が'single_stripe'"single_stripe"と設定されている場合は、実際の対応画像は この画像と位相シフト画像、デコードされた単一縞画像の組み合わせです。

実行情報🔗

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

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

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

パラメーター🔗

ObjectobjectValobject (output_object) (multichannel-)object(-array) → objectHObjectHObjectHObjectHobject *

結果

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

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

ObjectNameobjectNameobject_name (input_control) string(-array) → (string)HTuple (HString)HTuple (string)MaybeSequence[str]Htuple (char*)

返却される結果の名前

初期値: 'correspondence_image'"correspondence_image"
推奨値: 'correspondence_image', 'pattern_region', 'decoded_single_stripe_image', 'binarized_image', 'decoded_phase_shift_image', 'gray_code_correspondence_image', 'defect_image'"correspondence_image", "pattern_region", "decoded_single_stripe_image", "binarized_image", "decoded_phase_shift_image", "gray_code_correspondence_image", "defect_image"

例🔗

(HDevelop)


* Create the model
create_structured_light_model ('deflectometry', StructuredLightModel)
* Generate the patterns to project
gen_structured_light_pattern (PatternImages, StructuredLightModel)
* Decode the camera images
decode_structured_light_pattern (CameraImages, StructuredLightModel)
* Get the computed correspondences and defects
get_structured_light_object (CorrespondenceImages, StructuredLightModel, \
                             'correspondence_image')
set_structured_light_model_param (StructuredLightModel, \
                                  'derivative_sigma', Sigma)
get_structured_light_object (DefectImage, StructuredLightModel, \
                             'defect_image')

結果🔗

与えられたパラメーターが有効だった場合、オペレーター get_structured_light_objectGetStructuredLightObject は2 (H_MSG_TRUE)の値を返します。そうでない場合は、例外が発生します。

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

組み合わせ

前処理の候補

decode_structured_light_patternDecodeStructuredLightPattern

後処理の候補

clear_structured_light_modelClearStructuredLightModel

関連項目

gen_structured_light_patternGenStructuredLightPattern

モジュール🔗

3D Metrology