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

            if (!(frame.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("frame is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_frame = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(frame);

            if (!(gtMask.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("gtMask is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_gtMask = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(gtMask);

            wrapped_owner.getNextFrame(wrapped_frame, wrapped_gtMask);
        }
Пример #2
0
        //javadoc: createSyntheticSequenceGenerator(background, _object)
        public static SyntheticSequenceGenerator createSyntheticSequenceGenerator(Mat background, Mat _object)
        {
            if (background != null)
            {
                background.ThrowIfDisposed();
            }
            if (_object != null)
            {
                _object.ThrowIfDisposed();
            }
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            SyntheticSequenceGenerator retVal = SyntheticSequenceGenerator.__fromPtr__(bgsegm_Bgsegm_createSyntheticSequenceGenerator_14(background.nativeObj, _object.nativeObj));

            return(retVal);
#else
            return(null);
#endif
        }
Пример #3
0
 public SyntheticSequenceGenerator(OpenCVForUnity.BgsegmModule.SyntheticSequenceGenerator nativeObj) : base(nativeObj)
 {
 }