using OpenCVForUnity.CoreModule; using OpenCVForUnity.UtilsModule; using System; using System.Collections.Generic; using System.Runtime.InteropServices; namespace OpenCVForUnity.RegModule { // C++: class MapperGradShift //javadoc: MapperGradShift public class MapperGradShift : Mapper { 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) reg_MapperGradShift_delete (nativeObj); nativeObj = IntPtr.Zero; } } finally { base.Dispose (disposing); } #else return; #endif } protected internal MapperGradShift (IntPtr addr) : base (addr) { } // internal usage only public static new MapperGradShift __fromPtr__ (IntPtr addr) { return new MapperGradShift (addr); } // // C++: cv::reg::MapperGradShift::MapperGradShift() // //javadoc: MapperGradShift::MapperGradShift() public MapperGradShift () : #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER base (reg_MapperGradShift_MapperGradShift_10 ()) #else base (IntPtr.Zero) #endif { return; } // // C++: Ptr_Map cv::reg::MapperGradShift::calculate(Mat img1, Mat img2, Ptr_Map init = cv::Ptr()) // //javadoc: MapperGradShift::calculate(img1, img2, init) public override Map calculate (Mat img1, Mat img2, Map init) { ThrowIfDisposed (); if (img1 != null) img1.ThrowIfDisposed (); if (img2 != null) img2.ThrowIfDisposed (); if (init != null) init.ThrowIfDisposed (); #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER Map retVal = Map.__fromPtr__ (reg_MapperGradShift_calculate_10 (nativeObj, img1.nativeObj, img2.nativeObj, init.getNativeObjAddr ())); return retVal; #else return null; #endif } //javadoc: MapperGradShift::calculate(img1, img2) public override Map calculate (Mat img1, Mat img2) { ThrowIfDisposed (); if (img1 != null) img1.ThrowIfDisposed (); if (img2 != null) img2.ThrowIfDisposed (); #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER Map retVal = Map.__fromPtr__ (reg_MapperGradShift_calculate_11 (nativeObj, img1.nativeObj, img2.nativeObj)); return retVal; #else return null; #endif } // // C++: Ptr_Map cv::reg::MapperGradShift::getMap() // //javadoc: MapperGradShift::getMap() public override Map getMap () { ThrowIfDisposed (); #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER Map retVal = Map.__fromPtr__ (reg_MapperGradShift_getMap_10 (nativeObj)); return retVal; #else return null; #endif } #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR const string LIBNAME = "__Internal"; #else const string LIBNAME = "opencvforunity"; #endif // C++: cv::reg::MapperGradShift::MapperGradShift() [DllImport (LIBNAME)] private static extern IntPtr reg_MapperGradShift_MapperGradShift_10 (); // C++: Ptr_Map cv::reg::MapperGradShift::calculate(Mat img1, Mat img2, Ptr_Map init = cv::Ptr()) [DllImport (LIBNAME)] private static extern IntPtr reg_MapperGradShift_calculate_10 (IntPtr nativeObj, IntPtr img1_nativeObj, IntPtr img2_nativeObj, IntPtr init_nativeObj); [DllImport (LIBNAME)] private static extern IntPtr reg_MapperGradShift_calculate_11 (IntPtr nativeObj, IntPtr img1_nativeObj, IntPtr img2_nativeObj); // C++: Ptr_Map cv::reg::MapperGradShift::getMap() [DllImport (LIBNAME)] private static extern IntPtr reg_MapperGradShift_getMap_10 (IntPtr nativeObj); // native support for java finalize() [DllImport (LIBNAME)] private static extern void reg_MapperGradShift_delete (IntPtr nativeObj); } }