123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549 |
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.XimgprocModule
- {
- // C++: class Params
- public class EdgeDrawing_Params : DisposableOpenCVObject
- {
- protected override void Dispose(bool disposing)
- {
- try
- {
- if (disposing)
- {
- }
- if (IsEnabledDispose)
- {
- if (nativeObj != IntPtr.Zero)
- ximgproc_EdgeDrawing_1Params_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- }
- finally
- {
- base.Dispose(disposing);
- }
- }
- protected internal EdgeDrawing_Params(IntPtr addr) : base(addr) { }
- public IntPtr getNativeObjAddr() { return nativeObj; }
- // internal usage only
- public static EdgeDrawing_Params __fromPtr__(IntPtr addr) { return new EdgeDrawing_Params(addr); }
- //
- // C++: cv::ximgproc::EdgeDrawing::Params::Params()
- //
- public EdgeDrawing_Params()
- {
- nativeObj = DisposableObject.ThrowIfNullIntPtr(ximgproc_EdgeDrawing_1Params_EdgeDrawing_1Params_10());
- }
- //
- // C++: bool EdgeDrawing_Params::PFmode
- //
- public bool get_PFmode()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeDrawing_1Params_get_1PFmode_10(nativeObj);
- }
- //
- // C++: void EdgeDrawing_Params::PFmode
- //
- public void set_PFmode(bool PFmode)
- {
- ThrowIfDisposed();
- ximgproc_EdgeDrawing_1Params_set_1PFmode_10(nativeObj, PFmode);
- }
- //
- // C++: int EdgeDrawing_Params::EdgeDetectionOperator
- //
- public int get_EdgeDetectionOperator()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeDrawing_1Params_get_1EdgeDetectionOperator_10(nativeObj);
- }
- //
- // C++: void EdgeDrawing_Params::EdgeDetectionOperator
- //
- public void set_EdgeDetectionOperator(int EdgeDetectionOperator)
- {
- ThrowIfDisposed();
- ximgproc_EdgeDrawing_1Params_set_1EdgeDetectionOperator_10(nativeObj, EdgeDetectionOperator);
- }
- //
- // C++: int EdgeDrawing_Params::GradientThresholdValue
- //
- public int get_GradientThresholdValue()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeDrawing_1Params_get_1GradientThresholdValue_10(nativeObj);
- }
- //
- // C++: void EdgeDrawing_Params::GradientThresholdValue
- //
- public void set_GradientThresholdValue(int GradientThresholdValue)
- {
- ThrowIfDisposed();
- ximgproc_EdgeDrawing_1Params_set_1GradientThresholdValue_10(nativeObj, GradientThresholdValue);
- }
- //
- // C++: int EdgeDrawing_Params::AnchorThresholdValue
- //
- public int get_AnchorThresholdValue()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeDrawing_1Params_get_1AnchorThresholdValue_10(nativeObj);
- }
- //
- // C++: void EdgeDrawing_Params::AnchorThresholdValue
- //
- public void set_AnchorThresholdValue(int AnchorThresholdValue)
- {
- ThrowIfDisposed();
- ximgproc_EdgeDrawing_1Params_set_1AnchorThresholdValue_10(nativeObj, AnchorThresholdValue);
- }
- //
- // C++: int EdgeDrawing_Params::ScanInterval
- //
- public int get_ScanInterval()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeDrawing_1Params_get_1ScanInterval_10(nativeObj);
- }
- //
- // C++: void EdgeDrawing_Params::ScanInterval
- //
- public void set_ScanInterval(int ScanInterval)
- {
- ThrowIfDisposed();
- ximgproc_EdgeDrawing_1Params_set_1ScanInterval_10(nativeObj, ScanInterval);
- }
- //
- // C++: int EdgeDrawing_Params::MinPathLength
- //
- public int get_MinPathLength()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeDrawing_1Params_get_1MinPathLength_10(nativeObj);
- }
- //
- // C++: void EdgeDrawing_Params::MinPathLength
- //
- public void set_MinPathLength(int MinPathLength)
- {
- ThrowIfDisposed();
- ximgproc_EdgeDrawing_1Params_set_1MinPathLength_10(nativeObj, MinPathLength);
- }
- //
- // C++: float EdgeDrawing_Params::Sigma
- //
- public float get_Sigma()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeDrawing_1Params_get_1Sigma_10(nativeObj);
- }
- //
- // C++: void EdgeDrawing_Params::Sigma
- //
- public void set_Sigma(float Sigma)
- {
- ThrowIfDisposed();
- ximgproc_EdgeDrawing_1Params_set_1Sigma_10(nativeObj, Sigma);
- }
- //
- // C++: bool EdgeDrawing_Params::SumFlag
- //
- public bool get_SumFlag()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeDrawing_1Params_get_1SumFlag_10(nativeObj);
- }
- //
- // C++: void EdgeDrawing_Params::SumFlag
- //
- public void set_SumFlag(bool SumFlag)
- {
- ThrowIfDisposed();
- ximgproc_EdgeDrawing_1Params_set_1SumFlag_10(nativeObj, SumFlag);
- }
- //
- // C++: bool EdgeDrawing_Params::NFAValidation
- //
- public bool get_NFAValidation()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeDrawing_1Params_get_1NFAValidation_10(nativeObj);
- }
- //
- // C++: void EdgeDrawing_Params::NFAValidation
- //
- public void set_NFAValidation(bool NFAValidation)
- {
- ThrowIfDisposed();
- ximgproc_EdgeDrawing_1Params_set_1NFAValidation_10(nativeObj, NFAValidation);
- }
- //
- // C++: int EdgeDrawing_Params::MinLineLength
- //
- public int get_MinLineLength()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeDrawing_1Params_get_1MinLineLength_10(nativeObj);
- }
- //
- // C++: void EdgeDrawing_Params::MinLineLength
- //
- public void set_MinLineLength(int MinLineLength)
- {
- ThrowIfDisposed();
- ximgproc_EdgeDrawing_1Params_set_1MinLineLength_10(nativeObj, MinLineLength);
- }
- //
- // C++: double EdgeDrawing_Params::MaxDistanceBetweenTwoLines
- //
- public double get_MaxDistanceBetweenTwoLines()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeDrawing_1Params_get_1MaxDistanceBetweenTwoLines_10(nativeObj);
- }
- //
- // C++: void EdgeDrawing_Params::MaxDistanceBetweenTwoLines
- //
- public void set_MaxDistanceBetweenTwoLines(double MaxDistanceBetweenTwoLines)
- {
- ThrowIfDisposed();
- ximgproc_EdgeDrawing_1Params_set_1MaxDistanceBetweenTwoLines_10(nativeObj, MaxDistanceBetweenTwoLines);
- }
- //
- // C++: double EdgeDrawing_Params::LineFitErrorThreshold
- //
- public double get_LineFitErrorThreshold()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeDrawing_1Params_get_1LineFitErrorThreshold_10(nativeObj);
- }
- //
- // C++: void EdgeDrawing_Params::LineFitErrorThreshold
- //
- public void set_LineFitErrorThreshold(double LineFitErrorThreshold)
- {
- ThrowIfDisposed();
- ximgproc_EdgeDrawing_1Params_set_1LineFitErrorThreshold_10(nativeObj, LineFitErrorThreshold);
- }
- //
- // C++: double EdgeDrawing_Params::MaxErrorThreshold
- //
- public double get_MaxErrorThreshold()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeDrawing_1Params_get_1MaxErrorThreshold_10(nativeObj);
- }
- //
- // C++: void EdgeDrawing_Params::MaxErrorThreshold
- //
- public void set_MaxErrorThreshold(double MaxErrorThreshold)
- {
- ThrowIfDisposed();
- ximgproc_EdgeDrawing_1Params_set_1MaxErrorThreshold_10(nativeObj, MaxErrorThreshold);
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: cv::ximgproc::EdgeDrawing::Params::Params()
- [DllImport(LIBNAME)]
- private static extern IntPtr ximgproc_EdgeDrawing_1Params_EdgeDrawing_1Params_10();
- // C++: bool EdgeDrawing_Params::PFmode
- [DllImport(LIBNAME)]
- [return: MarshalAs(UnmanagedType.U1)]
- private static extern bool ximgproc_EdgeDrawing_1Params_get_1PFmode_10(IntPtr nativeObj);
- // C++: void EdgeDrawing_Params::PFmode
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeDrawing_1Params_set_1PFmode_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool PFmode);
- // C++: int EdgeDrawing_Params::EdgeDetectionOperator
- [DllImport(LIBNAME)]
- private static extern int ximgproc_EdgeDrawing_1Params_get_1EdgeDetectionOperator_10(IntPtr nativeObj);
- // C++: void EdgeDrawing_Params::EdgeDetectionOperator
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeDrawing_1Params_set_1EdgeDetectionOperator_10(IntPtr nativeObj, int EdgeDetectionOperator);
- // C++: int EdgeDrawing_Params::GradientThresholdValue
- [DllImport(LIBNAME)]
- private static extern int ximgproc_EdgeDrawing_1Params_get_1GradientThresholdValue_10(IntPtr nativeObj);
- // C++: void EdgeDrawing_Params::GradientThresholdValue
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeDrawing_1Params_set_1GradientThresholdValue_10(IntPtr nativeObj, int GradientThresholdValue);
- // C++: int EdgeDrawing_Params::AnchorThresholdValue
- [DllImport(LIBNAME)]
- private static extern int ximgproc_EdgeDrawing_1Params_get_1AnchorThresholdValue_10(IntPtr nativeObj);
- // C++: void EdgeDrawing_Params::AnchorThresholdValue
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeDrawing_1Params_set_1AnchorThresholdValue_10(IntPtr nativeObj, int AnchorThresholdValue);
- // C++: int EdgeDrawing_Params::ScanInterval
- [DllImport(LIBNAME)]
- private static extern int ximgproc_EdgeDrawing_1Params_get_1ScanInterval_10(IntPtr nativeObj);
- // C++: void EdgeDrawing_Params::ScanInterval
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeDrawing_1Params_set_1ScanInterval_10(IntPtr nativeObj, int ScanInterval);
- // C++: int EdgeDrawing_Params::MinPathLength
- [DllImport(LIBNAME)]
- private static extern int ximgproc_EdgeDrawing_1Params_get_1MinPathLength_10(IntPtr nativeObj);
- // C++: void EdgeDrawing_Params::MinPathLength
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeDrawing_1Params_set_1MinPathLength_10(IntPtr nativeObj, int MinPathLength);
- // C++: float EdgeDrawing_Params::Sigma
- [DllImport(LIBNAME)]
- private static extern float ximgproc_EdgeDrawing_1Params_get_1Sigma_10(IntPtr nativeObj);
- // C++: void EdgeDrawing_Params::Sigma
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeDrawing_1Params_set_1Sigma_10(IntPtr nativeObj, float Sigma);
- // C++: bool EdgeDrawing_Params::SumFlag
- [DllImport(LIBNAME)]
- [return: MarshalAs(UnmanagedType.U1)]
- private static extern bool ximgproc_EdgeDrawing_1Params_get_1SumFlag_10(IntPtr nativeObj);
- // C++: void EdgeDrawing_Params::SumFlag
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeDrawing_1Params_set_1SumFlag_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool SumFlag);
- // C++: bool EdgeDrawing_Params::NFAValidation
- [DllImport(LIBNAME)]
- [return: MarshalAs(UnmanagedType.U1)]
- private static extern bool ximgproc_EdgeDrawing_1Params_get_1NFAValidation_10(IntPtr nativeObj);
- // C++: void EdgeDrawing_Params::NFAValidation
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeDrawing_1Params_set_1NFAValidation_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool NFAValidation);
- // C++: int EdgeDrawing_Params::MinLineLength
- [DllImport(LIBNAME)]
- private static extern int ximgproc_EdgeDrawing_1Params_get_1MinLineLength_10(IntPtr nativeObj);
- // C++: void EdgeDrawing_Params::MinLineLength
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeDrawing_1Params_set_1MinLineLength_10(IntPtr nativeObj, int MinLineLength);
- // C++: double EdgeDrawing_Params::MaxDistanceBetweenTwoLines
- [DllImport(LIBNAME)]
- private static extern double ximgproc_EdgeDrawing_1Params_get_1MaxDistanceBetweenTwoLines_10(IntPtr nativeObj);
- // C++: void EdgeDrawing_Params::MaxDistanceBetweenTwoLines
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeDrawing_1Params_set_1MaxDistanceBetweenTwoLines_10(IntPtr nativeObj, double MaxDistanceBetweenTwoLines);
- // C++: double EdgeDrawing_Params::LineFitErrorThreshold
- [DllImport(LIBNAME)]
- private static extern double ximgproc_EdgeDrawing_1Params_get_1LineFitErrorThreshold_10(IntPtr nativeObj);
- // C++: void EdgeDrawing_Params::LineFitErrorThreshold
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeDrawing_1Params_set_1LineFitErrorThreshold_10(IntPtr nativeObj, double LineFitErrorThreshold);
- // C++: double EdgeDrawing_Params::MaxErrorThreshold
- [DllImport(LIBNAME)]
- private static extern double ximgproc_EdgeDrawing_1Params_get_1MaxErrorThreshold_10(IntPtr nativeObj);
- // C++: void EdgeDrawing_Params::MaxErrorThreshold
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeDrawing_1Params_set_1MaxErrorThreshold_10(IntPtr nativeObj, double MaxErrorThreshold);
- // native support for java finalize()
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeDrawing_1Params_delete(IntPtr nativeObj);
- }
- }
|