🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。

クラス RgbdNormals


  • public class RgbdNormals extends java.lang.Object
    画像中の法線を計算できるオブジェクト。速度効率のためにデータをキャッシュできるオブジェクトとなっている。実装されている手法は次のいずれかである: - FALS (最速) と SRI (Fast and Accurate Computation of Surface Normals from Range Images by H. Badino, D. Huber, Y. Park and T. Kanade より) - depth画像へのバイラテラルフィルタリングによる法線 (Gradient Response Maps for Real-Time Detection of Texture-Less Objects by S. Hinterstoisser, C. Cagniart, S. Ilic, P. Sturm, N. Navab, P. Fua, and V. Lepetit より)
    • フィールドの詳細

      • nativeObj

        protected final long nativeObj
      • RGBD_NORMALS_METHOD_LINEMOD

        public static final int RGBD_NORMALS_METHOD_LINEMOD
        関連項目:
        定数フィールド値
      • RGBD_NORMALS_METHOD_CROSS_PRODUCT

        public static final int RGBD_NORMALS_METHOD_CROSS_PRODUCT
        関連項目:
        定数フィールド値
    • コンストラクタの詳細

      • RgbdNormals

        protected RgbdNormals​(long addr)
    • メソッドの詳細

      • getNativeObjAddr

        public long getNativeObjAddr()
      • __fromPtr__

        public static RgbdNormals __fromPtr__​(long addr)
      • create

        public static RgbdNormals create​(int rows,
                                         int cols,
                                         int depth,
                                         Mat K,
                                         int window_size,
                                         float diff_threshold,
                                         int method)
        Creates new RgbdNormals object
        引数:
        rows - 法線を計算する対象のdepth画像の行数
        cols - 法線を計算する対象のdepth画像の列数
        depth - 法線のビット深度 (CV_32F または CV_64F のみ)
        K - 使用するキャリブレーション行列
        window_size - 法線を計算するウィンドウサイズ: 1,3,5,7 のいずれかのみ指定可能
        diff_threshold - depthの差に対するしきい値。LINEMODアルゴリズムで使用される
        method - 使用する手法のいずれか: RGBD_NORMALS_METHOD_SRI, RGBD_NORMALS_METHOD_FALS
        戻り値:
        自動生成
      • create

        public static RgbdNormals create​(int rows,
                                         int cols,
                                         int depth,
                                         Mat K,
                                         int window_size,
                                         float diff_threshold)
        Creates new RgbdNormals object
        引数:
        rows - 法線を計算する対象のdepth画像の行数
        cols - 法線を計算する対象のdepth画像の列数
        depth - 法線のビット深度 (CV_32F または CV_64F のみ)
        K - 使用するキャリブレーション行列
        window_size - 法線を計算するウィンドウサイズ: 1,3,5,7 のいずれかのみ指定可能
        diff_threshold - depthの差に対するしきい値。LINEMODアルゴリズムで使用される
        戻り値:
        自動生成
      • create

        public static RgbdNormals create​(int rows,
                                         int cols,
                                         int depth,
                                         Mat K,
                                         int window_size)
        Creates new RgbdNormals object
        引数:
        rows - 法線を計算する対象のdepth画像の行数
        cols - 法線を計算する対象のdepth画像の列数
        depth - 法線のビット深度 (CV_32F または CV_64F のみ)
        K - 使用するキャリブレーション行列
        window_size - 法線を計算するウィンドウサイズ: 1,3,5,7 のいずれかのみ指定可能
        戻り値:
        自動生成
      • create

        public static RgbdNormals create​(int rows,
                                         int cols,
                                         int depth,
                                         Mat K)
        Creates new RgbdNormals object
        引数:
        rows - 法線を計算する対象のdepth画像の行数
        cols - 法線を計算する対象のdepth画像の列数
        depth - 法線のビット深度 (CV_32F または CV_64F のみ)
        K - 使用するキャリブレーション行列
        戻り値:
        自動生成
      • create

        public static RgbdNormals create​(int rows,
                                         int cols,
                                         int depth)
        Creates new RgbdNormals object
        引数:
        rows - 法線を計算する対象のdepth画像の行数
        cols - 法線を計算する対象のdepth画像の列数
        depth - 法線のビット深度 (CV_32F または CV_64F のみ)
        戻り値:
        自動生成
      • create

        public static RgbdNormals create​(int rows,
                                         int cols)
        Creates new RgbdNormals object
        引数:
        rows - 法線を計算する対象のdepth画像の行数
        cols - 法線を計算する対象のdepth画像の列数
        戻り値:
        自動生成
      • create

        public static RgbdNormals create​(int rows)
        Creates new RgbdNormals object
        引数:
        rows - 法線を計算する対象のdepth画像の行数
        戻り値:
        自動生成
      • create

        public static RgbdNormals create()
        Creates new RgbdNormals object
        戻り値:
        自動生成
      • apply

        public void apply​(Mat points,
                          Mat normals)
        Given a set of 3d points in a depth image, compute the normals at each point.
        引数:
        points - CV_32F/CV64F の rows x cols x 3 行列、または CV_U16S の rows x cols x 1 行列
        normals - rows x cols x 3 の行列
      • cache

        public void cache()
        Prepares cached data required for calculation If not called by user, called automatically at first calculation
      • getRows

        public int getRows()
      • setRows

        public void setRows​(int val)
      • getCols

        public int getCols()
      • setCols

        public void setCols​(int val)
      • getWindowSize

        public int getWindowSize()
      • setWindowSize

        public void setWindowSize​(int val)
      • getDepth

        public int getDepth()
      • getK

        public void getK​(Mat val)
      • setK

        public void setK​(Mat val)
      • getMethod

        public int getMethod()