class for defined Super Resolution algorithm.
Inheritance: OpenCvSharp.SuperResolution
 /// <summary>
 /// Creates instance from raw pointer T*
 /// </summary>
 /// <param name="ptr"></param>
 internal static SuperResolutionImpl FromRawPtr(IntPtr ptr)
 {
     if (ptr == IntPtr.Zero)
         throw new OpenCvSharpException("Invalid FrameSource pointer");
     var obj = new SuperResolutionImpl
     {
         detectorPtr = null,
         ptr = ptr
     };
     return obj;
 }
Beispiel #2
0
        /// <summary>
        /// Creates instance from raw pointer T*
        /// </summary>
        /// <param name="ptr"></param>
        internal static SuperResolutionImpl FromRawPtr(IntPtr ptr)
        {
            if (ptr == IntPtr.Zero)
            {
                throw new OpenCvSharpException("Invalid FrameSource pointer");
            }
            var obj = new SuperResolutionImpl
            {
                detectorPtr = null,
                ptr         = ptr
            };

            return(obj);
        }
 /// <summary>
 /// Create Bilateral TV-L1 Super Resolution.
 /// </summary>
 /// <returns></returns>
 public static SuperResolution CreateBTVL1_CUDA()
 {
     NativeMethods.HandleException(
         NativeMethods.superres_createSuperResolution_BTVL1_CUDA(out var ptr));
     return(SuperResolutionImpl.FromPtr(ptr));
 }
Beispiel #4
0
        /// <summary>
        /// Create Bilateral TV-L1 Super Resolution.
        /// </summary>
        /// <returns></returns>
        public static SuperResolution CreateBTVL1_CUDA()
        {
            IntPtr ptr = NativeMethods.superres_createSuperResolution_BTVL1_CUDA();

            return(SuperResolutionImpl.FromPtr(ptr));
        }