Exemple #1
0
        //
        // C++: static Ptr_Board cv::aruco::Board::create(vector_Mat objPoints, Ptr_Dictionary dictionary, Mat ids)
        //

        /**
         * Provide way to create Board by passing necessary data. Specially needed in Python.
         *
         * param objPoints array of object points of all the marker corners in the board
         * param dictionary the dictionary of markers employed for this board
         * param ids vector of the identifiers of the markers in the board
         *
         * return automatically generated
         */
        public static Board create(List <Mat> objPoints, Dictionary dictionary, Mat ids)
        {
            if (dictionary != null)
            {
                dictionary.ThrowIfDisposed();
            }
            if (ids != null)
            {
                ids.ThrowIfDisposed();
            }
            Mat objPoints_mat = Converters.vector_Mat_to_Mat(objPoints);

            return(Board.__fromPtr__(aruco_Board_create_10(objPoints_mat.nativeObj, dictionary.getNativeObjAddr(), ids.nativeObj)));
        }
        //
        // C++: static Ptr_CharucoBoard cv::aruco::CharucoBoard::create(int squaresX, int squaresY, float squareLength, float markerLength, Ptr_Dictionary dictionary)
        //

        /**
         * Create a CharucoBoard object
         *
         * param squaresX number of chessboard squares in X direction
         * param squaresY number of chessboard squares in Y direction
         * param squareLength chessboard square side length (normally in meters)
         * param markerLength marker side length (same unit than squareLength)
         * param dictionary dictionary of markers indicating the type of markers.
         * The first markers in the dictionary are used to fill the white chessboard squares.
         * return the output CharucoBoard object
         *
         * This functions creates a CharucoBoard object given the number of squares in each direction
         * and the size of the markers and chessboard squares.
         */
        public static CharucoBoard create(int squaresX, int squaresY, float squareLength, float markerLength, Dictionary dictionary)
        {
            if (dictionary != null) dictionary.ThrowIfDisposed();

            return CharucoBoard.__fromPtr__(aruco_CharucoBoard_create_10(squaresX, squaresY, squareLength, markerLength, dictionary.getNativeObjAddr()));


        }
Exemple #3
0
        /**
         * Create a GridBoard object
         *
         * param markersX number of markers in X direction
         * param markersY number of markers in Y direction
         * param markerLength marker side length (normally in meters)
         * param markerSeparation separation between two markers (same unit as markerLength)
         * param dictionary dictionary of markers indicating the type of markers
         * return the output GridBoard object
         *
         * This functions creates a GridBoard object given the number of markers in each direction and
         * the marker size and marker separation.
         */
        public static GridBoard create(int markersX, int markersY, float markerLength, float markerSeparation, Dictionary dictionary)
        {
            if (dictionary != null)
            {
                dictionary.ThrowIfDisposed();
            }

            return(GridBoard.__fromPtr__(aruco_GridBoard_create_11(markersX, markersY, markerLength, markerSeparation, dictionary.getNativeObjAddr())));
        }
Exemple #4
0
        //
        // C++: static Ptr_CharucoBoard cv::aruco::CharucoBoard::create(int squaresX, int squaresY, float squareLength, float markerLength, Ptr_Dictionary dictionary)
        //

        //javadoc: CharucoBoard::create(squaresX, squaresY, squareLength, markerLength, dictionary)
        public static CharucoBoard create(int squaresX, int squaresY, float squareLength, float markerLength, Dictionary dictionary)
        {
            if (dictionary != null)
            {
                dictionary.ThrowIfDisposed();
            }
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            CharucoBoard retVal = CharucoBoard.__fromPtr__(aruco_CharucoBoard_create_10(squaresX, squaresY, squareLength, markerLength, dictionary.getNativeObjAddr()));

            return(retVal);
#else
            return(null);
#endif
        }
Exemple #5
0
        //
        // C++: static Ptr_Dictionary cv::aruco::Dictionary::create(int nMarkers, int markerSize, Ptr_Dictionary baseDictionary, int randomSeed = 0)
        //

        //javadoc: Dictionary::create_from(nMarkers, markerSize, baseDictionary, randomSeed)
        public static Dictionary create_from(int nMarkers, int markerSize, Dictionary baseDictionary, int randomSeed)
        {
            if (baseDictionary != null)
            {
                baseDictionary.ThrowIfDisposed();
            }
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            Dictionary retVal = Dictionary.__fromPtr__(aruco_Dictionary_create_1from_10(nMarkers, markerSize, baseDictionary.getNativeObjAddr(), randomSeed));

            return(retVal);
#else
            return(null);
#endif
        }
Exemple #6
0
        //
        // C++: static Ptr_Board cv::aruco::Board::create(vector_Mat objPoints, Ptr_Dictionary dictionary, Mat ids)
        //

        //javadoc: Board::create(objPoints, dictionary, ids)
        public static Board create(List <Mat> objPoints, Dictionary dictionary, Mat ids)
        {
            if (dictionary != null)
            {
                dictionary.ThrowIfDisposed();
            }
            if (ids != null)
            {
                ids.ThrowIfDisposed();
            }
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            Mat   objPoints_mat = Converters.vector_Mat_to_Mat(objPoints);
            Board retVal        = Board.__fromPtr__(aruco_Board_create_10(objPoints_mat.nativeObj, dictionary.getNativeObjAddr(), ids.nativeObj));

            return(retVal);
#else
            return(null);
#endif
        }
        /**
         * SEE: generateCustomDictionary
         * param nMarkers automatically generated
         * param markerSize automatically generated
         * param baseDictionary automatically generated
         * return automatically generated
         */
        public static Dictionary create_from(int nMarkers, int markerSize, Dictionary baseDictionary)
        {
            if (baseDictionary != null)
            {
                baseDictionary.ThrowIfDisposed();
            }

            return(Dictionary.__fromPtr__(aruco_Dictionary_create_1from_11(nMarkers, markerSize, baseDictionary.getNativeObjAddr())));
        }
Exemple #8
0
        //javadoc: GridBoard::create(markersX, markersY, markerLength, markerSeparation, dictionary)
        public static GridBoard create(int markersX, int markersY, float markerLength, float markerSeparation, Dictionary dictionary)
        {
            if (dictionary != null)
            {
                dictionary.ThrowIfDisposed();
            }
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            GridBoard retVal = GridBoard.__fromPtr__(aruco_GridBoard_create_11(markersX, markersY, markerLength, markerSeparation, dictionary.getNativeObjAddr()));

            return(retVal);
#else
            return(null);
#endif
        }