Class Board

  • Direct Known Subclasses:
    CharucoBoard, GridBoard

    public class Board
    extends java.lang.Object
    Board of 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.
    • Field Detail

      • nativeObj

        protected final long nativeObj
    • Constructor Detail

      • Board

        protected Board​(long addr)
      • Board

        public Board()
    • Method Detail

      • getNativeObjAddr

        public long getNativeObjAddr()
      • __fromPtr__

        public static Board __fromPtr__​(long addr)
      • create

        public static Board create​(java.util.List<Mat> objPoints,
                                   Dictionary dictionary,
                                   Mat ids)
        Provide way to create Board by passing necessary data. Specially needed in Python.
        Parameters:
        objPoints - array of object points of all the marker corners in the board
        dictionary - the dictionary of markers employed for this board
        ids - vector of the identifiers of the markers in the board
        Returns:
        automatically generated
      • setIds

        public void setIds​(Mat ids)
        Set ids vector
        Parameters:
        ids - vector of the identifiers of the markers in the board (should be the same size as objPoints) Recommended way to set ids vector, which will fail if the size of ids does not match size of objPoints.
      • changeId

        public void changeId​(int index,
                             int newId)
        change id for ids[index]
        Parameters:
        index - - element index in ids
        newId - - new value for ids[index], should be less than Dictionary size
      • getIds

        public MatOfInt getIds()
        return ids
        Returns:
        automatically generated
      • setDictionary

        public void setDictionary​(Dictionary dictionary)
        set dictionary
        Parameters:
        dictionary - automatically generated
      • getDictionary

        public Dictionary getDictionary()
        return dictionary
        Returns:
        automatically generated
      • setObjPoints

        public void setObjPoints​(java.util.List<MatOfPoint3f> objPoints)
        set objPoints
        Parameters:
        objPoints - automatically generated
      • getObjPoints

        public java.util.List<MatOfPoint3f> getObjPoints()
        get objPoints
        Returns:
        automatically generated
      • getRightBottomBorder

        public Point3 getRightBottomBorder()
        get rightBottomBorder
        Returns:
        automatically generated
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable