class for defined Super Resolution algorithm.
Inheritance: OpenCvSharp.SuperResolution
Exemplo n.º 1
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;
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 /// <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));
 }
Exemplo n.º 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));
        }