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

クラス Board

  • 既知の直接サブクラス:
    CharucoBoard, GridBoard

    public class Board
    extends java.lang.Object
    Board of ArUco markers A board is a set of markers in the 3D space with a common coordinate system. The common form of a board of marker is a planar (2D) board, however any 3D layout can be used. A Board object is composed by: - The object points of the marker corners, i.e. their coordinates respect to the board system. - The dictionary which indicates the type of markers of the board - The identifier of all the markers in the board.
    • フィールドの要約

      フィールド
      Modifier and Type Field Description
      protected long nativeObj  
    • コンストラクタの要約

      コンストラクタ
      Modifier Constructor Description
      protected Board​(long addr)  
        Board​(java.util.List<Mat> objPoints, Dictionary dictionary, Mat ids)
      Common Board constructor
    • フィールドの詳細

      • nativeObj

        protected final long nativeObj
    • コンストラクタの詳細

      • Board

        protected Board​(long addr)
      • Board

        public Board​(java.util.List<Mat> objPoints,
                     Dictionary dictionary,
                     Mat ids)
        Common Board constructor
        引数:
        objPoints - ボード内のすべてのマーカーコーナーのオブジェクト点の配列
        dictionary - このボードで使用するマーカーの辞書
        ids - ボード内のマーカーの識別子のベクトル
    • メソッドの詳細

      • getNativeObjAddr

        public long getNativeObjAddr()
      • __fromPtr__

        public static Board __fromPtr__​(long addr)
      • getDictionary

        public Dictionary getDictionary()
        return the Dictionary of markers employed for this board
        戻り値:
        自動生成
      • getObjPoints

        public java.util.List<MatOfPoint3f> getObjPoints()
        return array of object points of all the marker corners in the board. Each marker include its 4 corners in this order: - objPoints[i][0] - left-top point of i-th marker - objPoints[i][1] - right-top point of i-th marker - objPoints[i][2] - right-bottom point of i-th marker - objPoints[i][3] - left-bottom point of i-th marker Markers are placed in a certain order - row by row, left to right in every row. For M markers, the size is Mx4.
        戻り値:
        自動生成
      • getIds

        public MatOfInt getIds()
        vector of the identifiers of the markers in the board (should be the same size as objPoints)
        戻り値:
        マーカーの識別子のベクトル
      • getRightBottomCorner

        public Point3 getRightBottomCorner()
        get coordinate of the bottom right corner of the board, is set when calling the function create()
        戻り値:
        自動生成
      • matchImagePoints

        public void matchImagePoints​(java.util.List<Mat> detectedCorners,
                                     Mat detectedIds,
                                     Mat objPoints,
                                     Mat imgPoints)
        Given a board configuration and a set of detected markers, returns the corresponding image points and object points, can be used in solvePnP()
        引数:
        detectedCorners - ボードで検出されたマーカーコーナーのリスト。cv::Boardおよびcv::GridBoardの場合、このメソッドはArucoマーカーコーナーを含むstd::vector<std::vector<Point2f>>またはstd::vector<Mat>を期待する。cv::CharucoBoardの場合、このメソッドはChArucoコーナー(Arucoマーカーと対応付けられたチェスボードコーナー)を含むstd::vector<Point2f>またはMatを期待する。
        detectedIds - 各マーカーまたはcharucoコーナーの識別子のリスト。いずれのBoardクラスの場合も、このメソッドはstd::vector<int>またはMatを期待する。
        objPoints - ボード座標系におけるマーカー点のベクトル。いずれのBoardクラスの場合も、このメソッドはstd::vector<cv::Point3f> objectPointsまたはcv::Matを期待する。
        imgPoints - 画像座標系におけるマーカー点のベクトル。いずれのBoardクラスの場合も、このメソッドはstd::vector<cv::Point2f> objectPointsまたはcv::Matを期待する。 参照: solvePnP
      • generateImage

        public void generateImage​(Size outSize,
                                  Mat img,
                                  int marginSize,
                                  int borderBits)
        Draw a planar board
        引数:
        outSize - 出力画像のサイズ(ピクセル単位)。
        img - ボードを描画した出力画像。この画像のサイズはoutSizeになり、ボードの比率を保ったまま中央に配置される。
        marginSize - 出力画像におけるボードの最小マージン(ピクセル単位)
        borderBits - マーカーの境界の幅。この関数は印刷可能な状態のボード画像を返す。
      • generateImage

        public void generateImage​(Size outSize,
                                  Mat img,
                                  int marginSize)
        Draw a planar board
        引数:
        outSize - 出力画像のサイズ(ピクセル単位)。
        img - ボードを描画した出力画像。この画像のサイズはoutSizeになり、ボードの比率を保ったまま中央に配置される。
        marginSize - 出力画像におけるボードの最小マージン(ピクセル単位)。この関数は印刷可能な状態のボード画像を返す。
      • generateImage

        public void generateImage​(Size outSize,
                                  Mat img)
        Draw a planar board
        引数:
        outSize - 出力画像のサイズ(ピクセル単位)。
        img - ボードを描画した出力画像。この画像のサイズはoutSizeになり、ボードの比率を保ったまま中央に配置される。この関数は印刷可能な状態のボード画像を返す。