123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.Features2dModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.Xfeatures2dModule {
- // C++: class MSDDetector
- //javadoc: MSDDetector
- public class MSDDetector : Feature2D {
- protected override void Dispose(bool disposing) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- try {
- if (disposing) {
- }
- if (IsEnabledDispose) {
- if (nativeObj != IntPtr.Zero)
- xfeatures2d_MSDDetector_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose(disposing);
- }
- #else
- return;
- #endif
- }
- protected internal MSDDetector(IntPtr addr) : base(addr) { }
- // internal usage only
- public static new MSDDetector __fromPtr__(IntPtr addr) { return new MSDDetector(addr); }
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- const string LIBNAME = "opencvforunity";
- // native support for java finalize()
- [DllImport(LIBNAME)]
- private static extern void xfeatures2d_MSDDetector_delete(IntPtr nativeObj);
- #endif
- }
- }
|