void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SVM)) { LogError("owner is not initialized. Add Action \"newSVM\"."); return; } OpenCVForUnity.MlModule.SVM wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SVM, OpenCVForUnity.MlModule.SVM>(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.SVM)) { LogError("owner is not initialized. Add Action \"newSVM\"."); return; } OpenCVForUnity.MlModule.SVM wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SVM, OpenCVForUnity.MlModule.SVM>(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); }