void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.ORB)) { LogError("owner is not initialized. Add Action \"newORB\"."); return; } OpenCVForUnity.Features2dModule.ORB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.ORB, OpenCVForUnity.Features2dModule.ORB>(owner); wrapped_owner.setScaleFactor((float)scaleFactor.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.ORB)) { LogError("owner is not initialized. Add Action \"newORB\"."); return; } OpenCVForUnity.Features2dModule.ORB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.ORB, OpenCVForUnity.Features2dModule.ORB>(owner); if (!(scaleFactor.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("scaleFactor is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_scaleFactor = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(scaleFactor); wrapped_owner.setScaleFactor(wrapped_scaleFactor); }