void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GFTTDetector)) { LogError("owner is not initialized. Add Action \"newGFTTDetector\"."); return; } OpenCVForUnity.Features2dModule.GFTTDetector wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GFTTDetector, OpenCVForUnity.Features2dModule.GFTTDetector>(owner); wrapped_owner.setQualityLevel((float)qlevel.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GFTTDetector)) { LogError("owner is not initialized. Add Action \"newGFTTDetector\"."); return; } OpenCVForUnity.Features2dModule.GFTTDetector wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GFTTDetector, OpenCVForUnity.Features2dModule.GFTTDetector>(owner); if (!(qlevel.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("qlevel is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_qlevel = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(qlevel); wrapped_owner.setQualityLevel(wrapped_qlevel); }