Ejemplo n.º 1
0
        //
        // C++: static Ptr_SVMSGD cv::ml::SVMSGD::load(String filepath, String nodeName = String())
        //

        //javadoc: SVMSGD::load(filepath, nodeName)
        public static SVMSGD load(string filepath, string nodeName)
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            SVMSGD retVal = SVMSGD.__fromPtr__(ml_SVMSGD_load_10(filepath, nodeName));

            return(retVal);
#else
            return(null);
#endif
        }
Ejemplo n.º 2
0
        //
        // C++: static Ptr_SVMSGD cv::ml::SVMSGD::create()
        //

        //javadoc: SVMSGD::create()
        public static SVMSGD create()
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            SVMSGD retVal = SVMSGD.__fromPtr__(ml_SVMSGD_create_10());

            return(retVal);
#else
            return(null);
#endif
        }
Ejemplo n.º 3
0
 /**
  * Loads and creates a serialized SVMSGD from a file
  *
  * Use SVMSGD::save to serialize and store an SVMSGD to disk.
  * Load the SVMSGD from this file again, by calling this function with the path to the file.
  * Optionally specify the node for the file containing the classifier
  *
  * param filepath path to serialized SVMSGD
  * return automatically generated
  */
 public static SVMSGD load(string filepath)
 {
     return(SVMSGD.__fromPtr__(ml_SVMSGD_load_11(filepath)));
 }
Ejemplo n.º 4
0
        //
        // C++: static Ptr_SVMSGD cv::ml::SVMSGD::create()
        //

        /**
         * Creates empty model.
         * Use StatModel::train to train the model. Since %SVMSGD has several parameters, you may want to
         * find the best parameters for your problem or use setOptimalParameters() to set some default parameters.
         * return automatically generated
         */
        public static SVMSGD create()
        {
            return(SVMSGD.__fromPtr__(ml_SVMSGD_create_10()));
        }
Ejemplo n.º 5
0
        //
        // C++: static Ptr_SVMSGD cv::ml::SVMSGD::load(String filepath, String nodeName = String())
        //

        /**
         * Loads and creates a serialized SVMSGD from a file
         *
         * Use SVMSGD::save to serialize and store an SVMSGD to disk.
         * Load the SVMSGD from this file again, by calling this function with the path to the file.
         * Optionally specify the node for the file containing the classifier
         *
         * param filepath path to serialized SVMSGD
         * param nodeName name of node containing the classifier
         * return automatically generated
         */
        public static SVMSGD load(string filepath, string nodeName)
        {
            return(SVMSGD.__fromPtr__(ml_SVMSGD_load_10(filepath, nodeName)));
        }