Пример #1
0
        //
        // C++: static Ptr_DTrees cv::ml::DTrees::load(String filepath, String nodeName = String())
        //

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

            return(retVal);
#else
            return(null);
#endif
        }
Пример #2
0
        //
        // C++: static Ptr_DTrees cv::ml::DTrees::create()
        //

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

            return(retVal);
#else
            return(null);
#endif
        }
Пример #3
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.DTrees))
            {
                LogError("owner is not initialized. Add Action \"newDTrees\".");
                return;
            }
            OpenCVForUnity.MlModule.DTrees wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.DTrees, OpenCVForUnity.MlModule.DTrees>(owner);

            wrapped_owner.setUse1SERule(val.Value);
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.DTrees))
            {
                LogError("owner is not initialized. Add Action \"newDTrees\".");
                return;
            }
            OpenCVForUnity.MlModule.DTrees wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.DTrees, OpenCVForUnity.MlModule.DTrees>(owner);

            storeResult.Value = wrapped_owner.getMaxDepth();
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.DTrees))
            {
                LogError("owner is not initialized. Add Action \"newDTrees\".");
                return;
            }
            OpenCVForUnity.MlModule.DTrees wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.DTrees, OpenCVForUnity.MlModule.DTrees>(owner);

            storeResult.Value = wrapped_owner.getTruncatePrunedTree();

            Fsm.Event(storeResult.Value ? trueEvent : falseEvent);
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.DTrees))
            {
                LogError("owner is not initialized. Add Action \"newDTrees\".");
                return;
            }
            OpenCVForUnity.MlModule.DTrees wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.DTrees, OpenCVForUnity.MlModule.DTrees>(owner);

            if (!(val.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("val is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_val = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(val);

            wrapped_owner.setPriors(wrapped_val);
        }
Пример #7
0
 public DTrees(OpenCVForUnity.MlModule.DTrees nativeObj) : base(nativeObj)
 {
 }
Пример #8
0
        //
        // C++: static Ptr_DTrees cv::ml::DTrees::create()
        //

        /**
         * Creates the empty model
         *
         *     The static method creates empty decision tree with the specified parameters. It should be then
         *     trained using train method (see StatModel::train). Alternatively, you can load the model from
         *     file using Algorithm::load&lt;DTrees&gt;(filename).
         * return automatically generated
         */
        public static DTrees create()
        {
            return(DTrees.__fromPtr__(ml_DTrees_create_10()));
        }
Пример #9
0
 /**
  * Loads and creates a serialized DTrees from a file
  *
  * Use DTree::save to serialize and store an DTree to disk.
  * Load the DTree 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 DTree
  * return automatically generated
  */
 public static DTrees load(string filepath)
 {
     return(DTrees.__fromPtr__(ml_DTrees_load_11(filepath)));
 }
Пример #10
0
        //
        // C++: static Ptr_DTrees cv::ml::DTrees::load(String filepath, String nodeName = String())
        //

        /**
         * Loads and creates a serialized DTrees from a file
         *
         * Use DTree::save to serialize and store an DTree to disk.
         * Load the DTree 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 DTree
         * param nodeName name of node containing the classifier
         * return automatically generated
         */
        public static DTrees load(string filepath, string nodeName)
        {
            return(DTrees.__fromPtr__(ml_DTrees_load_10(filepath, nodeName)));
        }