GeneralizedHoughGuil.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. 
  2. using OpenCVForUnity.CoreModule;
  3. using OpenCVForUnity.UtilsModule;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Runtime.InteropServices;
  7. namespace OpenCVForUnity.ImgprocModule {
  8. // C++: class GeneralizedHoughGuil
  9. //javadoc: GeneralizedHoughGuil
  10. public class GeneralizedHoughGuil : GeneralizedHough {
  11. protected override void Dispose(bool disposing) {
  12. #if (UNITY_ANDROID && !UNITY_EDITOR)
  13. try {
  14. if (disposing) {
  15. }
  16. if (IsEnabledDispose) {
  17. if (nativeObj != IntPtr.Zero)
  18. imgproc_GeneralizedHoughGuil_delete(nativeObj);
  19. nativeObj = IntPtr.Zero;
  20. }
  21. } finally {
  22. base.Dispose(disposing);
  23. }
  24. #else
  25. return;
  26. #endif
  27. }
  28. protected internal GeneralizedHoughGuil(IntPtr addr) : base(addr) { }
  29. // internal usage only
  30. public static new GeneralizedHoughGuil __fromPtr__(IntPtr addr) { return new GeneralizedHoughGuil(addr); }
  31. #if (UNITY_ANDROID && !UNITY_EDITOR)
  32. const string LIBNAME = "opencvforunity";
  33. // native support for java finalize()
  34. [DllImport(LIBNAME)]
  35. private static extern void imgproc_GeneralizedHoughGuil_delete(IntPtr nativeObj);
  36. #endif
  37. }
  38. }