123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638 |
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.XimgprocModule
- {
- // C++: class EdgeBoxes
- /**
- * Class implementing EdgeBoxes algorithm from CITE: ZitnickECCV14edgeBoxes :
- */
- public class EdgeBoxes : Algorithm
- {
- protected override void Dispose(bool disposing)
- {
- try
- {
- if (disposing)
- {
- }
- if (IsEnabledDispose)
- {
- if (nativeObj != IntPtr.Zero)
- ximgproc_EdgeBoxes_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- }
- finally
- {
- base.Dispose(disposing);
- }
- }
- protected internal EdgeBoxes(IntPtr addr) : base(addr) { }
- // internal usage only
- public static new EdgeBoxes __fromPtr__(IntPtr addr) { return new EdgeBoxes(addr); }
- //
- // C++: void cv::ximgproc::EdgeBoxes::getBoundingBoxes(Mat edge_map, Mat orientation_map, vector_Rect& boxes, Mat& scores = Mat())
- //
- /**
- * Returns array containing proposal boxes.
- *
- * param edge_map edge image.
- * param orientation_map orientation map.
- * param boxes proposal boxes.
- * param scores of the proposal boxes, provided a vector of float types.
- */
- public void getBoundingBoxes(Mat edge_map, Mat orientation_map, MatOfRect boxes, Mat scores)
- {
- ThrowIfDisposed();
- if (edge_map != null) edge_map.ThrowIfDisposed();
- if (orientation_map != null) orientation_map.ThrowIfDisposed();
- if (boxes != null) boxes.ThrowIfDisposed();
- if (scores != null) scores.ThrowIfDisposed();
- Mat boxes_mat = boxes;
- ximgproc_EdgeBoxes_getBoundingBoxes_10(nativeObj, edge_map.nativeObj, orientation_map.nativeObj, boxes_mat.nativeObj, scores.nativeObj);
- }
- /**
- * Returns array containing proposal boxes.
- *
- * param edge_map edge image.
- * param orientation_map orientation map.
- * param boxes proposal boxes.
- */
- public void getBoundingBoxes(Mat edge_map, Mat orientation_map, MatOfRect boxes)
- {
- ThrowIfDisposed();
- if (edge_map != null) edge_map.ThrowIfDisposed();
- if (orientation_map != null) orientation_map.ThrowIfDisposed();
- if (boxes != null) boxes.ThrowIfDisposed();
- Mat boxes_mat = boxes;
- ximgproc_EdgeBoxes_getBoundingBoxes_11(nativeObj, edge_map.nativeObj, orientation_map.nativeObj, boxes_mat.nativeObj);
- }
- //
- // C++: float cv::ximgproc::EdgeBoxes::getAlpha()
- //
- /**
- * Returns the step size of sliding window search.
- * return automatically generated
- */
- public float getAlpha()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeBoxes_getAlpha_10(nativeObj);
- }
- //
- // C++: void cv::ximgproc::EdgeBoxes::setAlpha(float value)
- //
- /**
- * Sets the step size of sliding window search.
- * param value automatically generated
- */
- public void setAlpha(float value)
- {
- ThrowIfDisposed();
- ximgproc_EdgeBoxes_setAlpha_10(nativeObj, value);
- }
- //
- // C++: float cv::ximgproc::EdgeBoxes::getBeta()
- //
- /**
- * Returns the nms threshold for object proposals.
- * return automatically generated
- */
- public float getBeta()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeBoxes_getBeta_10(nativeObj);
- }
- //
- // C++: void cv::ximgproc::EdgeBoxes::setBeta(float value)
- //
- /**
- * Sets the nms threshold for object proposals.
- * param value automatically generated
- */
- public void setBeta(float value)
- {
- ThrowIfDisposed();
- ximgproc_EdgeBoxes_setBeta_10(nativeObj, value);
- }
- //
- // C++: float cv::ximgproc::EdgeBoxes::getEta()
- //
- /**
- * Returns adaptation rate for nms threshold.
- * return automatically generated
- */
- public float getEta()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeBoxes_getEta_10(nativeObj);
- }
- //
- // C++: void cv::ximgproc::EdgeBoxes::setEta(float value)
- //
- /**
- * Sets the adaptation rate for nms threshold.
- * param value automatically generated
- */
- public void setEta(float value)
- {
- ThrowIfDisposed();
- ximgproc_EdgeBoxes_setEta_10(nativeObj, value);
- }
- //
- // C++: float cv::ximgproc::EdgeBoxes::getMinScore()
- //
- /**
- * Returns the min score of boxes to detect.
- * return automatically generated
- */
- public float getMinScore()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeBoxes_getMinScore_10(nativeObj);
- }
- //
- // C++: void cv::ximgproc::EdgeBoxes::setMinScore(float value)
- //
- /**
- * Sets the min score of boxes to detect.
- * param value automatically generated
- */
- public void setMinScore(float value)
- {
- ThrowIfDisposed();
- ximgproc_EdgeBoxes_setMinScore_10(nativeObj, value);
- }
- //
- // C++: int cv::ximgproc::EdgeBoxes::getMaxBoxes()
- //
- /**
- * Returns the max number of boxes to detect.
- * return automatically generated
- */
- public int getMaxBoxes()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeBoxes_getMaxBoxes_10(nativeObj);
- }
- //
- // C++: void cv::ximgproc::EdgeBoxes::setMaxBoxes(int value)
- //
- /**
- * Sets max number of boxes to detect.
- * param value automatically generated
- */
- public void setMaxBoxes(int value)
- {
- ThrowIfDisposed();
- ximgproc_EdgeBoxes_setMaxBoxes_10(nativeObj, value);
- }
- //
- // C++: float cv::ximgproc::EdgeBoxes::getEdgeMinMag()
- //
- /**
- * Returns the edge min magnitude.
- * return automatically generated
- */
- public float getEdgeMinMag()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeBoxes_getEdgeMinMag_10(nativeObj);
- }
- //
- // C++: void cv::ximgproc::EdgeBoxes::setEdgeMinMag(float value)
- //
- /**
- * Sets the edge min magnitude.
- * param value automatically generated
- */
- public void setEdgeMinMag(float value)
- {
- ThrowIfDisposed();
- ximgproc_EdgeBoxes_setEdgeMinMag_10(nativeObj, value);
- }
- //
- // C++: float cv::ximgproc::EdgeBoxes::getEdgeMergeThr()
- //
- /**
- * Returns the edge merge threshold.
- * return automatically generated
- */
- public float getEdgeMergeThr()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeBoxes_getEdgeMergeThr_10(nativeObj);
- }
- //
- // C++: void cv::ximgproc::EdgeBoxes::setEdgeMergeThr(float value)
- //
- /**
- * Sets the edge merge threshold.
- * param value automatically generated
- */
- public void setEdgeMergeThr(float value)
- {
- ThrowIfDisposed();
- ximgproc_EdgeBoxes_setEdgeMergeThr_10(nativeObj, value);
- }
- //
- // C++: float cv::ximgproc::EdgeBoxes::getClusterMinMag()
- //
- /**
- * Returns the cluster min magnitude.
- * return automatically generated
- */
- public float getClusterMinMag()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeBoxes_getClusterMinMag_10(nativeObj);
- }
- //
- // C++: void cv::ximgproc::EdgeBoxes::setClusterMinMag(float value)
- //
- /**
- * Sets the cluster min magnitude.
- * param value automatically generated
- */
- public void setClusterMinMag(float value)
- {
- ThrowIfDisposed();
- ximgproc_EdgeBoxes_setClusterMinMag_10(nativeObj, value);
- }
- //
- // C++: float cv::ximgproc::EdgeBoxes::getMaxAspectRatio()
- //
- /**
- * Returns the max aspect ratio of boxes.
- * return automatically generated
- */
- public float getMaxAspectRatio()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeBoxes_getMaxAspectRatio_10(nativeObj);
- }
- //
- // C++: void cv::ximgproc::EdgeBoxes::setMaxAspectRatio(float value)
- //
- /**
- * Sets the max aspect ratio of boxes.
- * param value automatically generated
- */
- public void setMaxAspectRatio(float value)
- {
- ThrowIfDisposed();
- ximgproc_EdgeBoxes_setMaxAspectRatio_10(nativeObj, value);
- }
- //
- // C++: float cv::ximgproc::EdgeBoxes::getMinBoxArea()
- //
- /**
- * Returns the minimum area of boxes.
- * return automatically generated
- */
- public float getMinBoxArea()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeBoxes_getMinBoxArea_10(nativeObj);
- }
- //
- // C++: void cv::ximgproc::EdgeBoxes::setMinBoxArea(float value)
- //
- /**
- * Sets the minimum area of boxes.
- * param value automatically generated
- */
- public void setMinBoxArea(float value)
- {
- ThrowIfDisposed();
- ximgproc_EdgeBoxes_setMinBoxArea_10(nativeObj, value);
- }
- //
- // C++: float cv::ximgproc::EdgeBoxes::getGamma()
- //
- /**
- * Returns the affinity sensitivity.
- * return automatically generated
- */
- public float getGamma()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeBoxes_getGamma_10(nativeObj);
- }
- //
- // C++: void cv::ximgproc::EdgeBoxes::setGamma(float value)
- //
- /**
- * Sets the affinity sensitivity
- * param value automatically generated
- */
- public void setGamma(float value)
- {
- ThrowIfDisposed();
- ximgproc_EdgeBoxes_setGamma_10(nativeObj, value);
- }
- //
- // C++: float cv::ximgproc::EdgeBoxes::getKappa()
- //
- /**
- * Returns the scale sensitivity.
- * return automatically generated
- */
- public float getKappa()
- {
- ThrowIfDisposed();
- return ximgproc_EdgeBoxes_getKappa_10(nativeObj);
- }
- //
- // C++: void cv::ximgproc::EdgeBoxes::setKappa(float value)
- //
- /**
- * Sets the scale sensitivity.
- * param value automatically generated
- */
- public void setKappa(float value)
- {
- ThrowIfDisposed();
- ximgproc_EdgeBoxes_setKappa_10(nativeObj, value);
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: void cv::ximgproc::EdgeBoxes::getBoundingBoxes(Mat edge_map, Mat orientation_map, vector_Rect& boxes, Mat& scores = Mat())
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeBoxes_getBoundingBoxes_10(IntPtr nativeObj, IntPtr edge_map_nativeObj, IntPtr orientation_map_nativeObj, IntPtr boxes_mat_nativeObj, IntPtr scores_nativeObj);
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeBoxes_getBoundingBoxes_11(IntPtr nativeObj, IntPtr edge_map_nativeObj, IntPtr orientation_map_nativeObj, IntPtr boxes_mat_nativeObj);
- // C++: float cv::ximgproc::EdgeBoxes::getAlpha()
- [DllImport(LIBNAME)]
- private static extern float ximgproc_EdgeBoxes_getAlpha_10(IntPtr nativeObj);
- // C++: void cv::ximgproc::EdgeBoxes::setAlpha(float value)
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeBoxes_setAlpha_10(IntPtr nativeObj, float value);
- // C++: float cv::ximgproc::EdgeBoxes::getBeta()
- [DllImport(LIBNAME)]
- private static extern float ximgproc_EdgeBoxes_getBeta_10(IntPtr nativeObj);
- // C++: void cv::ximgproc::EdgeBoxes::setBeta(float value)
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeBoxes_setBeta_10(IntPtr nativeObj, float value);
- // C++: float cv::ximgproc::EdgeBoxes::getEta()
- [DllImport(LIBNAME)]
- private static extern float ximgproc_EdgeBoxes_getEta_10(IntPtr nativeObj);
- // C++: void cv::ximgproc::EdgeBoxes::setEta(float value)
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeBoxes_setEta_10(IntPtr nativeObj, float value);
- // C++: float cv::ximgproc::EdgeBoxes::getMinScore()
- [DllImport(LIBNAME)]
- private static extern float ximgproc_EdgeBoxes_getMinScore_10(IntPtr nativeObj);
- // C++: void cv::ximgproc::EdgeBoxes::setMinScore(float value)
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeBoxes_setMinScore_10(IntPtr nativeObj, float value);
- // C++: int cv::ximgproc::EdgeBoxes::getMaxBoxes()
- [DllImport(LIBNAME)]
- private static extern int ximgproc_EdgeBoxes_getMaxBoxes_10(IntPtr nativeObj);
- // C++: void cv::ximgproc::EdgeBoxes::setMaxBoxes(int value)
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeBoxes_setMaxBoxes_10(IntPtr nativeObj, int value);
- // C++: float cv::ximgproc::EdgeBoxes::getEdgeMinMag()
- [DllImport(LIBNAME)]
- private static extern float ximgproc_EdgeBoxes_getEdgeMinMag_10(IntPtr nativeObj);
- // C++: void cv::ximgproc::EdgeBoxes::setEdgeMinMag(float value)
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeBoxes_setEdgeMinMag_10(IntPtr nativeObj, float value);
- // C++: float cv::ximgproc::EdgeBoxes::getEdgeMergeThr()
- [DllImport(LIBNAME)]
- private static extern float ximgproc_EdgeBoxes_getEdgeMergeThr_10(IntPtr nativeObj);
- // C++: void cv::ximgproc::EdgeBoxes::setEdgeMergeThr(float value)
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeBoxes_setEdgeMergeThr_10(IntPtr nativeObj, float value);
- // C++: float cv::ximgproc::EdgeBoxes::getClusterMinMag()
- [DllImport(LIBNAME)]
- private static extern float ximgproc_EdgeBoxes_getClusterMinMag_10(IntPtr nativeObj);
- // C++: void cv::ximgproc::EdgeBoxes::setClusterMinMag(float value)
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeBoxes_setClusterMinMag_10(IntPtr nativeObj, float value);
- // C++: float cv::ximgproc::EdgeBoxes::getMaxAspectRatio()
- [DllImport(LIBNAME)]
- private static extern float ximgproc_EdgeBoxes_getMaxAspectRatio_10(IntPtr nativeObj);
- // C++: void cv::ximgproc::EdgeBoxes::setMaxAspectRatio(float value)
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeBoxes_setMaxAspectRatio_10(IntPtr nativeObj, float value);
- // C++: float cv::ximgproc::EdgeBoxes::getMinBoxArea()
- [DllImport(LIBNAME)]
- private static extern float ximgproc_EdgeBoxes_getMinBoxArea_10(IntPtr nativeObj);
- // C++: void cv::ximgproc::EdgeBoxes::setMinBoxArea(float value)
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeBoxes_setMinBoxArea_10(IntPtr nativeObj, float value);
- // C++: float cv::ximgproc::EdgeBoxes::getGamma()
- [DllImport(LIBNAME)]
- private static extern float ximgproc_EdgeBoxes_getGamma_10(IntPtr nativeObj);
- // C++: void cv::ximgproc::EdgeBoxes::setGamma(float value)
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeBoxes_setGamma_10(IntPtr nativeObj, float value);
- // C++: float cv::ximgproc::EdgeBoxes::getKappa()
- [DllImport(LIBNAME)]
- private static extern float ximgproc_EdgeBoxes_getKappa_10(IntPtr nativeObj);
- // C++: void cv::ximgproc::EdgeBoxes::setKappa(float value)
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeBoxes_setKappa_10(IntPtr nativeObj, float value);
- // native support for java finalize()
- [DllImport(LIBNAME)]
- private static extern void ximgproc_EdgeBoxes_delete(IntPtr nativeObj);
- }
- }
|