Ejemplo n.º 1
0
        //javadoc: SparsePyrLKOpticalFlow::create(winSize)
        public static SparsePyrLKOpticalFlow create(Size winSize)
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            SparsePyrLKOpticalFlow retVal = SparsePyrLKOpticalFlow.__fromPtr__(video_SparsePyrLKOpticalFlow_create_14(winSize.width, winSize.height));

            return(retVal);
#else
            return(null);
#endif
        }
Ejemplo n.º 2
0
        //javadoc: SparsePyrLKOpticalFlow::create(winSize, maxLevel, crit)
        public static SparsePyrLKOpticalFlow create(Size winSize, int maxLevel, TermCriteria crit)
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            SparsePyrLKOpticalFlow retVal = SparsePyrLKOpticalFlow.__fromPtr__(video_SparsePyrLKOpticalFlow_create_12(winSize.width, winSize.height, maxLevel, crit.type, crit.maxCount, crit.epsilon));

            return(retVal);
#else
            return(null);
#endif
        }
 public static SparsePyrLKOpticalFlow create()
 {
     return(SparsePyrLKOpticalFlow.__fromPtr__(video_SparsePyrLKOpticalFlow_create_15()));
 }
 public static SparsePyrLKOpticalFlow create(Size winSize)
 {
     return(SparsePyrLKOpticalFlow.__fromPtr__(video_SparsePyrLKOpticalFlow_create_14(winSize.width, winSize.height)));
 }
 public static SparsePyrLKOpticalFlow create(Size winSize, int maxLevel)
 {
     return(SparsePyrLKOpticalFlow.__fromPtr__(video_SparsePyrLKOpticalFlow_create_13(winSize.width, winSize.height, maxLevel)));
 }
 public static SparsePyrLKOpticalFlow create(Size winSize, int maxLevel, TermCriteria crit)
 {
     return(SparsePyrLKOpticalFlow.__fromPtr__(video_SparsePyrLKOpticalFlow_create_12(winSize.width, winSize.height, maxLevel, crit.type, crit.maxCount, crit.epsilon)));
 }
        //
        // C++: static Ptr_SparsePyrLKOpticalFlow cv::SparsePyrLKOpticalFlow::create(Size winSize = Size(21, 21), int maxLevel = 3, TermCriteria crit = TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, 0.01), int flags = 0, double minEigThreshold = 1e-4)
        //

        public static SparsePyrLKOpticalFlow create(Size winSize, int maxLevel, TermCriteria crit, int flags, double minEigThreshold)
        {
            return(SparsePyrLKOpticalFlow.__fromPtr__(video_SparsePyrLKOpticalFlow_create_10(winSize.width, winSize.height, maxLevel, crit.type, crit.maxCount, crit.epsilon, flags, minEigThreshold)));
        }