123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.VideoModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.BgsegmModule
- {
- // C++: class BackgroundSubtractorGMG
- //javadoc: BackgroundSubtractorGMG
- public class BackgroundSubtractorGMG : BackgroundSubtractor
- {
- 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)
- bgsegm_BackgroundSubtractorGMG_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose (disposing);
- }
- #else
- return;
- #endif
- }
- protected internal BackgroundSubtractorGMG (IntPtr addr) : base (addr) { }
- // internal usage only
- public static new BackgroundSubtractorGMG __fromPtr__ (IntPtr addr) { return new BackgroundSubtractorGMG (addr); }
- //
- // C++: bool cv::bgsegm::BackgroundSubtractorGMG::getUpdateBackgroundModel()
- //
- //javadoc: BackgroundSubtractorGMG::getUpdateBackgroundModel()
- public bool getUpdateBackgroundModel ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bool retVal = bgsegm_BackgroundSubtractorGMG_getUpdateBackgroundModel_10(nativeObj);
-
- return retVal;
- #else
- return false;
- #endif
- }
- //
- // C++: double cv::bgsegm::BackgroundSubtractorGMG::getBackgroundPrior()
- //
- //javadoc: BackgroundSubtractorGMG::getBackgroundPrior()
- public double getBackgroundPrior ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = bgsegm_BackgroundSubtractorGMG_getBackgroundPrior_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::bgsegm::BackgroundSubtractorGMG::getDecisionThreshold()
- //
- //javadoc: BackgroundSubtractorGMG::getDecisionThreshold()
- public double getDecisionThreshold ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = bgsegm_BackgroundSubtractorGMG_getDecisionThreshold_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::bgsegm::BackgroundSubtractorGMG::getDefaultLearningRate()
- //
- //javadoc: BackgroundSubtractorGMG::getDefaultLearningRate()
- public double getDefaultLearningRate ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = bgsegm_BackgroundSubtractorGMG_getDefaultLearningRate_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::bgsegm::BackgroundSubtractorGMG::getMaxVal()
- //
- //javadoc: BackgroundSubtractorGMG::getMaxVal()
- public double getMaxVal ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = bgsegm_BackgroundSubtractorGMG_getMaxVal_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::bgsegm::BackgroundSubtractorGMG::getMinVal()
- //
- //javadoc: BackgroundSubtractorGMG::getMinVal()
- public double getMinVal ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = bgsegm_BackgroundSubtractorGMG_getMinVal_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::bgsegm::BackgroundSubtractorGMG::getMaxFeatures()
- //
- //javadoc: BackgroundSubtractorGMG::getMaxFeatures()
- public int getMaxFeatures ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = bgsegm_BackgroundSubtractorGMG_getMaxFeatures_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::bgsegm::BackgroundSubtractorGMG::getNumFrames()
- //
- //javadoc: BackgroundSubtractorGMG::getNumFrames()
- public int getNumFrames ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = bgsegm_BackgroundSubtractorGMG_getNumFrames_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::bgsegm::BackgroundSubtractorGMG::getQuantizationLevels()
- //
- //javadoc: BackgroundSubtractorGMG::getQuantizationLevels()
- public int getQuantizationLevels ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = bgsegm_BackgroundSubtractorGMG_getQuantizationLevels_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::bgsegm::BackgroundSubtractorGMG::getSmoothingRadius()
- //
- //javadoc: BackgroundSubtractorGMG::getSmoothingRadius()
- public int getSmoothingRadius ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = bgsegm_BackgroundSubtractorGMG_getSmoothingRadius_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setBackgroundPrior(double bgprior)
- //
- //javadoc: BackgroundSubtractorGMG::setBackgroundPrior(bgprior)
- public void setBackgroundPrior (double bgprior)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bgsegm_BackgroundSubtractorGMG_setBackgroundPrior_10(nativeObj, bgprior);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setDecisionThreshold(double thresh)
- //
- //javadoc: BackgroundSubtractorGMG::setDecisionThreshold(thresh)
- public void setDecisionThreshold (double thresh)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bgsegm_BackgroundSubtractorGMG_setDecisionThreshold_10(nativeObj, thresh);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setDefaultLearningRate(double lr)
- //
- //javadoc: BackgroundSubtractorGMG::setDefaultLearningRate(lr)
- public void setDefaultLearningRate (double lr)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bgsegm_BackgroundSubtractorGMG_setDefaultLearningRate_10(nativeObj, lr);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setMaxFeatures(int maxFeatures)
- //
- //javadoc: BackgroundSubtractorGMG::setMaxFeatures(maxFeatures)
- public void setMaxFeatures (int maxFeatures)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bgsegm_BackgroundSubtractorGMG_setMaxFeatures_10(nativeObj, maxFeatures);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setMaxVal(double val)
- //
- //javadoc: BackgroundSubtractorGMG::setMaxVal(val)
- public void setMaxVal (double val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bgsegm_BackgroundSubtractorGMG_setMaxVal_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setMinVal(double val)
- //
- //javadoc: BackgroundSubtractorGMG::setMinVal(val)
- public void setMinVal (double val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bgsegm_BackgroundSubtractorGMG_setMinVal_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setNumFrames(int nframes)
- //
- //javadoc: BackgroundSubtractorGMG::setNumFrames(nframes)
- public void setNumFrames (int nframes)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bgsegm_BackgroundSubtractorGMG_setNumFrames_10(nativeObj, nframes);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setQuantizationLevels(int nlevels)
- //
- //javadoc: BackgroundSubtractorGMG::setQuantizationLevels(nlevels)
- public void setQuantizationLevels (int nlevels)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bgsegm_BackgroundSubtractorGMG_setQuantizationLevels_10(nativeObj, nlevels);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setSmoothingRadius(int radius)
- //
- //javadoc: BackgroundSubtractorGMG::setSmoothingRadius(radius)
- public void setSmoothingRadius (int radius)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bgsegm_BackgroundSubtractorGMG_setSmoothingRadius_10(nativeObj, radius);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setUpdateBackgroundModel(bool update)
- //
- //javadoc: BackgroundSubtractorGMG::setUpdateBackgroundModel(update)
- public void setUpdateBackgroundModel (bool update)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bgsegm_BackgroundSubtractorGMG_setUpdateBackgroundModel_10(nativeObj, update);
-
- return;
- #else
- return;
- #endif
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: bool cv::bgsegm::BackgroundSubtractorGMG::getUpdateBackgroundModel()
- [DllImport (LIBNAME)]
- private static extern bool bgsegm_BackgroundSubtractorGMG_getUpdateBackgroundModel_10 (IntPtr nativeObj);
- // C++: double cv::bgsegm::BackgroundSubtractorGMG::getBackgroundPrior()
- [DllImport (LIBNAME)]
- private static extern double bgsegm_BackgroundSubtractorGMG_getBackgroundPrior_10 (IntPtr nativeObj);
- // C++: double cv::bgsegm::BackgroundSubtractorGMG::getDecisionThreshold()
- [DllImport (LIBNAME)]
- private static extern double bgsegm_BackgroundSubtractorGMG_getDecisionThreshold_10 (IntPtr nativeObj);
- // C++: double cv::bgsegm::BackgroundSubtractorGMG::getDefaultLearningRate()
- [DllImport (LIBNAME)]
- private static extern double bgsegm_BackgroundSubtractorGMG_getDefaultLearningRate_10 (IntPtr nativeObj);
- // C++: double cv::bgsegm::BackgroundSubtractorGMG::getMaxVal()
- [DllImport (LIBNAME)]
- private static extern double bgsegm_BackgroundSubtractorGMG_getMaxVal_10 (IntPtr nativeObj);
- // C++: double cv::bgsegm::BackgroundSubtractorGMG::getMinVal()
- [DllImport (LIBNAME)]
- private static extern double bgsegm_BackgroundSubtractorGMG_getMinVal_10 (IntPtr nativeObj);
- // C++: int cv::bgsegm::BackgroundSubtractorGMG::getMaxFeatures()
- [DllImport (LIBNAME)]
- private static extern int bgsegm_BackgroundSubtractorGMG_getMaxFeatures_10 (IntPtr nativeObj);
- // C++: int cv::bgsegm::BackgroundSubtractorGMG::getNumFrames()
- [DllImport (LIBNAME)]
- private static extern int bgsegm_BackgroundSubtractorGMG_getNumFrames_10 (IntPtr nativeObj);
- // C++: int cv::bgsegm::BackgroundSubtractorGMG::getQuantizationLevels()
- [DllImport (LIBNAME)]
- private static extern int bgsegm_BackgroundSubtractorGMG_getQuantizationLevels_10 (IntPtr nativeObj);
- // C++: int cv::bgsegm::BackgroundSubtractorGMG::getSmoothingRadius()
- [DllImport (LIBNAME)]
- private static extern int bgsegm_BackgroundSubtractorGMG_getSmoothingRadius_10 (IntPtr nativeObj);
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setBackgroundPrior(double bgprior)
- [DllImport (LIBNAME)]
- private static extern void bgsegm_BackgroundSubtractorGMG_setBackgroundPrior_10 (IntPtr nativeObj, double bgprior);
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setDecisionThreshold(double thresh)
- [DllImport (LIBNAME)]
- private static extern void bgsegm_BackgroundSubtractorGMG_setDecisionThreshold_10 (IntPtr nativeObj, double thresh);
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setDefaultLearningRate(double lr)
- [DllImport (LIBNAME)]
- private static extern void bgsegm_BackgroundSubtractorGMG_setDefaultLearningRate_10 (IntPtr nativeObj, double lr);
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setMaxFeatures(int maxFeatures)
- [DllImport (LIBNAME)]
- private static extern void bgsegm_BackgroundSubtractorGMG_setMaxFeatures_10 (IntPtr nativeObj, int maxFeatures);
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setMaxVal(double val)
- [DllImport (LIBNAME)]
- private static extern void bgsegm_BackgroundSubtractorGMG_setMaxVal_10 (IntPtr nativeObj, double val);
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setMinVal(double val)
- [DllImport (LIBNAME)]
- private static extern void bgsegm_BackgroundSubtractorGMG_setMinVal_10 (IntPtr nativeObj, double val);
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setNumFrames(int nframes)
- [DllImport (LIBNAME)]
- private static extern void bgsegm_BackgroundSubtractorGMG_setNumFrames_10 (IntPtr nativeObj, int nframes);
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setQuantizationLevels(int nlevels)
- [DllImport (LIBNAME)]
- private static extern void bgsegm_BackgroundSubtractorGMG_setQuantizationLevels_10 (IntPtr nativeObj, int nlevels);
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setSmoothingRadius(int radius)
- [DllImport (LIBNAME)]
- private static extern void bgsegm_BackgroundSubtractorGMG_setSmoothingRadius_10 (IntPtr nativeObj, int radius);
- // C++: void cv::bgsegm::BackgroundSubtractorGMG::setUpdateBackgroundModel(bool update)
- [DllImport (LIBNAME)]
- private static extern void bgsegm_BackgroundSubtractorGMG_setUpdateBackgroundModel_10 (IntPtr nativeObj, bool update);
- // native support for java finalize()
- [DllImport (LIBNAME)]
- private static extern void bgsegm_BackgroundSubtractorGMG_delete (IntPtr nativeObj);
- }
- }
|