/// <summary> /// Creates instance from raw pointer T* /// </summary> /// <param name="ptr"></param> internal static DenseOpticalFlowExtImpl FromRawPtr(IntPtr ptr) { if (ptr == IntPtr.Zero) throw new OpenCvSharpException("Invalid DenseOpticalFlowExt pointer"); var obj = new DenseOpticalFlowExtImpl { detectorPtr = null, ptr = ptr }; return obj; }
/// <summary> /// Creates instance from raw pointer T* /// </summary> /// <param name="ptr"></param> internal static DenseOpticalFlowExtImpl FromRawPtr(IntPtr ptr) { if (ptr == IntPtr.Zero) { throw new OpenCvSharpException("Invalid DenseOpticalFlowExt pointer"); } var obj = new DenseOpticalFlowExtImpl { detectorPtr = null, ptr = ptr }; return(obj); }
/// <summary> /// /// </summary> /// <returns></returns> public static DenseOpticalFlowExt CreateDualTVL1_CUDA() { IntPtr ptr = NativeMethods.superres_createOptFlow_Farneback_CUDA(); return(DenseOpticalFlowExtImpl.FromPtr(ptr)); }
/// <summary> /// /// </summary> /// <returns></returns> public static DenseOpticalFlowExt CreatePyrLK_CUDA() { IntPtr ptr = NativeMethods.superres_createOptFlow_PyrLK_CUDA(); return(DenseOpticalFlowExtImpl.FromPtr(ptr)); }