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); 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); }