Esempio n. 1
0
 /// <summary>
 /// Creates instance from raw T*
 /// </summary>
 /// <param name="ptr"></param>
 internal new static BackgroundSubtractorGMG FromRawPtr(IntPtr ptr)
 {
     if (ptr == IntPtr.Zero)
         throw new OpenCvSharpException("Invalid BackgroundSubtractorGMG pointer");
     var obj = new BackgroundSubtractorGMG(null, ptr);
     return obj;
 }
        /// <summary>
        /// Creates instance from raw T*
        /// </summary>
        /// <param name="ptr"></param>
        internal new static BackgroundSubtractorGMG FromRawPtr(IntPtr ptr)
        {
            if (ptr == IntPtr.Zero)
            {
                throw new OpenCvSharpException("Invalid BackgroundSubtractorGMG pointer");
            }
            var obj = new BackgroundSubtractorGMG(null, ptr);

            return(obj);
        }