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