// // 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 }
// // 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 }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SVMSGD)) { LogError("owner is not initialized. Add Action \"newSVMSGD\"."); return; } OpenCVForUnity.MlModule.SVMSGD wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SVMSGD, OpenCVForUnity.MlModule.SVMSGD>(owner); wrapped_owner.setStepDecreasingPower(stepDecreasingPower.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SVMSGD)) { LogError("owner is not initialized. Add Action \"newSVMSGD\"."); return; } OpenCVForUnity.MlModule.SVMSGD wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SVMSGD, OpenCVForUnity.MlModule.SVMSGD>(owner); storeResult.Value = wrapped_owner.getShift(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SVMSGD)) { LogError("owner is not initialized. Add Action \"newSVMSGD\"."); return; } OpenCVForUnity.MlModule.SVMSGD wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SVMSGD, OpenCVForUnity.MlModule.SVMSGD>(owner); wrapped_owner.setTermCriteria(new OpenCVForUnity.CoreModule.TermCriteria((int)val_type.Value, (int)val_maxCount.Value, (double)val_epsilon.Value)); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SVMSGD)) { LogError("owner is not initialized. Add Action \"newSVMSGD\"."); return; } OpenCVForUnity.MlModule.SVMSGD wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SVMSGD, OpenCVForUnity.MlModule.SVMSGD>(owner); wrapped_owner.setOptimalParameters(svmsgdType.Value, marginType.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SVMSGD)) { LogError("owner is not initialized. Add Action \"newSVMSGD\"."); return; } OpenCVForUnity.MlModule.SVMSGD wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SVMSGD, OpenCVForUnity.MlModule.SVMSGD>(owner); if (!(val.Value is OpenCVForUnityPlayMakerActions.TermCriteria)) { LogError("val is not initialized. Add Action \"newTermCriteria\"."); return; } OpenCVForUnity.CoreModule.TermCriteria wrapped_val = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.TermCriteria, OpenCVForUnity.CoreModule.TermCriteria>(val); wrapped_owner.setTermCriteria(wrapped_val); }
public SVMSGD(OpenCVForUnity.MlModule.SVMSGD nativeObj) : base(nativeObj) { }
// // 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())); }
/** * 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))); }
// // 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))); }