void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GraphSegmentation)) { LogError("owner is not initialized. Add Action \"newGraphSegmentation\"."); return; } OpenCVForUnity.XimgprocModule.GraphSegmentation wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GraphSegmentation, OpenCVForUnity.XimgprocModule.GraphSegmentation>(owner); wrapped_owner.setSigma((float)sigma.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GraphSegmentation)) { LogError("owner is not initialized. Add Action \"newGraphSegmentation\"."); return; } OpenCVForUnity.XimgprocModule.GraphSegmentation wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GraphSegmentation, OpenCVForUnity.XimgprocModule.GraphSegmentation>(owner); if (!(sigma.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("sigma is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_sigma = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(sigma); wrapped_owner.setSigma(wrapped_sigma); }