Esempio n. 1
0
        //javadoc: createBackgroundSubtractorGMG(initializationFrames)
        public static BackgroundSubtractorGMG createBackgroundSubtractorGMG(int initializationFrames)
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            BackgroundSubtractorGMG retVal = BackgroundSubtractorGMG.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGMG_11(initializationFrames));

            return(retVal);
#else
            return(null);
#endif
        }
Esempio n. 2
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.BackgroundSubtractorGMG))
            {
                LogError("owner is not initialized. Add Action \"newBackgroundSubtractorGMG\".");
                return;
            }
            OpenCVForUnity.BgsegmModule.BackgroundSubtractorGMG wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BackgroundSubtractorGMG, OpenCVForUnity.BgsegmModule.BackgroundSubtractorGMG>(owner);

            wrapped_owner.setDecisionThreshold((float)thresh.Value);
        }
Esempio n. 3
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.BackgroundSubtractorGMG))
            {
                LogError("owner is not initialized. Add Action \"newBackgroundSubtractorGMG\".");
                return;
            }
            OpenCVForUnity.BgsegmModule.BackgroundSubtractorGMG wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BackgroundSubtractorGMG, OpenCVForUnity.BgsegmModule.BackgroundSubtractorGMG>(owner);

            storeResult.Value = wrapped_owner.getQuantizationLevels();
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.BackgroundSubtractorGMG))
            {
                LogError("owner is not initialized. Add Action \"newBackgroundSubtractorGMG\".");
                return;
            }
            OpenCVForUnity.BgsegmModule.BackgroundSubtractorGMG wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BackgroundSubtractorGMG, OpenCVForUnity.BgsegmModule.BackgroundSubtractorGMG>(owner);

            storeResult.Value = wrapped_owner.getUpdateBackgroundModel();

            Fsm.Event(storeResult.Value ? trueEvent : falseEvent);
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.BackgroundSubtractorGMG))
            {
                LogError("owner is not initialized. Add Action \"newBackgroundSubtractorGMG\".");
                return;
            }
            OpenCVForUnity.BgsegmModule.BackgroundSubtractorGMG wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BackgroundSubtractorGMG, OpenCVForUnity.BgsegmModule.BackgroundSubtractorGMG>(owner);

            if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Double))
            {
                storeResult.Value = new OpenCVForUnityPlayMakerActions.Double();
            }
            ((OpenCVForUnityPlayMakerActions.Double)storeResult.Value).wrappedObject = wrapped_owner.getMinVal();
        }
Esempio n. 6
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.BackgroundSubtractorGMG))
            {
                LogError("owner is not initialized. Add Action \"newBackgroundSubtractorGMG\".");
                return;
            }
            OpenCVForUnity.BgsegmModule.BackgroundSubtractorGMG wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BackgroundSubtractorGMG, OpenCVForUnity.BgsegmModule.BackgroundSubtractorGMG>(owner);

            if (!(lr.Value is OpenCVForUnityPlayMakerActions.Double))
            {
                LogError("lr is not initialized. Add Action \"newDouble\".");
                return;
            }
            System.Double wrapped_lr = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(lr);

            wrapped_owner.setDefaultLearningRate(wrapped_lr);
        }
Esempio n. 7
0
 public BackgroundSubtractorGMG(OpenCVForUnity.BgsegmModule.BackgroundSubtractorGMG nativeObj) : base(nativeObj)
 {
 }