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