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