123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.RegModule
- {
- // C++: class MapProjec
- //javadoc: MapProjec
- public class MapProjec : Map
- {
- 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_MapProjec_delete (nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose (disposing);
- }
- #else
- return;
- #endif
- }
- protected internal MapProjec (IntPtr addr)
- : base (addr)
- {
- }
- // internal usage only
- public static new MapProjec __fromPtr__ (IntPtr addr)
- {
- return new MapProjec (addr);
- }
- //
- // C++: cv::reg::MapProjec::MapProjec(Mat projTr)
- //
- //javadoc: MapProjec::MapProjec(projTr)
- public MapProjec (Mat projTr) :
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- base (reg_MapProjec_MapProjec_10 (projTr.nativeObj))
-
- #else
- base (IntPtr.Zero)
- #endif
- {
- return;
- }
- //
- // C++: cv::reg::MapProjec::MapProjec()
- //
- //javadoc: MapProjec::MapProjec()
- public MapProjec () :
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- base (reg_MapProjec_MapProjec_11 ())
-
- #else
- base (IntPtr.Zero)
- #endif
- {
- return;
- }
- //
- // C++: Ptr_Map cv::reg::MapProjec::inverseMap()
- //
- //javadoc: MapProjec::inverseMap()
- public override Map inverseMap ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- Map retVal = Map.__fromPtr__ (reg_MapProjec_inverseMap_10 (nativeObj));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: void cv::reg::MapProjec::compose(Ptr_Map map)
- //
- //javadoc: MapProjec::compose(map)
- public override void compose (Map map)
- {
- ThrowIfDisposed ();
- if (map != null)
- map.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- reg_MapProjec_compose_10 (nativeObj, map.getNativeObjAddr ());
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::reg::MapProjec::getProjTr(Mat& projTr)
- //
- //javadoc: MapProjec::getProjTr(projTr)
- public void getProjTr (Mat projTr)
- {
- ThrowIfDisposed ();
- if (projTr != null)
- projTr.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- reg_MapProjec_getProjTr_10 (nativeObj, projTr.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::reg::MapProjec::inverseWarp(Mat img1, Mat& img2)
- //
- //javadoc: MapProjec::inverseWarp(img1, img2)
- public override void inverseWarp (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
-
- reg_MapProjec_inverseWarp_10 (nativeObj, img1.nativeObj, img2.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::reg::MapProjec::normalize()
- //
- //javadoc: MapProjec::normalize()
- public void normalize ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- reg_MapProjec_normalize_10 (nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::reg::MapProjec::scale(double factor)
- //
- //javadoc: MapProjec::scale(factor)
- public override void scale (double factor)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- reg_MapProjec_scale_10 (nativeObj, factor);
-
- return;
- #else
- return;
- #endif
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
-
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: cv::reg::MapProjec::MapProjec(Mat projTr)
- [DllImport (LIBNAME)]
- private static extern IntPtr reg_MapProjec_MapProjec_10 (IntPtr projTr_nativeObj);
- // C++: cv::reg::MapProjec::MapProjec()
- [DllImport (LIBNAME)]
- private static extern IntPtr reg_MapProjec_MapProjec_11 ();
- // C++: Ptr_Map cv::reg::MapProjec::inverseMap()
- [DllImport (LIBNAME)]
- private static extern IntPtr reg_MapProjec_inverseMap_10 (IntPtr nativeObj);
- // C++: void cv::reg::MapProjec::compose(Ptr_Map map)
- [DllImport (LIBNAME)]
- private static extern void reg_MapProjec_compose_10 (IntPtr nativeObj, IntPtr map_nativeObj);
- // C++: void cv::reg::MapProjec::getProjTr(Mat& projTr)
- [DllImport (LIBNAME)]
- private static extern void reg_MapProjec_getProjTr_10 (IntPtr nativeObj, IntPtr projTr_nativeObj);
- // C++: void cv::reg::MapProjec::inverseWarp(Mat img1, Mat& img2)
- [DllImport (LIBNAME)]
- private static extern void reg_MapProjec_inverseWarp_10 (IntPtr nativeObj, IntPtr img1_nativeObj, IntPtr img2_nativeObj);
- // C++: void cv::reg::MapProjec::normalize()
- [DllImport (LIBNAME)]
- private static extern void reg_MapProjec_normalize_10 (IntPtr nativeObj);
- // C++: void cv::reg::MapProjec::scale(double factor)
- [DllImport (LIBNAME)]
- private static extern void reg_MapProjec_scale_10 (IntPtr nativeObj, double factor);
- // native support for java finalize()
- [DllImport (LIBNAME)]
- private static extern void reg_MapProjec_delete (IntPtr nativeObj);
- }
- }
|