123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493 |
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.ImgprocModule
- {
- // C++: class GeneralizedHoughGuil
- /**
- * finds arbitrary template in the grayscale image using Generalized Hough Transform
- *
- * Detects position, translation and rotation CITE: Guil1999 .
- */
- public class GeneralizedHoughGuil : GeneralizedHough
- {
- protected override void Dispose(bool disposing)
- {
- try
- {
- if (disposing)
- {
- }
- if (IsEnabledDispose)
- {
- if (nativeObj != IntPtr.Zero)
- imgproc_GeneralizedHoughGuil_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- }
- finally
- {
- base.Dispose(disposing);
- }
- }
- protected internal GeneralizedHoughGuil(IntPtr addr) : base(addr) { }
- // internal usage only
- public static new GeneralizedHoughGuil __fromPtr__(IntPtr addr) { return new GeneralizedHoughGuil(addr); }
- //
- // C++: void cv::GeneralizedHoughGuil::setXi(double xi)
- //
- public void setXi(double xi)
- {
- ThrowIfDisposed();
- imgproc_GeneralizedHoughGuil_setXi_10(nativeObj, xi);
- }
- //
- // C++: double cv::GeneralizedHoughGuil::getXi()
- //
- public double getXi()
- {
- ThrowIfDisposed();
- return imgproc_GeneralizedHoughGuil_getXi_10(nativeObj);
- }
- //
- // C++: void cv::GeneralizedHoughGuil::setLevels(int levels)
- //
- public void setLevels(int levels)
- {
- ThrowIfDisposed();
- imgproc_GeneralizedHoughGuil_setLevels_10(nativeObj, levels);
- }
- //
- // C++: int cv::GeneralizedHoughGuil::getLevels()
- //
- public int getLevels()
- {
- ThrowIfDisposed();
- return imgproc_GeneralizedHoughGuil_getLevels_10(nativeObj);
- }
- //
- // C++: void cv::GeneralizedHoughGuil::setAngleEpsilon(double angleEpsilon)
- //
- public void setAngleEpsilon(double angleEpsilon)
- {
- ThrowIfDisposed();
- imgproc_GeneralizedHoughGuil_setAngleEpsilon_10(nativeObj, angleEpsilon);
- }
- //
- // C++: double cv::GeneralizedHoughGuil::getAngleEpsilon()
- //
- public double getAngleEpsilon()
- {
- ThrowIfDisposed();
- return imgproc_GeneralizedHoughGuil_getAngleEpsilon_10(nativeObj);
- }
- //
- // C++: void cv::GeneralizedHoughGuil::setMinAngle(double minAngle)
- //
- public void setMinAngle(double minAngle)
- {
- ThrowIfDisposed();
- imgproc_GeneralizedHoughGuil_setMinAngle_10(nativeObj, minAngle);
- }
- //
- // C++: double cv::GeneralizedHoughGuil::getMinAngle()
- //
- public double getMinAngle()
- {
- ThrowIfDisposed();
- return imgproc_GeneralizedHoughGuil_getMinAngle_10(nativeObj);
- }
- //
- // C++: void cv::GeneralizedHoughGuil::setMaxAngle(double maxAngle)
- //
- public void setMaxAngle(double maxAngle)
- {
- ThrowIfDisposed();
- imgproc_GeneralizedHoughGuil_setMaxAngle_10(nativeObj, maxAngle);
- }
- //
- // C++: double cv::GeneralizedHoughGuil::getMaxAngle()
- //
- public double getMaxAngle()
- {
- ThrowIfDisposed();
- return imgproc_GeneralizedHoughGuil_getMaxAngle_10(nativeObj);
- }
- //
- // C++: void cv::GeneralizedHoughGuil::setAngleStep(double angleStep)
- //
- public void setAngleStep(double angleStep)
- {
- ThrowIfDisposed();
- imgproc_GeneralizedHoughGuil_setAngleStep_10(nativeObj, angleStep);
- }
- //
- // C++: double cv::GeneralizedHoughGuil::getAngleStep()
- //
- public double getAngleStep()
- {
- ThrowIfDisposed();
- return imgproc_GeneralizedHoughGuil_getAngleStep_10(nativeObj);
- }
- //
- // C++: void cv::GeneralizedHoughGuil::setAngleThresh(int angleThresh)
- //
- public void setAngleThresh(int angleThresh)
- {
- ThrowIfDisposed();
- imgproc_GeneralizedHoughGuil_setAngleThresh_10(nativeObj, angleThresh);
- }
- //
- // C++: int cv::GeneralizedHoughGuil::getAngleThresh()
- //
- public int getAngleThresh()
- {
- ThrowIfDisposed();
- return imgproc_GeneralizedHoughGuil_getAngleThresh_10(nativeObj);
- }
- //
- // C++: void cv::GeneralizedHoughGuil::setMinScale(double minScale)
- //
- public void setMinScale(double minScale)
- {
- ThrowIfDisposed();
- imgproc_GeneralizedHoughGuil_setMinScale_10(nativeObj, minScale);
- }
- //
- // C++: double cv::GeneralizedHoughGuil::getMinScale()
- //
- public double getMinScale()
- {
- ThrowIfDisposed();
- return imgproc_GeneralizedHoughGuil_getMinScale_10(nativeObj);
- }
- //
- // C++: void cv::GeneralizedHoughGuil::setMaxScale(double maxScale)
- //
- public void setMaxScale(double maxScale)
- {
- ThrowIfDisposed();
- imgproc_GeneralizedHoughGuil_setMaxScale_10(nativeObj, maxScale);
- }
- //
- // C++: double cv::GeneralizedHoughGuil::getMaxScale()
- //
- public double getMaxScale()
- {
- ThrowIfDisposed();
- return imgproc_GeneralizedHoughGuil_getMaxScale_10(nativeObj);
- }
- //
- // C++: void cv::GeneralizedHoughGuil::setScaleStep(double scaleStep)
- //
- public void setScaleStep(double scaleStep)
- {
- ThrowIfDisposed();
- imgproc_GeneralizedHoughGuil_setScaleStep_10(nativeObj, scaleStep);
- }
- //
- // C++: double cv::GeneralizedHoughGuil::getScaleStep()
- //
- public double getScaleStep()
- {
- ThrowIfDisposed();
- return imgproc_GeneralizedHoughGuil_getScaleStep_10(nativeObj);
- }
- //
- // C++: void cv::GeneralizedHoughGuil::setScaleThresh(int scaleThresh)
- //
- public void setScaleThresh(int scaleThresh)
- {
- ThrowIfDisposed();
- imgproc_GeneralizedHoughGuil_setScaleThresh_10(nativeObj, scaleThresh);
- }
- //
- // C++: int cv::GeneralizedHoughGuil::getScaleThresh()
- //
- public int getScaleThresh()
- {
- ThrowIfDisposed();
- return imgproc_GeneralizedHoughGuil_getScaleThresh_10(nativeObj);
- }
- //
- // C++: void cv::GeneralizedHoughGuil::setPosThresh(int posThresh)
- //
- public void setPosThresh(int posThresh)
- {
- ThrowIfDisposed();
- imgproc_GeneralizedHoughGuil_setPosThresh_10(nativeObj, posThresh);
- }
- //
- // C++: int cv::GeneralizedHoughGuil::getPosThresh()
- //
- public int getPosThresh()
- {
- ThrowIfDisposed();
- return imgproc_GeneralizedHoughGuil_getPosThresh_10(nativeObj);
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: void cv::GeneralizedHoughGuil::setXi(double xi)
- [DllImport(LIBNAME)]
- private static extern void imgproc_GeneralizedHoughGuil_setXi_10(IntPtr nativeObj, double xi);
- // C++: double cv::GeneralizedHoughGuil::getXi()
- [DllImport(LIBNAME)]
- private static extern double imgproc_GeneralizedHoughGuil_getXi_10(IntPtr nativeObj);
- // C++: void cv::GeneralizedHoughGuil::setLevels(int levels)
- [DllImport(LIBNAME)]
- private static extern void imgproc_GeneralizedHoughGuil_setLevels_10(IntPtr nativeObj, int levels);
- // C++: int cv::GeneralizedHoughGuil::getLevels()
- [DllImport(LIBNAME)]
- private static extern int imgproc_GeneralizedHoughGuil_getLevels_10(IntPtr nativeObj);
- // C++: void cv::GeneralizedHoughGuil::setAngleEpsilon(double angleEpsilon)
- [DllImport(LIBNAME)]
- private static extern void imgproc_GeneralizedHoughGuil_setAngleEpsilon_10(IntPtr nativeObj, double angleEpsilon);
- // C++: double cv::GeneralizedHoughGuil::getAngleEpsilon()
- [DllImport(LIBNAME)]
- private static extern double imgproc_GeneralizedHoughGuil_getAngleEpsilon_10(IntPtr nativeObj);
- // C++: void cv::GeneralizedHoughGuil::setMinAngle(double minAngle)
- [DllImport(LIBNAME)]
- private static extern void imgproc_GeneralizedHoughGuil_setMinAngle_10(IntPtr nativeObj, double minAngle);
- // C++: double cv::GeneralizedHoughGuil::getMinAngle()
- [DllImport(LIBNAME)]
- private static extern double imgproc_GeneralizedHoughGuil_getMinAngle_10(IntPtr nativeObj);
- // C++: void cv::GeneralizedHoughGuil::setMaxAngle(double maxAngle)
- [DllImport(LIBNAME)]
- private static extern void imgproc_GeneralizedHoughGuil_setMaxAngle_10(IntPtr nativeObj, double maxAngle);
- // C++: double cv::GeneralizedHoughGuil::getMaxAngle()
- [DllImport(LIBNAME)]
- private static extern double imgproc_GeneralizedHoughGuil_getMaxAngle_10(IntPtr nativeObj);
- // C++: void cv::GeneralizedHoughGuil::setAngleStep(double angleStep)
- [DllImport(LIBNAME)]
- private static extern void imgproc_GeneralizedHoughGuil_setAngleStep_10(IntPtr nativeObj, double angleStep);
- // C++: double cv::GeneralizedHoughGuil::getAngleStep()
- [DllImport(LIBNAME)]
- private static extern double imgproc_GeneralizedHoughGuil_getAngleStep_10(IntPtr nativeObj);
- // C++: void cv::GeneralizedHoughGuil::setAngleThresh(int angleThresh)
- [DllImport(LIBNAME)]
- private static extern void imgproc_GeneralizedHoughGuil_setAngleThresh_10(IntPtr nativeObj, int angleThresh);
- // C++: int cv::GeneralizedHoughGuil::getAngleThresh()
- [DllImport(LIBNAME)]
- private static extern int imgproc_GeneralizedHoughGuil_getAngleThresh_10(IntPtr nativeObj);
- // C++: void cv::GeneralizedHoughGuil::setMinScale(double minScale)
- [DllImport(LIBNAME)]
- private static extern void imgproc_GeneralizedHoughGuil_setMinScale_10(IntPtr nativeObj, double minScale);
- // C++: double cv::GeneralizedHoughGuil::getMinScale()
- [DllImport(LIBNAME)]
- private static extern double imgproc_GeneralizedHoughGuil_getMinScale_10(IntPtr nativeObj);
- // C++: void cv::GeneralizedHoughGuil::setMaxScale(double maxScale)
- [DllImport(LIBNAME)]
- private static extern void imgproc_GeneralizedHoughGuil_setMaxScale_10(IntPtr nativeObj, double maxScale);
- // C++: double cv::GeneralizedHoughGuil::getMaxScale()
- [DllImport(LIBNAME)]
- private static extern double imgproc_GeneralizedHoughGuil_getMaxScale_10(IntPtr nativeObj);
- // C++: void cv::GeneralizedHoughGuil::setScaleStep(double scaleStep)
- [DllImport(LIBNAME)]
- private static extern void imgproc_GeneralizedHoughGuil_setScaleStep_10(IntPtr nativeObj, double scaleStep);
- // C++: double cv::GeneralizedHoughGuil::getScaleStep()
- [DllImport(LIBNAME)]
- private static extern double imgproc_GeneralizedHoughGuil_getScaleStep_10(IntPtr nativeObj);
- // C++: void cv::GeneralizedHoughGuil::setScaleThresh(int scaleThresh)
- [DllImport(LIBNAME)]
- private static extern void imgproc_GeneralizedHoughGuil_setScaleThresh_10(IntPtr nativeObj, int scaleThresh);
- // C++: int cv::GeneralizedHoughGuil::getScaleThresh()
- [DllImport(LIBNAME)]
- private static extern int imgproc_GeneralizedHoughGuil_getScaleThresh_10(IntPtr nativeObj);
- // C++: void cv::GeneralizedHoughGuil::setPosThresh(int posThresh)
- [DllImport(LIBNAME)]
- private static extern void imgproc_GeneralizedHoughGuil_setPosThresh_10(IntPtr nativeObj, int posThresh);
- // C++: int cv::GeneralizedHoughGuil::getPosThresh()
- [DllImport(LIBNAME)]
- private static extern int imgproc_GeneralizedHoughGuil_getPosThresh_10(IntPtr nativeObj);
- // native support for java finalize()
- [DllImport(LIBNAME)]
- private static extern void imgproc_GeneralizedHoughGuil_delete(IntPtr nativeObj);
- }
- }
|