Skip to content

intersect_lines_of_sightIntersectLinesOfSightIntersectLinesOfSightintersect_lines_of_sightT_intersect_lines_of_sight🔗

説明🔗

intersect_lines_of_sightIntersectLinesOfSightIntersectLinesOfSightintersect_lines_of_sightT_intersect_lines_of_sight — 両眼カメラシステム内の 2 つの線の交点から 3 次元の点を取得する。

書式🔗

intersect_lines_of_sight( campar CamParam1, campar CamParam2, pose RelPose, number Row1, number Col1, number Row2, number Col2, out real X, out real Y, out real Z, out real Dist )void IntersectLinesOfSight( const HTuple& CamParam1, const HTuple& CamParam2, const HTuple& RelPose, const HTuple& Row1, const HTuple& Col1, const HTuple& Row2, const HTuple& Col2, HTuple* X, HTuple* Y, HTuple* Z, HTuple* Dist )static void HOperatorSet.IntersectLinesOfSight( HTuple camParam1, HTuple camParam2, HTuple relPose, HTuple row1, HTuple col1, HTuple row2, HTuple col2, out HTuple x, out HTuple y, out HTuple z, out HTuple dist )def intersect_lines_of_sight( cam_param_1: Sequence[Union[int, float, str]], cam_param_2: Sequence[Union[int, float, str]], rel_pose: Sequence[Union[int, float]], row_1: MaybeSequence[Union[int, float]], col_1: MaybeSequence[Union[int, float]], row_2: MaybeSequence[Union[int, float]], col_2: MaybeSequence[Union[int, float]] ) -> Tuple[Sequence[float], Sequence[float], Sequence[float], Sequence[float]]

def intersect_lines_of_sight_s( cam_param_1: Sequence[Union[int, float, str]], cam_param_2: Sequence[Union[int, float, str]], rel_pose: Sequence[Union[int, float]], row_1: MaybeSequence[Union[int, float]], col_1: MaybeSequence[Union[int, float]], row_2: MaybeSequence[Union[int, float]], col_2: MaybeSequence[Union[int, float]] ) -> Tuple[float, float, float, float]Herror T_intersect_lines_of_sight( const Htuple CamParam1, const Htuple CamParam2, const Htuple RelPose, const Htuple Row1, const Htuple Col1, const Htuple Row2, const Htuple Col2, Htuple* X, Htuple* Y, Htuple* Z, Htuple* Dist )

void HCamPar::IntersectLinesOfSight( const HCamPar& CamParam2, const HPose& RelPose, const HTuple& Row1, const HTuple& Col1, const HTuple& Row2, const HTuple& Col2, HTuple* X, HTuple* Y, HTuple* Z, HTuple* Dist ) const

void HCamPar::IntersectLinesOfSight( const HCamPar& CamParam2, const HPose& RelPose, double Row1, double Col1, double Row2, double Col2, double* X, double* Y, double* Z, double* Dist ) const

void HPose::IntersectLinesOfSight( const HCamPar& CamParam1, const HCamPar& CamParam2, const HTuple& Row1, const HTuple& Col1, const HTuple& Row2, const HTuple& Col2, HTuple* X, HTuple* Y, HTuple* Z, HTuple* Dist ) const

void HPose::IntersectLinesOfSight( const HCamPar& CamParam1, const HCamPar& CamParam2, double Row1, double Col1, double Row2, double Col2, double* X, double* Y, double* Z, double* Dist ) const

void HCamPar.IntersectLinesOfSight( HCamPar camParam2, HPose relPose, HTuple row1, HTuple col1, HTuple row2, HTuple col2, out HTuple x, out HTuple y, out HTuple z, out HTuple dist )

void HCamPar.IntersectLinesOfSight( HCamPar camParam2, HPose relPose, double row1, double col1, double row2, double col2, out double x, out double y, out double z, out double dist )

void HPose.IntersectLinesOfSight( HCamPar camParam1, HCamPar camParam2, HTuple row1, HTuple col1, HTuple row2, HTuple col2, out HTuple x, out HTuple y, out HTuple z, out HTuple dist )

