123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.VideoModule
- {
- // C++: class FarnebackOpticalFlow
- //javadoc: FarnebackOpticalFlow
- public class FarnebackOpticalFlow : DenseOpticalFlow
- {
- protected override void Dispose (bool disposing)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- try {
- if (disposing) {
- }
- if (IsEnabledDispose) {
- if (nativeObj != IntPtr.Zero)
- video_FarnebackOpticalFlow_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose (disposing);
- }
- #else
- return;
- #endif
- }
- protected internal FarnebackOpticalFlow (IntPtr addr) : base (addr) { }
- // internal usage only
- public static new FarnebackOpticalFlow __fromPtr__ (IntPtr addr) { return new FarnebackOpticalFlow (addr); }
- //
- // C++: static Ptr_FarnebackOpticalFlow cv::FarnebackOpticalFlow::create(int numLevels = 5, double pyrScale = 0.5, bool fastPyramids = false, int winSize = 13, int numIters = 10, int polyN = 5, double polySigma = 1.1, int flags = 0)
- //
- //javadoc: FarnebackOpticalFlow::create(numLevels, pyrScale, fastPyramids, winSize, numIters, polyN, polySigma, flags)
- public static FarnebackOpticalFlow create (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters, int polyN, double polySigma, int flags)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_10(numLevels, pyrScale, fastPyramids, winSize, numIters, polyN, polySigma, flags));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: FarnebackOpticalFlow::create(numLevels, pyrScale, fastPyramids, winSize, numIters, polyN, polySigma)
- public static FarnebackOpticalFlow create (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters, int polyN, double polySigma)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_11(numLevels, pyrScale, fastPyramids, winSize, numIters, polyN, polySigma));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: FarnebackOpticalFlow::create(numLevels, pyrScale, fastPyramids, winSize, numIters, polyN)
- public static FarnebackOpticalFlow create (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters, int polyN)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_12(numLevels, pyrScale, fastPyramids, winSize, numIters, polyN));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: FarnebackOpticalFlow::create(numLevels, pyrScale, fastPyramids, winSize, numIters)
- public static FarnebackOpticalFlow create (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_13(numLevels, pyrScale, fastPyramids, winSize, numIters));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: FarnebackOpticalFlow::create(numLevels, pyrScale, fastPyramids, winSize)
- public static FarnebackOpticalFlow create (int numLevels, double pyrScale, bool fastPyramids, int winSize)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_14(numLevels, pyrScale, fastPyramids, winSize));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: FarnebackOpticalFlow::create(numLevels, pyrScale, fastPyramids)
- public static FarnebackOpticalFlow create (int numLevels, double pyrScale, bool fastPyramids)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_15(numLevels, pyrScale, fastPyramids));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: FarnebackOpticalFlow::create(numLevels, pyrScale)
- public static FarnebackOpticalFlow create (int numLevels, double pyrScale)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_16(numLevels, pyrScale));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: FarnebackOpticalFlow::create(numLevels)
- public static FarnebackOpticalFlow create (int numLevels)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_17(numLevels));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: FarnebackOpticalFlow::create()
- public static FarnebackOpticalFlow create ()
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_18());
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: bool cv::FarnebackOpticalFlow::getFastPyramids()
- //
- //javadoc: FarnebackOpticalFlow::getFastPyramids()
- public bool getFastPyramids ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bool retVal = video_FarnebackOpticalFlow_getFastPyramids_10(nativeObj);
-
- return retVal;
- #else
- return false;
- #endif
- }
- //
- // C++: double cv::FarnebackOpticalFlow::getPolySigma()
- //
- //javadoc: FarnebackOpticalFlow::getPolySigma()
- public double getPolySigma ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = video_FarnebackOpticalFlow_getPolySigma_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::FarnebackOpticalFlow::getPyrScale()
- //
- //javadoc: FarnebackOpticalFlow::getPyrScale()
- public double getPyrScale ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = video_FarnebackOpticalFlow_getPyrScale_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::FarnebackOpticalFlow::getFlags()
- //
- //javadoc: FarnebackOpticalFlow::getFlags()
- public int getFlags ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = video_FarnebackOpticalFlow_getFlags_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::FarnebackOpticalFlow::getNumIters()
- //
- //javadoc: FarnebackOpticalFlow::getNumIters()
- public int getNumIters ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = video_FarnebackOpticalFlow_getNumIters_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::FarnebackOpticalFlow::getNumLevels()
- //
- //javadoc: FarnebackOpticalFlow::getNumLevels()
- public int getNumLevels ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = video_FarnebackOpticalFlow_getNumLevels_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::FarnebackOpticalFlow::getPolyN()
- //
- //javadoc: FarnebackOpticalFlow::getPolyN()
- public int getPolyN ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = video_FarnebackOpticalFlow_getPolyN_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::FarnebackOpticalFlow::getWinSize()
- //
- //javadoc: FarnebackOpticalFlow::getWinSize()
- public int getWinSize ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = video_FarnebackOpticalFlow_getWinSize_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: void cv::FarnebackOpticalFlow::setFastPyramids(bool fastPyramids)
- //
- //javadoc: FarnebackOpticalFlow::setFastPyramids(fastPyramids)
- public void setFastPyramids (bool fastPyramids)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_FarnebackOpticalFlow_setFastPyramids_10(nativeObj, fastPyramids);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::FarnebackOpticalFlow::setFlags(int flags)
- //
- //javadoc: FarnebackOpticalFlow::setFlags(flags)
- public void setFlags (int flags)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_FarnebackOpticalFlow_setFlags_10(nativeObj, flags);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::FarnebackOpticalFlow::setNumIters(int numIters)
- //
- //javadoc: FarnebackOpticalFlow::setNumIters(numIters)
- public void setNumIters (int numIters)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_FarnebackOpticalFlow_setNumIters_10(nativeObj, numIters);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::FarnebackOpticalFlow::setNumLevels(int numLevels)
- //
- //javadoc: FarnebackOpticalFlow::setNumLevels(numLevels)
- public void setNumLevels (int numLevels)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_FarnebackOpticalFlow_setNumLevels_10(nativeObj, numLevels);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::FarnebackOpticalFlow::setPolyN(int polyN)
- //
- //javadoc: FarnebackOpticalFlow::setPolyN(polyN)
- public void setPolyN (int polyN)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_FarnebackOpticalFlow_setPolyN_10(nativeObj, polyN);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::FarnebackOpticalFlow::setPolySigma(double polySigma)
- //
- //javadoc: FarnebackOpticalFlow::setPolySigma(polySigma)
- public void setPolySigma (double polySigma)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_FarnebackOpticalFlow_setPolySigma_10(nativeObj, polySigma);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::FarnebackOpticalFlow::setPyrScale(double pyrScale)
- //
- //javadoc: FarnebackOpticalFlow::setPyrScale(pyrScale)
- public void setPyrScale (double pyrScale)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_FarnebackOpticalFlow_setPyrScale_10(nativeObj, pyrScale);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::FarnebackOpticalFlow::setWinSize(int winSize)
- //
- //javadoc: FarnebackOpticalFlow::setWinSize(winSize)
- public void setWinSize (int winSize)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_FarnebackOpticalFlow_setWinSize_10(nativeObj, winSize);
-
- return;
- #else
- return;
- #endif
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: static Ptr_FarnebackOpticalFlow cv::FarnebackOpticalFlow::create(int numLevels = 5, double pyrScale = 0.5, bool fastPyramids = false, int winSize = 13, int numIters = 10, int polyN = 5, double polySigma = 1.1, int flags = 0)
- [DllImport (LIBNAME)]
- private static extern IntPtr video_FarnebackOpticalFlow_create_10 (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters, int polyN, double polySigma, int flags);
- [DllImport (LIBNAME)]
- private static extern IntPtr video_FarnebackOpticalFlow_create_11 (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters, int polyN, double polySigma);
- [DllImport (LIBNAME)]
- private static extern IntPtr video_FarnebackOpticalFlow_create_12 (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters, int polyN);
- [DllImport (LIBNAME)]
- private static extern IntPtr video_FarnebackOpticalFlow_create_13 (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters);
- [DllImport (LIBNAME)]
- private static extern IntPtr video_FarnebackOpticalFlow_create_14 (int numLevels, double pyrScale, bool fastPyramids, int winSize);
- [DllImport (LIBNAME)]
- private static extern IntPtr video_FarnebackOpticalFlow_create_15 (int numLevels, double pyrScale, bool fastPyramids);
- [DllImport (LIBNAME)]
- private static extern IntPtr video_FarnebackOpticalFlow_create_16 (int numLevels, double pyrScale);
- [DllImport (LIBNAME)]
- private static extern IntPtr video_FarnebackOpticalFlow_create_17 (int numLevels);
- [DllImport (LIBNAME)]
- private static extern IntPtr video_FarnebackOpticalFlow_create_18 ();
- // C++: bool cv::FarnebackOpticalFlow::getFastPyramids()
- [DllImport (LIBNAME)]
- private static extern bool video_FarnebackOpticalFlow_getFastPyramids_10 (IntPtr nativeObj);
- // C++: double cv::FarnebackOpticalFlow::getPolySigma()
- [DllImport (LIBNAME)]
- private static extern double video_FarnebackOpticalFlow_getPolySigma_10 (IntPtr nativeObj);
- // C++: double cv::FarnebackOpticalFlow::getPyrScale()
- [DllImport (LIBNAME)]
- private static extern double video_FarnebackOpticalFlow_getPyrScale_10 (IntPtr nativeObj);
- // C++: int cv::FarnebackOpticalFlow::getFlags()
- [DllImport (LIBNAME)]
- private static extern int video_FarnebackOpticalFlow_getFlags_10 (IntPtr nativeObj);
- // C++: int cv::FarnebackOpticalFlow::getNumIters()
- [DllImport (LIBNAME)]
- private static extern int video_FarnebackOpticalFlow_getNumIters_10 (IntPtr nativeObj);
- // C++: int cv::FarnebackOpticalFlow::getNumLevels()
- [DllImport (LIBNAME)]
- private static extern int video_FarnebackOpticalFlow_getNumLevels_10 (IntPtr nativeObj);
- // C++: int cv::FarnebackOpticalFlow::getPolyN()
- [DllImport (LIBNAME)]
- private static extern int video_FarnebackOpticalFlow_getPolyN_10 (IntPtr nativeObj);
- // C++: int cv::FarnebackOpticalFlow::getWinSize()
- [DllImport (LIBNAME)]
- private static extern int video_FarnebackOpticalFlow_getWinSize_10 (IntPtr nativeObj);
- // C++: void cv::FarnebackOpticalFlow::setFastPyramids(bool fastPyramids)
- [DllImport (LIBNAME)]
- private static extern void video_FarnebackOpticalFlow_setFastPyramids_10 (IntPtr nativeObj, bool fastPyramids);
- // C++: void cv::FarnebackOpticalFlow::setFlags(int flags)
- [DllImport (LIBNAME)]
- private static extern void video_FarnebackOpticalFlow_setFlags_10 (IntPtr nativeObj, int flags);
- // C++: void cv::FarnebackOpticalFlow::setNumIters(int numIters)
- [DllImport (LIBNAME)]
- private static extern void video_FarnebackOpticalFlow_setNumIters_10 (IntPtr nativeObj, int numIters);
- // C++: void cv::FarnebackOpticalFlow::setNumLevels(int numLevels)
- [DllImport (LIBNAME)]
- private static extern void video_FarnebackOpticalFlow_setNumLevels_10 (IntPtr nativeObj, int numLevels);
- // C++: void cv::FarnebackOpticalFlow::setPolyN(int polyN)
- [DllImport (LIBNAME)]
- private static extern void video_FarnebackOpticalFlow_setPolyN_10 (IntPtr nativeObj, int polyN);
- // C++: void cv::FarnebackOpticalFlow::setPolySigma(double polySigma)
- [DllImport (LIBNAME)]
- private static extern void video_FarnebackOpticalFlow_setPolySigma_10 (IntPtr nativeObj, double polySigma);
- // C++: void cv::FarnebackOpticalFlow::setPyrScale(double pyrScale)
- [DllImport (LIBNAME)]
- private static extern void video_FarnebackOpticalFlow_setPyrScale_10 (IntPtr nativeObj, double pyrScale);
- // C++: void cv::FarnebackOpticalFlow::setWinSize(int winSize)
- [DllImport (LIBNAME)]
- private static extern void video_FarnebackOpticalFlow_setWinSize_10 (IntPtr nativeObj, int winSize);
- // native support for java finalize()
- [DllImport (LIBNAME)]
- private static extern void video_FarnebackOpticalFlow_delete (IntPtr nativeObj);
- }
- }
|