void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BackgroundSubtractorMOG2)) { LogError("owner is not initialized. Add Action \"newBackgroundSubtractorMOG2\"."); return; } OpenCVForUnity.VideoModule.BackgroundSubtractorMOG2 wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BackgroundSubtractorMOG2, OpenCVForUnity.VideoModule.BackgroundSubtractorMOG2>(owner); wrapped_owner.setVarMax((float)varMax.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BackgroundSubtractorMOG2)) { LogError("owner is not initialized. Add Action \"newBackgroundSubtractorMOG2\"."); return; } OpenCVForUnity.VideoModule.BackgroundSubtractorMOG2 wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BackgroundSubtractorMOG2, OpenCVForUnity.VideoModule.BackgroundSubtractorMOG2>(owner); if (!(varMax.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("varMax is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_varMax = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(varMax); wrapped_owner.setVarMax(wrapped_varMax); }