Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="staleThresh"></param>
        /// <param name="roi"></param>
        /// <param name="mask"></param>
#else
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="staleThresh"></param>
        /// <param name="roi"></param>
        /// <param name="mask"></param>
#endif
        public static void BGCodeBookClearStale(CvBGCodeBookModel model, int staleThresh, CvRect roi, CvArr mask)
        {
            if (model == null)
            {
                throw new ArgumentNullException(nameof(model));
            }

            NativeMethods.cvBGCodeBookClearStale(model.CvPtr, staleThresh, roi, ToPtr(mask));
            KeepAlive(model, mask);
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="staleThresh"></param>
        /// <param name="roi"></param>
        /// <param name="mask"></param>
#else
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="staleThresh"></param>
        /// <param name="roi"></param>
        /// <param name="mask"></param>
#endif
        public static void BGCodeBookClearStale(CvBGCodeBookModel model, int staleThresh, CvRect roi, CvArr mask)
        {
            if (model == null)
            {
                throw new ArgumentNullException("model");
            }

            IntPtr maskPtr = ToPtr(mask);

            NativeMethods.cvBGCodeBookClearStale(model.CvPtr, staleThresh, roi, maskPtr);
        }
Пример #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="roi"></param>
        /// <param name="mask"></param>
#else
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="roi"></param>
        /// <param name="mask"></param>
#endif
        public static void BGCodeBookUpdate(CvBGCodeBookModel model, CvArr image, CvRect roi, CvArr mask)
        {
            if (model == null)
            {
                throw new ArgumentNullException(nameof(model));
            }
            if (image == null)
            {
                throw new ArgumentNullException(nameof(image));
            }

            NativeMethods.cvBGCodeBookUpdate(model.CvPtr, image.CvPtr, roi, ToPtr(mask));
            KeepAlive(model, image, mask);
        }
Пример #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="roi"></param>
        /// <param name="mask"></param>
#else
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="roi"></param>
        /// <param name="mask"></param>
#endif
        public static void BGCodeBookUpdate(CvBGCodeBookModel model, CvArr image, CvRect roi, CvArr mask)
        {
            if (model == null)
            {
                throw new ArgumentNullException("model");
            }
            if (image == null)
            {
                throw new ArgumentNullException("image");
            }

            IntPtr maskPtr = ToPtr(mask);

            NativeMethods.cvBGCodeBookUpdate(model.CvPtr, image.CvPtr, roi, maskPtr);
        }
Пример #5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="fgmask"></param>
        /// <param name="roi"></param>
        /// <returns></returns>
#else
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="fgmask"></param>
        /// <param name="roi"></param>
        /// <returns></returns>
#endif
        public static int BGCodeBookDiff(CvBGCodeBookModel model, CvArr image, CvArr fgmask, CvRect roi)
        {
            if (model == null)
            {
                throw new ArgumentNullException("model");
            }
            if (image == null)
            {
                throw new ArgumentNullException("image");
            }
            if (fgmask == null)
            {
                throw new ArgumentNullException("fgmask");
            }

            return(NativeMethods.cvBGCodeBookDiff(model.CvPtr, image.CvPtr, fgmask.CvPtr, roi));
        }
Пример #6
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="fgmask"></param>
        /// <param name="roi"></param>
        /// <returns></returns>
#else
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="fgmask"></param>
        /// <param name="roi"></param>
        /// <returns></returns>
#endif
        public static int BGCodeBookDiff(CvBGCodeBookModel model, CvArr image, CvArr fgmask, CvRect roi)
        {
            if (model == null)
            {
                throw new ArgumentNullException(nameof(model));
            }
            if (image == null)
            {
                throw new ArgumentNullException(nameof(image));
            }
            if (fgmask == null)
            {
                throw new ArgumentNullException(nameof(fgmask));
            }
            try
            {
                return(NativeMethods.cvBGCodeBookDiff(model.CvPtr, image.CvPtr, fgmask.CvPtr, roi));
            }
            finally
            {
                KeepAlive(model, image, fgmask);
            }
        }
Пример #7
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="roi"></param>
        /// <param name="mask"></param>
#else
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="roi"></param>
        /// <param name="mask"></param>
#endif
        public static void BGCodeBookUpdate(CvBGCodeBookModel model, CvArr image, CvRect roi, CvArr mask)
        {
            if (model == null)
                throw new ArgumentNullException("model");
            if (image == null)
                throw new ArgumentNullException("image");

            IntPtr maskPtr = ToPtr(mask);
            CvInvoke.cvBGCodeBookUpdate(model.CvPtr, image.CvPtr, roi, maskPtr);
        }
Пример #8
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="roi"></param>
#else
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="roi"></param>
#endif
        public static void BGCodeBookUpdate(CvBGCodeBookModel model, CvArr image, CvRect roi)
        {
            BGCodeBookUpdate(model, image, roi, null);
        }
Пример #9
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
#else
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
#endif
        public static void BGCodeBookUpdate(CvBGCodeBookModel model, CvArr image)
        {
            BGCodeBookUpdate(model, image, new CvRect(0, 0, 0, 0), null);
        }
Пример #10
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="fgmask"></param>
        /// <param name="roi"></param>
        /// <returns></returns>
#else
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="fgmask"></param>
        /// <param name="roi"></param>
        /// <returns></returns>
#endif
        public static int BGCodeBookDiff(CvBGCodeBookModel model, CvArr image, CvArr fgmask, CvRect roi)
        {
            if (model == null)
                throw new ArgumentNullException("model");
            if (image == null)
                throw new ArgumentNullException("image");
            if (fgmask == null)
                throw new ArgumentNullException("fgmask");

            return CvInvoke.cvBGCodeBookDiff(model.CvPtr, image.CvPtr, fgmask.CvPtr, roi);
        }
Пример #11
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="fgmask"></param>
        /// <returns></returns>
#else
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="fgmask"></param>
        /// <returns></returns>
#endif
        public static int BGCodeBookDiff(CvBGCodeBookModel model, CvArr image, CvArr fgmask)
        {
            return BGCodeBookDiff(model, image, fgmask, new CvRect(0, 0, 0, 0));
        }
Пример #12
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="staleThresh"></param>
        /// <param name="roi"></param>
        /// <param name="mask"></param>
#else
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="staleThresh"></param>
        /// <param name="roi"></param>
        /// <param name="mask"></param>
#endif
        public static void BGCodeBookClearStale(CvBGCodeBookModel model, int staleThresh, CvRect roi, CvArr mask)
        {
            if (model == null)
                throw new ArgumentNullException("model");

            IntPtr maskPtr = ToPtr(mask);
            CvInvoke.cvBGCodeBookClearStale(model.CvPtr, staleThresh, roi, maskPtr);
        }
Пример #13
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="staleThresh"></param>
        /// <param name="roi"></param>
#else
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="staleThresh"></param>
        /// <param name="roi"></param>
#endif
        public static void BGCodeBookClearStale(CvBGCodeBookModel model, int staleThresh, CvRect roi)
        {
            BGCodeBookClearStale(model, staleThresh, roi, null);
        }
Пример #14
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="staleThresh"></param>
#else
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="staleThresh"></param>
#endif
        public static void BGCodeBookClearStale(CvBGCodeBookModel model, int staleThresh)
        {
            BGCodeBookClearStale(model, staleThresh, new CvRect(0, 0, 0, 0), null);
        }
Пример #15
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="roi"></param>
#else
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="roi"></param>
#endif
        public static void BGCodeBookUpdate(CvBGCodeBookModel model, CvArr image, CvRect roi)
        {
            BGCodeBookUpdate(model, image, roi, null);
        }
Пример #16
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
#else
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
#endif
        public static void BGCodeBookUpdate(CvBGCodeBookModel model, CvArr image)
        {
            BGCodeBookUpdate(model, image, new CvRect(0, 0, 0, 0), null);
        }
Пример #17
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="fgmask"></param>
        /// <returns></returns>
#else
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="image"></param>
        /// <param name="fgmask"></param>
        /// <returns></returns>
#endif
        public static int BGCodeBookDiff(CvBGCodeBookModel model, CvArr image, CvArr fgmask)
        {
            return(BGCodeBookDiff(model, image, fgmask, new CvRect(0, 0, 0, 0)));
        }
Пример #18
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="staleThresh"></param>
        /// <param name="roi"></param>
#else
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="staleThresh"></param>
        /// <param name="roi"></param>
#endif
        public static void BGCodeBookClearStale(CvBGCodeBookModel model, int staleThresh, CvRect roi)
        {
            BGCodeBookClearStale(model, staleThresh, roi, null);
        }
Пример #19
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="staleThresh"></param>
#else
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <param name="staleThresh"></param>
#endif
        public static void BGCodeBookClearStale(CvBGCodeBookModel model, int staleThresh)
        {
            BGCodeBookClearStale(model, staleThresh, new CvRect(0, 0, 0, 0), null);
        }