FromPtr() static private method

Creates instance from cv::Ptr<T> . ptr is disposed when the wrapper disposes.
static private FromPtr ( IntPtr ptr ) : SuperResolutionImpl
ptr System.IntPtr
return SuperResolutionImpl
示例#1
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));
 }
示例#2
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));
        }