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