예제 #1
0
        //
        // 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()));


        }
예제 #2
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
        }