123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.VideoModule
- {
- // C++: class DISOpticalFlow
- //javadoc: DISOpticalFlow
- public class DISOpticalFlow : 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_DISOpticalFlow_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose (disposing);
- }
- #else
- return;
- #endif
- }
- protected internal DISOpticalFlow (IntPtr addr) : base (addr) { }
- // internal usage only
- public static new DISOpticalFlow __fromPtr__ (IntPtr addr) { return new DISOpticalFlow (addr); }
- // C++: enum <unnamed>
- public const int PRESET_ULTRAFAST = 0;
- public const int PRESET_FAST = 1;
- public const int PRESET_MEDIUM = 2;
- //
- // C++: static Ptr_DISOpticalFlow cv::DISOpticalFlow::create(int preset = DISOpticalFlow::PRESET_FAST)
- //
- //javadoc: DISOpticalFlow::create(preset)
- public static DISOpticalFlow create (int preset)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- DISOpticalFlow retVal = DISOpticalFlow.__fromPtr__(video_DISOpticalFlow_create_10(preset));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: DISOpticalFlow::create()
- public static DISOpticalFlow create ()
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- DISOpticalFlow retVal = DISOpticalFlow.__fromPtr__(video_DISOpticalFlow_create_11());
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: bool cv::DISOpticalFlow::getUseMeanNormalization()
- //
- //javadoc: DISOpticalFlow::getUseMeanNormalization()
- public bool getUseMeanNormalization ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bool retVal = video_DISOpticalFlow_getUseMeanNormalization_10(nativeObj);
-
- return retVal;
- #else
- return false;
- #endif
- }
- //
- // C++: bool cv::DISOpticalFlow::getUseSpatialPropagation()
- //
- //javadoc: DISOpticalFlow::getUseSpatialPropagation()
- public bool getUseSpatialPropagation ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bool retVal = video_DISOpticalFlow_getUseSpatialPropagation_10(nativeObj);
-
- return retVal;
- #else
- return false;
- #endif
- }
- //
- // C++: float cv::DISOpticalFlow::getVariationalRefinementAlpha()
- //
- //javadoc: DISOpticalFlow::getVariationalRefinementAlpha()
- public float getVariationalRefinementAlpha ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- float retVal = video_DISOpticalFlow_getVariationalRefinementAlpha_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: float cv::DISOpticalFlow::getVariationalRefinementDelta()
- //
- //javadoc: DISOpticalFlow::getVariationalRefinementDelta()
- public float getVariationalRefinementDelta ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- float retVal = video_DISOpticalFlow_getVariationalRefinementDelta_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: float cv::DISOpticalFlow::getVariationalRefinementGamma()
- //
- //javadoc: DISOpticalFlow::getVariationalRefinementGamma()
- public float getVariationalRefinementGamma ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- float retVal = video_DISOpticalFlow_getVariationalRefinementGamma_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::DISOpticalFlow::getFinestScale()
- //
- //javadoc: DISOpticalFlow::getFinestScale()
- public int getFinestScale ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = video_DISOpticalFlow_getFinestScale_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::DISOpticalFlow::getGradientDescentIterations()
- //
- //javadoc: DISOpticalFlow::getGradientDescentIterations()
- public int getGradientDescentIterations ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = video_DISOpticalFlow_getGradientDescentIterations_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::DISOpticalFlow::getPatchSize()
- //
- //javadoc: DISOpticalFlow::getPatchSize()
- public int getPatchSize ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = video_DISOpticalFlow_getPatchSize_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::DISOpticalFlow::getPatchStride()
- //
- //javadoc: DISOpticalFlow::getPatchStride()
- public int getPatchStride ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = video_DISOpticalFlow_getPatchStride_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::DISOpticalFlow::getVariationalRefinementIterations()
- //
- //javadoc: DISOpticalFlow::getVariationalRefinementIterations()
- public int getVariationalRefinementIterations ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = video_DISOpticalFlow_getVariationalRefinementIterations_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: void cv::DISOpticalFlow::setFinestScale(int val)
- //
- //javadoc: DISOpticalFlow::setFinestScale(val)
- public void setFinestScale (int val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_DISOpticalFlow_setFinestScale_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::DISOpticalFlow::setGradientDescentIterations(int val)
- //
- //javadoc: DISOpticalFlow::setGradientDescentIterations(val)
- public void setGradientDescentIterations (int val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_DISOpticalFlow_setGradientDescentIterations_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::DISOpticalFlow::setPatchSize(int val)
- //
- //javadoc: DISOpticalFlow::setPatchSize(val)
- public void setPatchSize (int val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_DISOpticalFlow_setPatchSize_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::DISOpticalFlow::setPatchStride(int val)
- //
- //javadoc: DISOpticalFlow::setPatchStride(val)
- public void setPatchStride (int val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_DISOpticalFlow_setPatchStride_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::DISOpticalFlow::setUseMeanNormalization(bool val)
- //
- //javadoc: DISOpticalFlow::setUseMeanNormalization(val)
- public void setUseMeanNormalization (bool val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_DISOpticalFlow_setUseMeanNormalization_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::DISOpticalFlow::setUseSpatialPropagation(bool val)
- //
- //javadoc: DISOpticalFlow::setUseSpatialPropagation(val)
- public void setUseSpatialPropagation (bool val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_DISOpticalFlow_setUseSpatialPropagation_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::DISOpticalFlow::setVariationalRefinementAlpha(float val)
- //
- //javadoc: DISOpticalFlow::setVariationalRefinementAlpha(val)
- public void setVariationalRefinementAlpha (float val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_DISOpticalFlow_setVariationalRefinementAlpha_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::DISOpticalFlow::setVariationalRefinementDelta(float val)
- //
- //javadoc: DISOpticalFlow::setVariationalRefinementDelta(val)
- public void setVariationalRefinementDelta (float val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_DISOpticalFlow_setVariationalRefinementDelta_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::DISOpticalFlow::setVariationalRefinementGamma(float val)
- //
- //javadoc: DISOpticalFlow::setVariationalRefinementGamma(val)
- public void setVariationalRefinementGamma (float val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_DISOpticalFlow_setVariationalRefinementGamma_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::DISOpticalFlow::setVariationalRefinementIterations(int val)
- //
- //javadoc: DISOpticalFlow::setVariationalRefinementIterations(val)
- public void setVariationalRefinementIterations (int val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- video_DISOpticalFlow_setVariationalRefinementIterations_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: static Ptr_DISOpticalFlow cv::DISOpticalFlow::create(int preset = DISOpticalFlow::PRESET_FAST)
- [DllImport (LIBNAME)]
- private static extern IntPtr video_DISOpticalFlow_create_10 (int preset);
- [DllImport (LIBNAME)]
- private static extern IntPtr video_DISOpticalFlow_create_11 ();
- // C++: bool cv::DISOpticalFlow::getUseMeanNormalization()
- [DllImport (LIBNAME)]
- private static extern bool video_DISOpticalFlow_getUseMeanNormalization_10 (IntPtr nativeObj);
- // C++: bool cv::DISOpticalFlow::getUseSpatialPropagation()
- [DllImport (LIBNAME)]
- private static extern bool video_DISOpticalFlow_getUseSpatialPropagation_10 (IntPtr nativeObj);
- // C++: float cv::DISOpticalFlow::getVariationalRefinementAlpha()
- [DllImport (LIBNAME)]
- private static extern float video_DISOpticalFlow_getVariationalRefinementAlpha_10 (IntPtr nativeObj);
- // C++: float cv::DISOpticalFlow::getVariationalRefinementDelta()
- [DllImport (LIBNAME)]
- private static extern float video_DISOpticalFlow_getVariationalRefinementDelta_10 (IntPtr nativeObj);
- // C++: float cv::DISOpticalFlow::getVariationalRefinementGamma()
- [DllImport (LIBNAME)]
- private static extern float video_DISOpticalFlow_getVariationalRefinementGamma_10 (IntPtr nativeObj);
- // C++: int cv::DISOpticalFlow::getFinestScale()
- [DllImport (LIBNAME)]
- private static extern int video_DISOpticalFlow_getFinestScale_10 (IntPtr nativeObj);
- // C++: int cv::DISOpticalFlow::getGradientDescentIterations()
- [DllImport (LIBNAME)]
- private static extern int video_DISOpticalFlow_getGradientDescentIterations_10 (IntPtr nativeObj);
- // C++: int cv::DISOpticalFlow::getPatchSize()
- [DllImport (LIBNAME)]
- private static extern int video_DISOpticalFlow_getPatchSize_10 (IntPtr nativeObj);
- // C++: int cv::DISOpticalFlow::getPatchStride()
- [DllImport (LIBNAME)]
- private static extern int video_DISOpticalFlow_getPatchStride_10 (IntPtr nativeObj);
- // C++: int cv::DISOpticalFlow::getVariationalRefinementIterations()
- [DllImport (LIBNAME)]
- private static extern int video_DISOpticalFlow_getVariationalRefinementIterations_10 (IntPtr nativeObj);
- // C++: void cv::DISOpticalFlow::setFinestScale(int val)
- [DllImport (LIBNAME)]
- private static extern void video_DISOpticalFlow_setFinestScale_10 (IntPtr nativeObj, int val);
- // C++: void cv::DISOpticalFlow::setGradientDescentIterations(int val)
- [DllImport (LIBNAME)]
- private static extern void video_DISOpticalFlow_setGradientDescentIterations_10 (IntPtr nativeObj, int val);
- // C++: void cv::DISOpticalFlow::setPatchSize(int val)
- [DllImport (LIBNAME)]
- private static extern void video_DISOpticalFlow_setPatchSize_10 (IntPtr nativeObj, int val);
- // C++: void cv::DISOpticalFlow::setPatchStride(int val)
- [DllImport (LIBNAME)]
- private static extern void video_DISOpticalFlow_setPatchStride_10 (IntPtr nativeObj, int val);
- // C++: void cv::DISOpticalFlow::setUseMeanNormalization(bool val)
- [DllImport (LIBNAME)]
- private static extern void video_DISOpticalFlow_setUseMeanNormalization_10 (IntPtr nativeObj, bool val);
- // C++: void cv::DISOpticalFlow::setUseSpatialPropagation(bool val)
- [DllImport (LIBNAME)]
- private static extern void video_DISOpticalFlow_setUseSpatialPropagation_10 (IntPtr nativeObj, bool val);
- // C++: void cv::DISOpticalFlow::setVariationalRefinementAlpha(float val)
- [DllImport (LIBNAME)]
- private static extern void video_DISOpticalFlow_setVariationalRefinementAlpha_10 (IntPtr nativeObj, float val);
- // C++: void cv::DISOpticalFlow::setVariationalRefinementDelta(float val)
- [DllImport (LIBNAME)]
- private static extern void video_DISOpticalFlow_setVariationalRefinementDelta_10 (IntPtr nativeObj, float val);
- // C++: void cv::DISOpticalFlow::setVariationalRefinementGamma(float val)
- [DllImport (LIBNAME)]
- private static extern void video_DISOpticalFlow_setVariationalRefinementGamma_10 (IntPtr nativeObj, float val);
- // C++: void cv::DISOpticalFlow::setVariationalRefinementIterations(int val)
- [DllImport (LIBNAME)]
- private static extern void video_DISOpticalFlow_setVariationalRefinementIterations_10 (IntPtr nativeObj, int val);
- // native support for java finalize()
- [DllImport (LIBNAME)]
- private static extern void video_DISOpticalFlow_delete (IntPtr nativeObj);
- }
- }
|