void HPose.IntersectLinesOfSight( HCamPar camParam1, HCamPar camParam2, double row1, double col1, double row2, double col2, out double x, out double y, out double z, out double dist )

説明🔗

カメラ 1 の画像点 (Row1row1row_1,Col1col1col_1) とカメラ 2 の画像 点 (Row2row2row_2,Col2col2col_2) によって指定された異なるカメラか らの 2 つの視野方向を得ることで、intersect_lines_of_sightIntersectLinesOfSight はこの視野方向が交差する 3 次元点を計算します。両眼カメラシステム は、投影カメラ 1 の内部パラメーター CamParam1camParam1cam_param_1 と投影カメ ラ 2 の内部パラメーター CamParam2camParam2cam_param_2、カメラ 2 からカメラ 1 までの点変換によるカメラの姿勢を定義した外部パラメーター RelPoserelPoserel_pose によって記述されます。後者は \(\mvPoseVar{{ccs1}}{{ccs2}}\)の形式であり、両カメラの 相対的な姿勢を特徴づけるため、カメラ座標系2(ccs2)からカメラ座標系1 (ccs1)への点変換を定義します。Transformations / Posesと “Solution Guide III-C - 3D Vision”を参照してください。 これらのカメラパラメーターは、 画像ポイント(Row1row1row_1,Col1col1col_1)および (Row2row2row_2,Col2col2col_2)の座標がそれぞれ元の画像座標系を参照する場合、 例えばcalibrate_camerasCalibrateCamerasなどのオペレーターから取得する ことができます。平行化された画像座標系の場合(例えば平行化画像から取得 した場合)、平行化されたカメラパラメーターはオペレーター gen_binocular_rectification_mapGenBinocularRectificationMap から得たものとして渡されま す。交点は、両方の視線の最小距離の点として定義されます。この点はカ メラシステム 1 のデカルト座標 (Xxx,Yyy,Zzz) として返され、またその視野方向との距離は Distdistdist に渡されま す。

注意🔗

ハイパーセントリックレンズを付けたものと付けないものを混在したカメラを 含むステレオのセットアップを同時に行うことはサポートしていません。

実行情報🔗

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

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

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

パラメーター🔗

CamParam1camParam1cam_param_1 (input_control) campar → (real / integer / string)HTuple (double / Hlong / HString)HCamPar, HTuple (double / int / long / string)Sequence[Union[int, float, str]]Htuple (double / Hlong / char*)

カメラ 1 のカメラ内部パラメーター

CamParam2camParam2cam_param_2 (input_control) campar → (real / integer / string)HTuple (double / Hlong / HString)HCamPar, HTuple (double / int / long / string)Sequence[Union[int, float, str]]Htuple (double / Hlong / char*)

投影カメラ 2 の内部パラメーター

RelPoserelPoserel_pose (input_control) pose → (real / integer)HTuple (double / Hlong)HPose, HTuple (double / int / long)Sequence[Union[int, float]]Htuple (double / Hlong)

カメラ 1 に対するカメラ 2 の相対位置・姿勢

要素数: 7

Row1row1row_1 (input_control) number(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)

画像 1 の点の行座標

Col1col1col_1 (input_control) number(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)

画像 1 の点の列座標

Row2row2row_2 (input_control) number(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)

画像 2 の点の行座標

Col2col2col_2 (input_control) number(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)

画像 2 の点の列座標

Xxx (output_control) real(-array) → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

3 次元ポイントの X 座標

Yyy (output_control) real(-array) → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

3 次元ポイントの Y 座標

Zzz (output_control) real(-array) → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

3 次元ポイントの Z 座標

Distdistdist (output_control) real(-array) → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

視線と 3D 点との距離

結果🔗

intersect_lines_of_sightIntersectLinesOfSight は、すべてのパラメーター値が正し い場合に 2 (H_MSG_TRUE) を返します。必要に応じて、例外が発生します。

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

組み合わせ

前処理の候補

binocular_calibrationBinocularCalibration

関連項目

disparity_to_point_3dDisparityToPoint3d

モジュール🔗

3D Metrology