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

クラス CharucoBoard


  • public class CharucoBoard extends Board
    ChArUcoボードは、チェスボードの白いマスの内側にマーカーを配置した平面チェスボードである。ChArUcoボードの利点は、ArUcoマーカーの汎用性と、キャリブレーションや姿勢推定に重要なチェスボードコーナーの精度の両方を提供できる点である。ボード画像はgenerateImage()メソッドで描画できる。
    • コンストラクタの詳細

      • CharucoBoard

        protected CharucoBoard​(long addr)
      • CharucoBoard

        public CharucoBoard​(Size size,
                            float squareLength,
                            float markerLength,
                            Dictionary dictionary,
                            Mat ids)
        CharucoBoard constructor
        引数:
        size - x方向およびy方向のチェスボードのマスの数
        squareLength - チェスボードの1マスの一辺の長さ(通常はメートル単位)
        markerLength - マーカーの一辺の長さ(squareLengthと同じ単位)
        dictionary - マーカーの種類を示すマーカー辞書
        ids - 使用するマーカーのidの配列。辞書内の先頭のマーカーがチェスボードの白いマスを埋めるために使われる。
      • CharucoBoard

        public CharucoBoard​(Size size,
                            float squareLength,
                            float markerLength,
                            Dictionary dictionary)
        CharucoBoard constructor
        引数:
        size - x方向およびy方向のチェスボードのマスの数
        squareLength - チェスボードの1マスの一辺の長さ(通常はメートル単位)
        markerLength - マーカーの一辺の長さ(squareLengthと同じ単位)
        dictionary - マーカーの種類を示すマーカー辞書。辞書内の先頭のマーカーがチェスボードの白いマスを埋めるために使われる。
    • メソッドの詳細

      • __fromPtr__

        public static CharucoBoard __fromPtr__​(long addr)
      • setLegacyPattern

        public void setLegacyPattern​(boolean legacyPattern)
        set legacy chessboard pattern. Legacy setting creates chessboard patterns starting with a white box in the upper left corner if there is an even row count of chessboard boxes, otherwise it starts with a black box. This setting ensures compatibility to patterns created with OpenCV versions prior OpenCV 4.6.0. See https://github.com/opencv/opencv/issues/23152. Default value: false.
        引数:
        legacyPattern - 自動生成
      • getLegacyPattern

        public boolean getLegacyPattern()
      • getChessboardSize

        public Size getChessboardSize()
      • getSquareLength

        public float getSquareLength()
      • getMarkerLength

        public float getMarkerLength()
      • getChessboardCorners

        public MatOfPoint3f getChessboardCorners()
        get CharucoBoard::chessboardCorners
        戻り値:
        自動生成
      • checkCharucoCornersCollinear

        public boolean checkCharucoCornersCollinear​(Mat charucoIds)
        check whether the ChArUco markers are collinear
        引数:
        charucoIds - フレームごとのcharucoCorners内の各コーナーの識別子のリスト。
        戻り値:
        bool値。検出されたコーナーが直線を成す場合は1(true)、成さない場合は0(false)。コーナーが共線(true)の場合、solvePnPやキャリブレーション関数は失敗する。charucoIDsのidの数は、ボード内のチェスボードコーナーの数以下であるべきである。この関数は、charucoコーナーが直線上にあるかどうか(直線上にあればtrueを返す)を確認する。軸に平行な直線だけでなく、対角線やその他の直線も検出される。縮退ケース: charucoIDsの数が2以下の場合、この関数はtrueを返す。