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

            return(obj);
        }