Inheritance: OpenCvSharp.DenseOpticalFlowExt
 /// <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;
 }
示例#2
0
        /// <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);
        }
示例#3
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static DenseOpticalFlowExt CreateDualTVL1_CUDA()
        {
            IntPtr ptr = NativeMethods.superres_createOptFlow_Farneback_CUDA();

            return(DenseOpticalFlowExtImpl.FromPtr(ptr));
        }
示例#4
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static DenseOpticalFlowExt CreatePyrLK_CUDA()
        {
            IntPtr ptr = NativeMethods.superres_createOptFlow_PyrLK_CUDA();

            return(DenseOpticalFlowExtImpl.FromPtr(ptr));
        }