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 (!(alpha.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("alpha is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_alpha = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(alpha); if (!(svidx.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("svidx is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_svidx = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(svidx); storeResult.Value = (float)wrapped_owner.getDecisionFunction(i.Value, wrapped_alpha, wrapped_svidx); }