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.setK((float)k.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 (!(k.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("k is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_k = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(k); wrapped_owner.setK(wrapped_k); }