public override IntPtr Get()
 {
     NativeMethods.HandleException(
         NativeMethods.bgsegm_Ptr_BackgroundSubtractorMOG_get(ptr, out var ret));
     GC.KeepAlive(this);
     return(ret);
 }
            public override IntPtr Get()
            {
                var res = NativeMethods.bgsegm_Ptr_BackgroundSubtractorMOG_get(ptr);

                GC.KeepAlive(this);
                return(res);
            }
 public override IntPtr Get()
 {
     return(NativeMethods.bgsegm_Ptr_BackgroundSubtractorMOG_get(ptr));
 }