123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782 |
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.Features2dModule
- {
- // C++: class Params
- public class SimpleBlobDetector_Params : DisposableOpenCVObject
- {
- protected override void Dispose(bool disposing)
- {
- try
- {
- if (disposing)
- {
- }
- if (IsEnabledDispose)
- {
- if (nativeObj != IntPtr.Zero)
- features2d_SimpleBlobDetector_1Params_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- }
- finally
- {
- base.Dispose(disposing);
- }
- }
- protected internal SimpleBlobDetector_Params(IntPtr addr) : base(addr) { }
- public IntPtr getNativeObjAddr() { return nativeObj; }
- // internal usage only
- public static SimpleBlobDetector_Params __fromPtr__(IntPtr addr) { return new SimpleBlobDetector_Params(addr); }
- //
- // C++: cv::SimpleBlobDetector::Params::Params()
- //
- public SimpleBlobDetector_Params()
- {
- nativeObj = DisposableObject.ThrowIfNullIntPtr(features2d_SimpleBlobDetector_1Params_SimpleBlobDetector_1Params_10());
- }
- //
- // C++: float SimpleBlobDetector_Params::thresholdStep
- //
- public float get_thresholdStep()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1thresholdStep_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::thresholdStep
- //
- public void set_thresholdStep(float thresholdStep)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1thresholdStep_10(nativeObj, thresholdStep);
- }
- //
- // C++: float SimpleBlobDetector_Params::minThreshold
- //
- public float get_minThreshold()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1minThreshold_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::minThreshold
- //
- public void set_minThreshold(float minThreshold)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1minThreshold_10(nativeObj, minThreshold);
- }
- //
- // C++: float SimpleBlobDetector_Params::maxThreshold
- //
- public float get_maxThreshold()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1maxThreshold_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::maxThreshold
- //
- public void set_maxThreshold(float maxThreshold)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1maxThreshold_10(nativeObj, maxThreshold);
- }
- //
- // C++: size_t SimpleBlobDetector_Params::minRepeatability
- //
- public long get_minRepeatability()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1minRepeatability_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::minRepeatability
- //
- public void set_minRepeatability(long minRepeatability)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1minRepeatability_10(nativeObj, minRepeatability);
- }
- //
- // C++: float SimpleBlobDetector_Params::minDistBetweenBlobs
- //
- public float get_minDistBetweenBlobs()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1minDistBetweenBlobs_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::minDistBetweenBlobs
- //
- public void set_minDistBetweenBlobs(float minDistBetweenBlobs)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1minDistBetweenBlobs_10(nativeObj, minDistBetweenBlobs);
- }
- //
- // C++: bool SimpleBlobDetector_Params::filterByColor
- //
- public bool get_filterByColor()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1filterByColor_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::filterByColor
- //
- public void set_filterByColor(bool filterByColor)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1filterByColor_10(nativeObj, filterByColor);
- }
- //
- // C++: uchar SimpleBlobDetector_Params::blobColor
- //
- // Return type 'uchar' is not supported, skipping the function
- //
- // C++: void SimpleBlobDetector_Params::blobColor
- //
- // Unknown type 'uchar' (I), skipping the function
- //
- // C++: bool SimpleBlobDetector_Params::filterByArea
- //
- public bool get_filterByArea()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1filterByArea_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::filterByArea
- //
- public void set_filterByArea(bool filterByArea)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1filterByArea_10(nativeObj, filterByArea);
- }
- //
- // C++: float SimpleBlobDetector_Params::minArea
- //
- public float get_minArea()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1minArea_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::minArea
- //
- public void set_minArea(float minArea)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1minArea_10(nativeObj, minArea);
- }
- //
- // C++: float SimpleBlobDetector_Params::maxArea
- //
- public float get_maxArea()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1maxArea_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::maxArea
- //
- public void set_maxArea(float maxArea)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1maxArea_10(nativeObj, maxArea);
- }
- //
- // C++: bool SimpleBlobDetector_Params::filterByCircularity
- //
- public bool get_filterByCircularity()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1filterByCircularity_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::filterByCircularity
- //
- public void set_filterByCircularity(bool filterByCircularity)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1filterByCircularity_10(nativeObj, filterByCircularity);
- }
- //
- // C++: float SimpleBlobDetector_Params::minCircularity
- //
- public float get_minCircularity()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1minCircularity_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::minCircularity
- //
- public void set_minCircularity(float minCircularity)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1minCircularity_10(nativeObj, minCircularity);
- }
- //
- // C++: float SimpleBlobDetector_Params::maxCircularity
- //
- public float get_maxCircularity()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1maxCircularity_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::maxCircularity
- //
- public void set_maxCircularity(float maxCircularity)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1maxCircularity_10(nativeObj, maxCircularity);
- }
- //
- // C++: bool SimpleBlobDetector_Params::filterByInertia
- //
- public bool get_filterByInertia()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1filterByInertia_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::filterByInertia
- //
- public void set_filterByInertia(bool filterByInertia)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1filterByInertia_10(nativeObj, filterByInertia);
- }
- //
- // C++: float SimpleBlobDetector_Params::minInertiaRatio
- //
- public float get_minInertiaRatio()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1minInertiaRatio_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::minInertiaRatio
- //
- public void set_minInertiaRatio(float minInertiaRatio)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1minInertiaRatio_10(nativeObj, minInertiaRatio);
- }
- //
- // C++: float SimpleBlobDetector_Params::maxInertiaRatio
- //
- public float get_maxInertiaRatio()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1maxInertiaRatio_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::maxInertiaRatio
- //
- public void set_maxInertiaRatio(float maxInertiaRatio)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1maxInertiaRatio_10(nativeObj, maxInertiaRatio);
- }
- //
- // C++: bool SimpleBlobDetector_Params::filterByConvexity
- //
- public bool get_filterByConvexity()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1filterByConvexity_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::filterByConvexity
- //
- public void set_filterByConvexity(bool filterByConvexity)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1filterByConvexity_10(nativeObj, filterByConvexity);
- }
- //
- // C++: float SimpleBlobDetector_Params::minConvexity
- //
- public float get_minConvexity()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1minConvexity_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::minConvexity
- //
- public void set_minConvexity(float minConvexity)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1minConvexity_10(nativeObj, minConvexity);
- }
- //
- // C++: float SimpleBlobDetector_Params::maxConvexity
- //
- public float get_maxConvexity()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1maxConvexity_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::maxConvexity
- //
- public void set_maxConvexity(float maxConvexity)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1maxConvexity_10(nativeObj, maxConvexity);
- }
- //
- // C++: bool SimpleBlobDetector_Params::collectContours
- //
- public bool get_collectContours()
- {
- ThrowIfDisposed();
- return features2d_SimpleBlobDetector_1Params_get_1collectContours_10(nativeObj);
- }
- //
- // C++: void SimpleBlobDetector_Params::collectContours
- //
- public void set_collectContours(bool collectContours)
- {
- ThrowIfDisposed();
- features2d_SimpleBlobDetector_1Params_set_1collectContours_10(nativeObj, collectContours);
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: cv::SimpleBlobDetector::Params::Params()
- [DllImport(LIBNAME)]
- private static extern IntPtr features2d_SimpleBlobDetector_1Params_SimpleBlobDetector_1Params_10();
- // C++: float SimpleBlobDetector_Params::thresholdStep
- [DllImport(LIBNAME)]
- private static extern float features2d_SimpleBlobDetector_1Params_get_1thresholdStep_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::thresholdStep
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1thresholdStep_10(IntPtr nativeObj, float thresholdStep);
- // C++: float SimpleBlobDetector_Params::minThreshold
- [DllImport(LIBNAME)]
- private static extern float features2d_SimpleBlobDetector_1Params_get_1minThreshold_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::minThreshold
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1minThreshold_10(IntPtr nativeObj, float minThreshold);
- // C++: float SimpleBlobDetector_Params::maxThreshold
- [DllImport(LIBNAME)]
- private static extern float features2d_SimpleBlobDetector_1Params_get_1maxThreshold_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::maxThreshold
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1maxThreshold_10(IntPtr nativeObj, float maxThreshold);
- // C++: size_t SimpleBlobDetector_Params::minRepeatability
- [DllImport(LIBNAME)]
- private static extern long features2d_SimpleBlobDetector_1Params_get_1minRepeatability_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::minRepeatability
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1minRepeatability_10(IntPtr nativeObj, long minRepeatability);
- // C++: float SimpleBlobDetector_Params::minDistBetweenBlobs
- [DllImport(LIBNAME)]
- private static extern float features2d_SimpleBlobDetector_1Params_get_1minDistBetweenBlobs_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::minDistBetweenBlobs
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1minDistBetweenBlobs_10(IntPtr nativeObj, float minDistBetweenBlobs);
- // C++: bool SimpleBlobDetector_Params::filterByColor
- [DllImport(LIBNAME)]
- [return: MarshalAs(UnmanagedType.U1)]
- private static extern bool features2d_SimpleBlobDetector_1Params_get_1filterByColor_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::filterByColor
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1filterByColor_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool filterByColor);
- // C++: bool SimpleBlobDetector_Params::filterByArea
- [DllImport(LIBNAME)]
- [return: MarshalAs(UnmanagedType.U1)]
- private static extern bool features2d_SimpleBlobDetector_1Params_get_1filterByArea_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::filterByArea
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1filterByArea_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool filterByArea);
- // C++: float SimpleBlobDetector_Params::minArea
- [DllImport(LIBNAME)]
- private static extern float features2d_SimpleBlobDetector_1Params_get_1minArea_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::minArea
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1minArea_10(IntPtr nativeObj, float minArea);
- // C++: float SimpleBlobDetector_Params::maxArea
- [DllImport(LIBNAME)]
- private static extern float features2d_SimpleBlobDetector_1Params_get_1maxArea_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::maxArea
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1maxArea_10(IntPtr nativeObj, float maxArea);
- // C++: bool SimpleBlobDetector_Params::filterByCircularity
- [DllImport(LIBNAME)]
- [return: MarshalAs(UnmanagedType.U1)]
- private static extern bool features2d_SimpleBlobDetector_1Params_get_1filterByCircularity_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::filterByCircularity
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1filterByCircularity_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool filterByCircularity);
- // C++: float SimpleBlobDetector_Params::minCircularity
- [DllImport(LIBNAME)]
- private static extern float features2d_SimpleBlobDetector_1Params_get_1minCircularity_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::minCircularity
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1minCircularity_10(IntPtr nativeObj, float minCircularity);
- // C++: float SimpleBlobDetector_Params::maxCircularity
- [DllImport(LIBNAME)]
- private static extern float features2d_SimpleBlobDetector_1Params_get_1maxCircularity_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::maxCircularity
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1maxCircularity_10(IntPtr nativeObj, float maxCircularity);
- // C++: bool SimpleBlobDetector_Params::filterByInertia
- [DllImport(LIBNAME)]
- [return: MarshalAs(UnmanagedType.U1)]
- private static extern bool features2d_SimpleBlobDetector_1Params_get_1filterByInertia_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::filterByInertia
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1filterByInertia_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool filterByInertia);
- // C++: float SimpleBlobDetector_Params::minInertiaRatio
- [DllImport(LIBNAME)]
- private static extern float features2d_SimpleBlobDetector_1Params_get_1minInertiaRatio_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::minInertiaRatio
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1minInertiaRatio_10(IntPtr nativeObj, float minInertiaRatio);
- // C++: float SimpleBlobDetector_Params::maxInertiaRatio
- [DllImport(LIBNAME)]
- private static extern float features2d_SimpleBlobDetector_1Params_get_1maxInertiaRatio_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::maxInertiaRatio
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1maxInertiaRatio_10(IntPtr nativeObj, float maxInertiaRatio);
- // C++: bool SimpleBlobDetector_Params::filterByConvexity
- [DllImport(LIBNAME)]
- [return: MarshalAs(UnmanagedType.U1)]
- private static extern bool features2d_SimpleBlobDetector_1Params_get_1filterByConvexity_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::filterByConvexity
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1filterByConvexity_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool filterByConvexity);
- // C++: float SimpleBlobDetector_Params::minConvexity
- [DllImport(LIBNAME)]
- private static extern float features2d_SimpleBlobDetector_1Params_get_1minConvexity_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::minConvexity
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1minConvexity_10(IntPtr nativeObj, float minConvexity);
- // C++: float SimpleBlobDetector_Params::maxConvexity
- [DllImport(LIBNAME)]
- private static extern float features2d_SimpleBlobDetector_1Params_get_1maxConvexity_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::maxConvexity
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1maxConvexity_10(IntPtr nativeObj, float maxConvexity);
- // C++: bool SimpleBlobDetector_Params::collectContours
- [DllImport(LIBNAME)]
- [return: MarshalAs(UnmanagedType.U1)]
- private static extern bool features2d_SimpleBlobDetector_1Params_get_1collectContours_10(IntPtr nativeObj);
- // C++: void SimpleBlobDetector_Params::collectContours
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_set_1collectContours_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool collectContours);
- // native support for java finalize()
- [DllImport(LIBNAME)]
- private static extern void features2d_SimpleBlobDetector_1Params_delete(IntPtr nativeObj);
- }
- }
|