void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GeneralizedHough)) { LogError("owner is not initialized. Add Action \"newGeneralizedHough\"."); return; } OpenCVForUnity.ImgprocModule.GeneralizedHough wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GeneralizedHough, OpenCVForUnity.ImgprocModule.GeneralizedHough>(owner); wrapped_owner.setDp((float)dp.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GeneralizedHough)) { LogError("owner is not initialized. Add Action \"newGeneralizedHough\"."); return; } OpenCVForUnity.ImgprocModule.GeneralizedHough wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GeneralizedHough, OpenCVForUnity.ImgprocModule.GeneralizedHough>(owner); if (!(dp.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("dp is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_dp = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(dp); wrapped_owner.setDp(wrapped_dp); }