FromPtr() static private method

Creates instance from cv::Ptr<T> . ptr is disposed when the wrapper disposes.
static private FromPtr ( IntPtr ptr ) : DenseOpticalFlowExtImpl
ptr System.IntPtr
return DenseOpticalFlowExtImpl
Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static DenseOpticalFlowExt CreateDualTVL1_CUDA()
        {
            IntPtr ptr = NativeMethods.superres_createOptFlow_Farneback_CUDA();

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

            return(DenseOpticalFlowExtImpl.FromPtr(ptr));
        }