123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547 |
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.Calib3dModule
- {
- // C++: class UsacParams
- public class UsacParams : DisposableOpenCVObject
- {
- protected override void Dispose(bool disposing)
- {
- try
- {
- if (disposing)
- {
- }
- if (IsEnabledDispose)
- {
- if (nativeObj != IntPtr.Zero)
- calib3d_UsacParams_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- }
- finally
- {
- base.Dispose(disposing);
- }
- }
- protected internal UsacParams(IntPtr addr) : base(addr) { }
- public IntPtr getNativeObjAddr() { return nativeObj; }
- // internal usage only
- public static UsacParams __fromPtr__(IntPtr addr) { return new UsacParams(addr); }
- //
- // C++: cv::UsacParams::UsacParams()
- //
- public UsacParams()
- {
- nativeObj = DisposableObject.ThrowIfNullIntPtr(calib3d_UsacParams_UsacParams_10());
- }
- //
- // C++: double UsacParams::confidence
- //
- public double get_confidence()
- {
- ThrowIfDisposed();
- return calib3d_UsacParams_get_1confidence_10(nativeObj);
- }
- //
- // C++: void UsacParams::confidence
- //
- public void set_confidence(double confidence)
- {
- ThrowIfDisposed();
- calib3d_UsacParams_set_1confidence_10(nativeObj, confidence);
- }
- //
- // C++: bool UsacParams::isParallel
- //
- public bool get_isParallel()
- {
- ThrowIfDisposed();
- return calib3d_UsacParams_get_1isParallel_10(nativeObj);
- }
- //
- // C++: void UsacParams::isParallel
- //
- public void set_isParallel(bool isParallel)
- {
- ThrowIfDisposed();
- calib3d_UsacParams_set_1isParallel_10(nativeObj, isParallel);
- }
- //
- // C++: int UsacParams::loIterations
- //
- public int get_loIterations()
- {
- ThrowIfDisposed();
- return calib3d_UsacParams_get_1loIterations_10(nativeObj);
- }
- //
- // C++: void UsacParams::loIterations
- //
- public void set_loIterations(int loIterations)
- {
- ThrowIfDisposed();
- calib3d_UsacParams_set_1loIterations_10(nativeObj, loIterations);
- }
- //
- // C++: LocalOptimMethod UsacParams::loMethod
- //
- public int get_loMethod()
- {
- ThrowIfDisposed();
- return calib3d_UsacParams_get_1loMethod_10(nativeObj);
- }
- //
- // C++: void UsacParams::loMethod
- //
- public void set_loMethod(int loMethod)
- {
- ThrowIfDisposed();
- calib3d_UsacParams_set_1loMethod_10(nativeObj, loMethod);
- }
- //
- // C++: int UsacParams::loSampleSize
- //
- public int get_loSampleSize()
- {
- ThrowIfDisposed();
- return calib3d_UsacParams_get_1loSampleSize_10(nativeObj);
- }
- //
- // C++: void UsacParams::loSampleSize
- //
- public void set_loSampleSize(int loSampleSize)
- {
- ThrowIfDisposed();
- calib3d_UsacParams_set_1loSampleSize_10(nativeObj, loSampleSize);
- }
- //
- // C++: int UsacParams::maxIterations
- //
- public int get_maxIterations()
- {
- ThrowIfDisposed();
- return calib3d_UsacParams_get_1maxIterations_10(nativeObj);
- }
- //
- // C++: void UsacParams::maxIterations
- //
- public void set_maxIterations(int maxIterations)
- {
- ThrowIfDisposed();
- calib3d_UsacParams_set_1maxIterations_10(nativeObj, maxIterations);
- }
- //
- // C++: NeighborSearchMethod UsacParams::neighborsSearch
- //
- public int get_neighborsSearch()
- {
- ThrowIfDisposed();
- return calib3d_UsacParams_get_1neighborsSearch_10(nativeObj);
- }
- //
- // C++: void UsacParams::neighborsSearch
- //
- public void set_neighborsSearch(int neighborsSearch)
- {
- ThrowIfDisposed();
- calib3d_UsacParams_set_1neighborsSearch_10(nativeObj, neighborsSearch);
- }
- //
- // C++: int UsacParams::randomGeneratorState
- //
- public int get_randomGeneratorState()
- {
- ThrowIfDisposed();
- return calib3d_UsacParams_get_1randomGeneratorState_10(nativeObj);
- }
- //
- // C++: void UsacParams::randomGeneratorState
- //
- public void set_randomGeneratorState(int randomGeneratorState)
- {
- ThrowIfDisposed();
- calib3d_UsacParams_set_1randomGeneratorState_10(nativeObj, randomGeneratorState);
- }
- //
- // C++: SamplingMethod UsacParams::sampler
- //
- public int get_sampler()
- {
- ThrowIfDisposed();
- return calib3d_UsacParams_get_1sampler_10(nativeObj);
- }
- //
- // C++: void UsacParams::sampler
- //
- public void set_sampler(int sampler)
- {
- ThrowIfDisposed();
- calib3d_UsacParams_set_1sampler_10(nativeObj, sampler);
- }
- //
- // C++: ScoreMethod UsacParams::score
- //
- public int get_score()
- {
- ThrowIfDisposed();
- return calib3d_UsacParams_get_1score_10(nativeObj);
- }
- //
- // C++: void UsacParams::score
- //
- public void set_score(int score)
- {
- ThrowIfDisposed();
- calib3d_UsacParams_set_1score_10(nativeObj, score);
- }
- //
- // C++: double UsacParams::threshold
- //
- public double get_threshold()
- {
- ThrowIfDisposed();
- return calib3d_UsacParams_get_1threshold_10(nativeObj);
- }
- //
- // C++: void UsacParams::threshold
- //
- public void set_threshold(double threshold)
- {
- ThrowIfDisposed();
- calib3d_UsacParams_set_1threshold_10(nativeObj, threshold);
- }
- //
- // C++: PolishingMethod UsacParams::final_polisher
- //
- public int get_final_polisher()
- {
- ThrowIfDisposed();
- return calib3d_UsacParams_get_1final_1polisher_10(nativeObj);
- }
- //
- // C++: void UsacParams::final_polisher
- //
- public void set_final_polisher(int final_polisher)
- {
- ThrowIfDisposed();
- calib3d_UsacParams_set_1final_1polisher_10(nativeObj, final_polisher);
- }
- //
- // C++: int UsacParams::final_polisher_iterations
- //
- public int get_final_polisher_iterations()
- {
- ThrowIfDisposed();
- return calib3d_UsacParams_get_1final_1polisher_1iterations_10(nativeObj);
- }
- //
- // C++: void UsacParams::final_polisher_iterations
- //
- public void set_final_polisher_iterations(int final_polisher_iterations)
- {
- ThrowIfDisposed();
- calib3d_UsacParams_set_1final_1polisher_1iterations_10(nativeObj, final_polisher_iterations);
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: cv::UsacParams::UsacParams()
- [DllImport(LIBNAME)]
- private static extern IntPtr calib3d_UsacParams_UsacParams_10();
- // C++: double UsacParams::confidence
- [DllImport(LIBNAME)]
- private static extern double calib3d_UsacParams_get_1confidence_10(IntPtr nativeObj);
- // C++: void UsacParams::confidence
- [DllImport(LIBNAME)]
- private static extern void calib3d_UsacParams_set_1confidence_10(IntPtr nativeObj, double confidence);
- // C++: bool UsacParams::isParallel
- [DllImport(LIBNAME)]
- [return: MarshalAs(UnmanagedType.U1)]
- private static extern bool calib3d_UsacParams_get_1isParallel_10(IntPtr nativeObj);
- // C++: void UsacParams::isParallel
- [DllImport(LIBNAME)]
- private static extern void calib3d_UsacParams_set_1isParallel_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool isParallel);
- // C++: int UsacParams::loIterations
- [DllImport(LIBNAME)]
- private static extern int calib3d_UsacParams_get_1loIterations_10(IntPtr nativeObj);
- // C++: void UsacParams::loIterations
- [DllImport(LIBNAME)]
- private static extern void calib3d_UsacParams_set_1loIterations_10(IntPtr nativeObj, int loIterations);
- // C++: LocalOptimMethod UsacParams::loMethod
- [DllImport(LIBNAME)]
- private static extern int calib3d_UsacParams_get_1loMethod_10(IntPtr nativeObj);
- // C++: void UsacParams::loMethod
- [DllImport(LIBNAME)]
- private static extern void calib3d_UsacParams_set_1loMethod_10(IntPtr nativeObj, int loMethod);
- // C++: int UsacParams::loSampleSize
- [DllImport(LIBNAME)]
- private static extern int calib3d_UsacParams_get_1loSampleSize_10(IntPtr nativeObj);
- // C++: void UsacParams::loSampleSize
- [DllImport(LIBNAME)]
- private static extern void calib3d_UsacParams_set_1loSampleSize_10(IntPtr nativeObj, int loSampleSize);
- // C++: int UsacParams::maxIterations
- [DllImport(LIBNAME)]
- private static extern int calib3d_UsacParams_get_1maxIterations_10(IntPtr nativeObj);
- // C++: void UsacParams::maxIterations
- [DllImport(LIBNAME)]
- private static extern void calib3d_UsacParams_set_1maxIterations_10(IntPtr nativeObj, int maxIterations);
- // C++: NeighborSearchMethod UsacParams::neighborsSearch
- [DllImport(LIBNAME)]
- private static extern int calib3d_UsacParams_get_1neighborsSearch_10(IntPtr nativeObj);
- // C++: void UsacParams::neighborsSearch
- [DllImport(LIBNAME)]
- private static extern void calib3d_UsacParams_set_1neighborsSearch_10(IntPtr nativeObj, int neighborsSearch);
- // C++: int UsacParams::randomGeneratorState
- [DllImport(LIBNAME)]
- private static extern int calib3d_UsacParams_get_1randomGeneratorState_10(IntPtr nativeObj);
- // C++: void UsacParams::randomGeneratorState
- [DllImport(LIBNAME)]
- private static extern void calib3d_UsacParams_set_1randomGeneratorState_10(IntPtr nativeObj, int randomGeneratorState);
- // C++: SamplingMethod UsacParams::sampler
- [DllImport(LIBNAME)]
- private static extern int calib3d_UsacParams_get_1sampler_10(IntPtr nativeObj);
- // C++: void UsacParams::sampler
- [DllImport(LIBNAME)]
- private static extern void calib3d_UsacParams_set_1sampler_10(IntPtr nativeObj, int sampler);
- // C++: ScoreMethod UsacParams::score
- [DllImport(LIBNAME)]
- private static extern int calib3d_UsacParams_get_1score_10(IntPtr nativeObj);
- // C++: void UsacParams::score
- [DllImport(LIBNAME)]
- private static extern void calib3d_UsacParams_set_1score_10(IntPtr nativeObj, int score);
- // C++: double UsacParams::threshold
- [DllImport(LIBNAME)]
- private static extern double calib3d_UsacParams_get_1threshold_10(IntPtr nativeObj);
- // C++: void UsacParams::threshold
- [DllImport(LIBNAME)]
- private static extern void calib3d_UsacParams_set_1threshold_10(IntPtr nativeObj, double threshold);
- // C++: PolishingMethod UsacParams::final_polisher
- [DllImport(LIBNAME)]
- private static extern int calib3d_UsacParams_get_1final_1polisher_10(IntPtr nativeObj);
- // C++: void UsacParams::final_polisher
- [DllImport(LIBNAME)]
- private static extern void calib3d_UsacParams_set_1final_1polisher_10(IntPtr nativeObj, int final_polisher);
- // C++: int UsacParams::final_polisher_iterations
- [DllImport(LIBNAME)]
- private static extern int calib3d_UsacParams_get_1final_1polisher_1iterations_10(IntPtr nativeObj);
- // C++: void UsacParams::final_polisher_iterations
- [DllImport(LIBNAME)]
- private static extern void calib3d_UsacParams_set_1final_1polisher_1iterations_10(IntPtr nativeObj, int final_polisher_iterations);
- // native support for java finalize()
- [DllImport(LIBNAME)]
- private static extern void calib3d_UsacParams_delete(IntPtr nativeObj);
- }
- }
|