void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.AKAZE)) { LogError("owner is not initialized. Add Action \"newAKAZE\"."); return; } OpenCVForUnity.Features2dModule.AKAZE wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.AKAZE, OpenCVForUnity.Features2dModule.AKAZE>(owner); wrapped_owner.setThreshold((float)threshold.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.AKAZE)) { LogError("owner is not initialized. Add Action \"newAKAZE\"."); return; } OpenCVForUnity.Features2dModule.AKAZE wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.AKAZE, OpenCVForUnity.Features2dModule.AKAZE>(owner); if (!(threshold.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("threshold is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_threshold = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(threshold); wrapped_owner.setThreshold(wrapped_threshold); }