123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.Features2dModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.Xfeatures2dModule
- {
- // C++: class VGG
- //javadoc: VGG
- public class VGG : Feature2D
- {
- 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)
- xfeatures2d_VGG_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose (disposing);
- }
- #else
- return;
- #endif
- }
- protected internal VGG (IntPtr addr) : base (addr) { }
- // internal usage only
- public static new VGG __fromPtr__ (IntPtr addr) { return new VGG (addr); }
- //
- // C++: static Ptr_VGG cv::xfeatures2d::VGG::create(int desc = VGG::VGG_120, float isigma = 1.4f, bool img_normalize = true, bool use_scale_orientation = true, float scale_factor = 6.25f, bool dsc_normalize = false)
- //
- //javadoc: VGG::create(desc, isigma, img_normalize, use_scale_orientation, scale_factor, dsc_normalize)
- public static VGG create (int desc, float isigma, bool img_normalize, bool use_scale_orientation, float scale_factor, bool dsc_normalize)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- VGG retVal = VGG.__fromPtr__(xfeatures2d_VGG_create_10(desc, isigma, img_normalize, use_scale_orientation, scale_factor, dsc_normalize));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: VGG::create(desc, isigma, img_normalize, use_scale_orientation, scale_factor)
- public static VGG create (int desc, float isigma, bool img_normalize, bool use_scale_orientation, float scale_factor)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- VGG retVal = VGG.__fromPtr__(xfeatures2d_VGG_create_11(desc, isigma, img_normalize, use_scale_orientation, scale_factor));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: VGG::create(desc, isigma, img_normalize, use_scale_orientation)
- public static VGG create (int desc, float isigma, bool img_normalize, bool use_scale_orientation)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- VGG retVal = VGG.__fromPtr__(xfeatures2d_VGG_create_12(desc, isigma, img_normalize, use_scale_orientation));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: VGG::create(desc, isigma, img_normalize)
- public static VGG create (int desc, float isigma, bool img_normalize)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- VGG retVal = VGG.__fromPtr__(xfeatures2d_VGG_create_13(desc, isigma, img_normalize));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: VGG::create(desc, isigma)
- public static VGG create (int desc, float isigma)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- VGG retVal = VGG.__fromPtr__(xfeatures2d_VGG_create_14(desc, isigma));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: VGG::create(desc)
- public static VGG create (int desc)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- VGG retVal = VGG.__fromPtr__(xfeatures2d_VGG_create_15(desc));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: VGG::create()
- public static VGG create ()
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- VGG retVal = VGG.__fromPtr__(xfeatures2d_VGG_create_16());
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: bool cv::xfeatures2d::VGG::getUseNormalizeDescriptor()
- //
- //javadoc: VGG::getUseNormalizeDescriptor()
- public bool getUseNormalizeDescriptor ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bool retVal = xfeatures2d_VGG_getUseNormalizeDescriptor_10(nativeObj);
-
- return retVal;
- #else
- return false;
- #endif
- }
- //
- // C++: bool cv::xfeatures2d::VGG::getUseNormalizeImage()
- //
- //javadoc: VGG::getUseNormalizeImage()
- public bool getUseNormalizeImage ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bool retVal = xfeatures2d_VGG_getUseNormalizeImage_10(nativeObj);
-
- return retVal;
- #else
- return false;
- #endif
- }
- //
- // C++: bool cv::xfeatures2d::VGG::getUseScaleOrientation()
- //
- //javadoc: VGG::getUseScaleOrientation()
- public bool getUseScaleOrientation ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bool retVal = xfeatures2d_VGG_getUseScaleOrientation_10(nativeObj);
-
- return retVal;
- #else
- return false;
- #endif
- }
- //
- // C++: float cv::xfeatures2d::VGG::getScaleFactor()
- //
- //javadoc: VGG::getScaleFactor()
- public float getScaleFactor ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- float retVal = xfeatures2d_VGG_getScaleFactor_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: float cv::xfeatures2d::VGG::getSigma()
- //
- //javadoc: VGG::getSigma()
- public float getSigma ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- float retVal = xfeatures2d_VGG_getSigma_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: void cv::xfeatures2d::VGG::setScaleFactor(float scale_factor)
- //
- //javadoc: VGG::setScaleFactor(scale_factor)
- public void setScaleFactor (float scale_factor)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- xfeatures2d_VGG_setScaleFactor_10(nativeObj, scale_factor);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::xfeatures2d::VGG::setSigma(float isigma)
- //
- //javadoc: VGG::setSigma(isigma)
- public void setSigma (float isigma)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- xfeatures2d_VGG_setSigma_10(nativeObj, isigma);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::xfeatures2d::VGG::setUseNormalizeDescriptor(bool dsc_normalize)
- //
- //javadoc: VGG::setUseNormalizeDescriptor(dsc_normalize)
- public void setUseNormalizeDescriptor (bool dsc_normalize)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- xfeatures2d_VGG_setUseNormalizeDescriptor_10(nativeObj, dsc_normalize);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::xfeatures2d::VGG::setUseNormalizeImage(bool img_normalize)
- //
- //javadoc: VGG::setUseNormalizeImage(img_normalize)
- public void setUseNormalizeImage (bool img_normalize)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- xfeatures2d_VGG_setUseNormalizeImage_10(nativeObj, img_normalize);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::xfeatures2d::VGG::setUseScaleOrientation(bool use_scale_orientation)
- //
- //javadoc: VGG::setUseScaleOrientation(use_scale_orientation)
- public void setUseScaleOrientation (bool use_scale_orientation)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- xfeatures2d_VGG_setUseScaleOrientation_10(nativeObj, use_scale_orientation);
-
- return;
- #else
- return;
- #endif
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: static Ptr_VGG cv::xfeatures2d::VGG::create(int desc = VGG::VGG_120, float isigma = 1.4f, bool img_normalize = true, bool use_scale_orientation = true, float scale_factor = 6.25f, bool dsc_normalize = false)
- [DllImport (LIBNAME)]
- private static extern IntPtr xfeatures2d_VGG_create_10 (int desc, float isigma, bool img_normalize, bool use_scale_orientation, float scale_factor, bool dsc_normalize);
- [DllImport (LIBNAME)]
- private static extern IntPtr xfeatures2d_VGG_create_11 (int desc, float isigma, bool img_normalize, bool use_scale_orientation, float scale_factor);
- [DllImport (LIBNAME)]
- private static extern IntPtr xfeatures2d_VGG_create_12 (int desc, float isigma, bool img_normalize, bool use_scale_orientation);
- [DllImport (LIBNAME)]
- private static extern IntPtr xfeatures2d_VGG_create_13 (int desc, float isigma, bool img_normalize);
- [DllImport (LIBNAME)]
- private static extern IntPtr xfeatures2d_VGG_create_14 (int desc, float isigma);
- [DllImport (LIBNAME)]
- private static extern IntPtr xfeatures2d_VGG_create_15 (int desc);
- [DllImport (LIBNAME)]
- private static extern IntPtr xfeatures2d_VGG_create_16 ();
- // C++: bool cv::xfeatures2d::VGG::getUseNormalizeDescriptor()
- [DllImport (LIBNAME)]
- private static extern bool xfeatures2d_VGG_getUseNormalizeDescriptor_10 (IntPtr nativeObj);
- // C++: bool cv::xfeatures2d::VGG::getUseNormalizeImage()
- [DllImport (LIBNAME)]
- private static extern bool xfeatures2d_VGG_getUseNormalizeImage_10 (IntPtr nativeObj);
- // C++: bool cv::xfeatures2d::VGG::getUseScaleOrientation()
- [DllImport (LIBNAME)]
- private static extern bool xfeatures2d_VGG_getUseScaleOrientation_10 (IntPtr nativeObj);
- // C++: float cv::xfeatures2d::VGG::getScaleFactor()
- [DllImport (LIBNAME)]
- private static extern float xfeatures2d_VGG_getScaleFactor_10 (IntPtr nativeObj);
- // C++: float cv::xfeatures2d::VGG::getSigma()
- [DllImport (LIBNAME)]
- private static extern float xfeatures2d_VGG_getSigma_10 (IntPtr nativeObj);
- // C++: void cv::xfeatures2d::VGG::setScaleFactor(float scale_factor)
- [DllImport (LIBNAME)]
- private static extern void xfeatures2d_VGG_setScaleFactor_10 (IntPtr nativeObj, float scale_factor);
- // C++: void cv::xfeatures2d::VGG::setSigma(float isigma)
- [DllImport (LIBNAME)]
- private static extern void xfeatures2d_VGG_setSigma_10 (IntPtr nativeObj, float isigma);
- // C++: void cv::xfeatures2d::VGG::setUseNormalizeDescriptor(bool dsc_normalize)
- [DllImport (LIBNAME)]
- private static extern void xfeatures2d_VGG_setUseNormalizeDescriptor_10 (IntPtr nativeObj, bool dsc_normalize);
- // C++: void cv::xfeatures2d::VGG::setUseNormalizeImage(bool img_normalize)
- [DllImport (LIBNAME)]
- private static extern void xfeatures2d_VGG_setUseNormalizeImage_10 (IntPtr nativeObj, bool img_normalize);
- // C++: void cv::xfeatures2d::VGG::setUseScaleOrientation(bool use_scale_orientation)
- [DllImport (LIBNAME)]
- private static extern void xfeatures2d_VGG_setUseScaleOrientation_10 (IntPtr nativeObj, bool use_scale_orientation);
- // native support for java finalize()
- [DllImport (LIBNAME)]
- private static extern void xfeatures2d_VGG_delete (IntPtr nativeObj);
- }
- }
|