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