Exemplo n.º 1
0
        /// <summary>
        /// Creates instance from cv::Ptr&lt;T&gt; .
        /// ptr is disposed when the wrapper disposes.
        /// </summary>
        /// <param name="ptr"></param>
        internal static SuperResolution FromPtr(IntPtr ptr)
        {
            if (ptr == IntPtr.Zero)
            {
                throw new OpenCvSharpException("Invalid FrameSource pointer");
            }

            var ptrObj = new Ptr(ptr);
            var obj    = new SuperResolution
            {
                detectorPtr = ptrObj,
                ptr         = ptrObj.Get()
            };

            return(obj);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Create Bilateral TV-L1 Super Resolution.
 /// </summary>
 /// <returns></returns>
 public static SuperResolution CreateSuperResolution_BTVL1_CUDA()
 {
     return(SuperResolution.CreateBTVL1_CUDA());
 }