Skip to content

reconstruct_surface_structured_lightReconstructSurfaceStructuredLightReconstructSurfaceStructuredLightreconstruct_surface_structured_lightT_reconstruct_surface_structured_light🔗

説明🔗

reconstruct_surface_structured_lightReconstructSurfaceStructuredLightReconstructSurfaceStructuredLightreconstruct_surface_structured_lightT_reconstruct_surface_structured_light — デコードされたストラクチャー照明セットアップから表面を再構成する。

書式🔗

reconstruct_surface_structured_light( structured_light_model StructuredLightModel, out object_model_3d ObjectModel3D )void ReconstructSurfaceStructuredLight( const HTuple& StructuredLightModel, HTuple* ObjectModel3D )static void HOperatorSet.ReconstructSurfaceStructuredLight( HTuple structuredLightModel, out HTuple objectModel3D )def reconstruct_surface_structured_light( structured_light_model: HHandle ) -> HHandle

Herror T_reconstruct_surface_structured_light( const Htuple StructuredLightModel, Htuple* ObjectModel3D )

void HObjectModel3D::ReconstructSurfaceStructuredLight( const HStructuredLightModel& StructuredLightModel )

HObjectModel3D HStructuredLightModel::ReconstructSurfaceStructuredLight( ) const

void HObjectModel3D.ReconstructSurfaceStructuredLight( HStructuredLightModel structuredLightModel )

HObjectModel3D HStructuredLightModel.ReconstructSurfaceStructuredLight( )

説明🔗

reconstruct_surface_structured_lightReconstructSurfaceStructuredLight はストラクチャー照明セットアップ から表面を再構成します。再構成する前に、投影されたパターン画像ごとに、表面に 投影されたカメラ画像が取得されます。 ストラクチャー照明の概念とそのサポートされるアプリケーションの説明は、 Inspection / Structured Light 章の導入を参照してください。 再構成された表面は、ハンドル ObjectModel3DobjectModel3Dobject_model_3d に保存されます。

「インバースカメラ」のような光を投影するプロジェクターを使用することで、 非鏡面に対して再構成を行うことが出来ます。create_structured_light_modelCreateStructuredLightModelの 中で、モデルのタイプは '3d_reconstruction'"3d_reconstruction" に設定される必要があります。

再構成過程では、キャリブレーション情報だけでなく、カメラ座標を照明する プロジェクター座標間の垂直方向にデコードされた対応関係も利用しています。:

decode_structured_light_patternDecodeStructuredLightPattern は reconstruct_surface_structured_lightReconstructSurfaceStructuredLightの前に呼ばれる必要があります。 これは、プロジェクター座標とカメラ座標間の対応画像、つまり各カメラピクセルごとに どのプロジェクター ピクセルが表面上の観測点を照らした (エンコードした) か、 をモデル StructuredLightModelstructuredLightModelstructured_light_model に保存します。 reconstruct_surface_structured_lightReconstructSurfaceStructuredLight は垂直対応画像を使用するため、 set_structured_light_model_paramSetStructuredLightModelParam のパラメータ 'pattern_orientation'"pattern_orientation" を 'vertical'"vertical" または 'both'"both" に設定する必要があります。 ただし、ほとんどの場合、速度を考慮して 'vertical'"vertical" を選択する必要があることに 注意してください。こちらの方が、'both'"both" よりも必要な画像が少ないです。

キャリブレーション情報の設定については、set_structured_light_model_paramSetStructuredLightModelParamの パラメータ'camera_setup_model'"camera_setup_model"を参照してください。

再構成は対応画像のドメイン領域内のみで実行されます。 decode_structured_light_patternDecodeStructuredLightPattern の入力画像のドメインを縮小する (たとえば、reduce_domainReduceDomain を使用して)ことは、縮小したドメイン内の 再構成された表面を得るために使用することができます。 これは、実行時間を短縮したり、ノイズを減らしたりするために有効です。 結果として得られる ObjectModel3DobjectModel3Dobject_model_3d は写像を含むため、'from_xyz_map'"from_xyz_map" を 使った object_model_3d_to_xyzObjectModel3dToXyz によって座標画像を取得できます。 再構成が不可能なピクセルはその領域から除外されます。

実行情報🔗

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

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

  • 内部データレベルで自動的に並列演算処理を実施

このオペレータはハンドルを返します。このハンドルタイプのインスタンスの状態は、特定のオペレータにおいては、入力パラメータとして使われている場合であっても変更されることがあります。

パラメーター🔗

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

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

ObjectModel3DobjectModel3Dobject_model_3d (output_control) object_model_3d → (handle)HTuple (HHandle)HObjectModel3D, HTuple (IntPtr)HHandleHtuple (handle)

3Dオブジェクトモデルのハンドル

例🔗

(HDevelop)


* Set the calibration information
set_structured_light_model_param (StructuredLightModel, \
                                  'camera_setup_model', CameraSetupModelID)
* Decode the camera images
decode_structured_light_pattern (CameraImages, StructuredLightModel)
* Reconstruct the surface
reconstruct_surface_structured_light (StructuredLightModel, ObjectModel3D)

結果🔗

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

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

組み合わせ

前処理の候補

decode_structured_light_patternDecodeStructuredLightPattern

後処理の候補

object_model_3d_to_xyzObjectModel3dToXyz

関連項目

create_structured_light_modelCreateStructuredLightModel, set_structured_light_model_paramSetStructuredLightModelParam

モジュール🔗

3D Metrology