🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.ptcloud
クラス OdometryFrame
- java.lang.Object
-
- org.opencv.ptcloud.OdometryFrame
public class OdometryFrame extends java.lang.ObjectOdometryアルゴリズム向けに、ユーザーが提供した画像からアルゴリズム固有の事前計算データまで、フレームごとのデータを保持するオブジェクト。空でない場合、深度画像、有効ピクセルのマスク、およびそのデータから生成された一連のピラミッドを含む。BGR/グレースケール画像と法線は省略可能である。OdometryFrameは、Rtデータの計算の間で事前計算データを再利用するために、Odometryクラスと組み合わせて使用するように作られている。正しい使い方は、前後のフレームに対してOdometry::prepareFrames()を呼び出し、それらをOdometry::compute()メソッドに渡すことである。
-
-
フィールドの要約
フィールド Modifier and Type Field Description protected longnativeObj
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description OdometryFrame()Construct a new OdometryFrame object.protectedOdometryFrame​(long addr)OdometryFrame​(Mat depth)Construct a new OdometryFrame object.OdometryFrame​(Mat depth, Mat image)Construct a new OdometryFrame object.OdometryFrame​(Mat depth, Mat image, Mat mask)Construct a new OdometryFrame object.OdometryFrame​(Mat depth, Mat image, Mat mask, Mat normals)Construct a new OdometryFrame object.
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static OdometryFrame__fromPtr__​(long addr)voidgetDepth​(Mat depth)Get the original user-provided depth imagevoidgetGrayImage​(Mat image)Get the gray image generated from the user-provided BGR/Gray imagevoidgetImage​(Mat image)Get the original user-provided BGR/Gray imagevoidgetMask​(Mat mask)Get the valid pixels mask generated for the ICP calculations intersected with the user-provided masklonggetNativeObjAddr()voidgetNormals​(Mat normals)Get the normals image either generated for the ICP calculations or user-providedvoidgetProcessedDepth​(Mat depth)Get the depth image generated from the user-provided one after conversion, rescale or filtering for ICP algorithm needsvoidgetPyramidAt​(Mat img, int pyrType, long level)Get the image generated for the ICP calculations from one of the pyramids specified by pyrType.intgetPyramidLevels()Get the amount of levels in pyramids (all of them if not empty should have the same number of levels) or 0 if no pyramids were prepared yet
-
-
-
コンストラクタの詳細
-
OdometryFrame
protected OdometryFrame​(long addr)
-
OdometryFrame
public OdometryFrame​(Mat depth, Mat image, Mat mask, Mat normals)
Construct a new OdometryFrame object. All non-empty images should have the same size.- 引数:
depth- 深度画像。CV_8UC1であることimage- BGRまたはグレースケール画像(使用するICPアルゴリズムで不要な場合はnoArray())。BGR画像の場合はCV_8UC3またはCV_8C4、グレースケールの場合はCV_8UC1であること。BGRの場合は自動的にグレースケール画像に変換される。mask- ユーザーが提供する有効ピクセルのマスク。CV_8UC1であることnormals- ユーザーが提供する深度表面への法線。CV_32FC4であること
-
OdometryFrame
public OdometryFrame​(Mat depth, Mat image, Mat mask)
Construct a new OdometryFrame object. All non-empty images should have the same size.- 引数:
depth- 深度画像。CV_8UC1であることimage- BGRまたはグレースケール画像(使用するICPアルゴリズムで不要な場合はnoArray())。BGR画像の場合はCV_8UC3またはCV_8C4、グレースケールの場合はCV_8UC1であること。BGRの場合は自動的にグレースケール画像に変換される。mask- ユーザーが提供する有効ピクセルのマスク。CV_8UC1であること
-
OdometryFrame
public OdometryFrame​(Mat depth, Mat image)
Construct a new OdometryFrame object. All non-empty images should have the same size.- 引数:
depth- 深度画像。CV_8UC1であることimage- BGRまたはグレースケール画像(使用するICPアルゴリズムで不要な場合はnoArray())。BGR画像の場合はCV_8UC3またはCV_8C4、グレースケールの場合はCV_8UC1であること。BGRの場合は自動的にグレースケール画像に変換される。
-
OdometryFrame
public OdometryFrame​(Mat depth)
Construct a new OdometryFrame object. All non-empty images should have the same size.- 引数:
depth- 深度画像。CV_8UC1であること。BGR画像の場合はCV_8UC3またはCV_8C4、グレースケールの場合はCV_8UC1であること。BGRの場合は自動的にグレースケール画像に変換される。
-
OdometryFrame
public OdometryFrame()
Construct a new OdometryFrame object. All non-empty images should have the same size. Should be CV_8UC3 or CV_8C4 if it's BGR image or CV_8UC1 if it's grayscale. If it's BGR then it's converted to grayscale image automatically.
-
-
メソッドの詳細
-
getNativeObjAddr
public long getNativeObjAddr()
-
__fromPtr__
public static OdometryFrame __fromPtr__​(long addr)
-
getImage
public void getImage​(Mat image)
Get the original user-provided BGR/Gray image- 引数:
image- 出力画像
-
getGrayImage
public void getGrayImage​(Mat image)
Get the gray image generated from the user-provided BGR/Gray image- 引数:
image- 出力画像
-
getDepth
public void getDepth​(Mat depth)
Get the original user-provided depth image- 引数:
depth- 出力画像
-
getProcessedDepth
public void getProcessedDepth​(Mat depth)
Get the depth image generated from the user-provided one after conversion, rescale or filtering for ICP algorithm needs- 引数:
depth- 出力画像
-
getMask
public void getMask​(Mat mask)
Get the valid pixels mask generated for the ICP calculations intersected with the user-provided mask- 引数:
mask- 出力画像
-
getNormals
public void getNormals​(Mat normals)
Get the normals image either generated for the ICP calculations or user-provided- 引数:
normals- 出力画像
-
getPyramidLevels
public int getPyramidLevels()
Get the amount of levels in pyramids (all of them if not empty should have the same number of levels) or 0 if no pyramids were prepared yet- 戻り値:
- 自動生成
-
getPyramidAt
public void getPyramidAt​(Mat img, int pyrType, long level)
Get the image generated for the ICP calculations from one of the pyramids specified by pyrType. Returns empty image if the pyramid is empty or there's no such pyramid level- 引数:
img- 出力画像pyrType- ピラミッドの型level- ピラミッド内のレベル
-
-