/// <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> /// 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_OCL() { IntPtr ptr = NativeMethods.superres_createSuperResolution_BTVL1_OCL(); return(SuperResolutionImpl.FromPtr(ptr)); }