12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.VideoModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.OptflowModule
- {
- // C++: class OpticalFlowPCAFlow
- //javadoc: OpticalFlowPCAFlow
- public class OpticalFlowPCAFlow : DenseOpticalFlow
- {
- 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)
- optflow_OpticalFlowPCAFlow_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose (disposing);
- }
- #else
- return;
- #endif
- }
- protected internal OpticalFlowPCAFlow (IntPtr addr) : base (addr) { }
- // internal usage only
- public static new OpticalFlowPCAFlow __fromPtr__ (IntPtr addr) { return new OpticalFlowPCAFlow (addr); }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // native support for java finalize()
- [DllImport (LIBNAME)]
- private static extern void optflow_OpticalFlowPCAFlow_delete (IntPtr nativeObj);
- }
- }
|