Пример #1
0
        //
        // C++: static Ptr_KNearest cv::ml::KNearest::create()
        //

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

            return(retVal);
#else
            return(null);
#endif
        }
Пример #2
0
        //
        // C++: static Ptr_KNearest cv::ml::KNearest::load(String filepath)
        //

        /**
         * Loads and creates a serialized knearest from a file
         *
         * Use KNearest::save to serialize and store an KNearest to disk.
         * Load the KNearest from this file again, by calling this function with the path to the file.
         *
         * param filepath path to serialized KNearest
         * return automatically generated
         */
        public static KNearest load(string filepath)
        {
            return(KNearest.__fromPtr__(ml_KNearest_load_10(filepath)));
        }
Пример #3
0
        //
        // C++: static Ptr_KNearest cv::ml::KNearest::create()
        //

        /**
         * Creates the empty model
         *
         *     The static method creates empty %KNearest classifier. It should be then trained using StatModel::train method.
         * return automatically generated
         */
        public static KNearest create()
        {
            return(KNearest.__fromPtr__(ml_KNearest_create_10()));
        }