コード例 #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;
 }
コード例 #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);
        }
コード例 #3
0
        /// <summary>
        /// Create Bilateral TV-L1 Super Resolution.
        /// </summary>
        /// <returns></returns>
        public static SuperResolution CreateBTVL1_OCL()
        {
            IntPtr ptr = NativeMethods.superres_createSuperResolution_BTVL1_OCL();

            return(SuperResolutionImpl.FromPtr(ptr));
        }