123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.RegModule
- {
-
-
- public class MapperGradProj : 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_MapperGradProj_delete (nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose (disposing);
- }
- #else
- return;
- #endif
- }
- protected internal MapperGradProj (IntPtr addr)
- : base (addr)
- {
- }
-
- public static new MapperGradProj __fromPtr__ (IntPtr addr)
- {
- return new MapperGradProj (addr);
- }
-
-
-
-
- public MapperGradProj () :
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- base (reg_MapperGradProj_MapperGradProj_10 ())
-
- #else
- base (IntPtr.Zero)
- #endif
- {
- return;
- }
-
-
-
-
- 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_MapperGradProj_calculate_10 (nativeObj, img1.nativeObj, img2.nativeObj, init.getNativeObjAddr ()));
-
- return retVal;
- #else
- return null;
- #endif
- }
-
- 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_MapperGradProj_calculate_11 (nativeObj, img1.nativeObj, img2.nativeObj));
-
- return retVal;
- #else
- return null;
- #endif
- }
-
-
-
-
- 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_MapperGradProj_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
-
- [DllImport (LIBNAME)]
- private static extern IntPtr reg_MapperGradProj_MapperGradProj_10 ();
-
- [DllImport (LIBNAME)]
- private static extern IntPtr reg_MapperGradProj_calculate_10 (IntPtr nativeObj, IntPtr img1_nativeObj, IntPtr img2_nativeObj, IntPtr init_nativeObj);
- [DllImport (LIBNAME)]
- private static extern IntPtr reg_MapperGradProj_calculate_11 (IntPtr nativeObj, IntPtr img1_nativeObj, IntPtr img2_nativeObj);
-
- [DllImport (LIBNAME)]
- private static extern IntPtr reg_MapperGradProj_getMap_10 (IntPtr nativeObj);
-
- [DllImport (LIBNAME)]
- private static extern void reg_MapperGradProj_delete (IntPtr nativeObj);
- }
- }
|