123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.XimgprocModule
- {
-
-
- public class SelectiveSearchSegmentationStrategyMultiple : SelectiveSearchSegmentationStrategy
- {
- 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)
- ximgproc_SelectiveSearchSegmentationStrategyMultiple_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose (disposing);
- }
- #else
- return;
- #endif
- }
- protected internal SelectiveSearchSegmentationStrategyMultiple (IntPtr addr) : base (addr) { }
-
- public static new SelectiveSearchSegmentationStrategyMultiple __fromPtr__ (IntPtr addr) { return new SelectiveSearchSegmentationStrategyMultiple (addr); }
-
-
-
-
- public void addStrategy (SelectiveSearchSegmentationStrategy g, float weight)
- {
- ThrowIfDisposed ();
- if (g != null) g.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ximgproc_SelectiveSearchSegmentationStrategyMultiple_addStrategy_10(nativeObj, g.getNativeObjAddr(), weight);
-
- return;
- #else
- return;
- #endif
- }
-
-
-
-
- public void clearStrategies ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ximgproc_SelectiveSearchSegmentationStrategyMultiple_clearStrategies_10(nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
-
- [DllImport (LIBNAME)]
- private static extern void ximgproc_SelectiveSearchSegmentationStrategyMultiple_addStrategy_10 (IntPtr nativeObj, IntPtr g_nativeObj, float weight);
-
- [DllImport (LIBNAME)]
- private static extern void ximgproc_SelectiveSearchSegmentationStrategyMultiple_clearStrategies_10 (IntPtr nativeObj);
-
- [DllImport (LIBNAME)]
- private static extern void ximgproc_SelectiveSearchSegmentationStrategyMultiple_delete (IntPtr nativeObj);
- }
- }
|