EdgeDrawing_Params.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. using OpenCVForUnity.CoreModule;
  2. using OpenCVForUnity.UtilsModule;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Runtime.InteropServices;
  6. namespace OpenCVForUnity.XimgprocModule
  7. {
  8. // C++: class Params
  9. public class EdgeDrawing_Params : DisposableOpenCVObject
  10. {
  11. protected override void Dispose(bool disposing)
  12. {
  13. try
  14. {
  15. if (disposing)
  16. {
  17. }
  18. if (IsEnabledDispose)
  19. {
  20. if (nativeObj != IntPtr.Zero)
  21. ximgproc_EdgeDrawing_1Params_delete(nativeObj);
  22. nativeObj = IntPtr.Zero;
  23. }
  24. }
  25. finally
  26. {
  27. base.Dispose(disposing);
  28. }
  29. }
  30. protected internal EdgeDrawing_Params(IntPtr addr) : base(addr) { }
  31. public IntPtr getNativeObjAddr() { return nativeObj; }
  32. // internal usage only
  33. public static EdgeDrawing_Params __fromPtr__(IntPtr addr) { return new EdgeDrawing_Params(addr); }
  34. //
  35. // C++: cv::ximgproc::EdgeDrawing::Params::Params()
  36. //
  37. public EdgeDrawing_Params()
  38. {
  39. nativeObj = DisposableObject.ThrowIfNullIntPtr(ximgproc_EdgeDrawing_1Params_EdgeDrawing_1Params_10());
  40. }
  41. //
  42. // C++: bool EdgeDrawing_Params::PFmode
  43. //
  44. public bool get_PFmode()
  45. {
  46. ThrowIfDisposed();
  47. return ximgproc_EdgeDrawing_1Params_get_1PFmode_10(nativeObj);
  48. }
  49. //
  50. // C++: void EdgeDrawing_Params::PFmode
  51. //
  52. public void set_PFmode(bool PFmode)
  53. {
  54. ThrowIfDisposed();
  55. ximgproc_EdgeDrawing_1Params_set_1PFmode_10(nativeObj, PFmode);
  56. }
  57. //
  58. // C++: int EdgeDrawing_Params::EdgeDetectionOperator
  59. //
  60. public int get_EdgeDetectionOperator()
  61. {
  62. ThrowIfDisposed();
  63. return ximgproc_EdgeDrawing_1Params_get_1EdgeDetectionOperator_10(nativeObj);
  64. }
  65. //
  66. // C++: void EdgeDrawing_Params::EdgeDetectionOperator
  67. //
  68. public void set_EdgeDetectionOperator(int EdgeDetectionOperator)
  69. {
  70. ThrowIfDisposed();
  71. ximgproc_EdgeDrawing_1Params_set_1EdgeDetectionOperator_10(nativeObj, EdgeDetectionOperator);
  72. }
  73. //
  74. // C++: int EdgeDrawing_Params::GradientThresholdValue
  75. //
  76. public int get_GradientThresholdValue()
  77. {
  78. ThrowIfDisposed();
  79. return ximgproc_EdgeDrawing_1Params_get_1GradientThresholdValue_10(nativeObj);
  80. }
  81. //
  82. // C++: void EdgeDrawing_Params::GradientThresholdValue
  83. //
  84. public void set_GradientThresholdValue(int GradientThresholdValue)
  85. {
  86. ThrowIfDisposed();
  87. ximgproc_EdgeDrawing_1Params_set_1GradientThresholdValue_10(nativeObj, GradientThresholdValue);
  88. }
  89. //
  90. // C++: int EdgeDrawing_Params::AnchorThresholdValue
  91. //
  92. public int get_AnchorThresholdValue()
  93. {
  94. ThrowIfDisposed();
  95. return ximgproc_EdgeDrawing_1Params_get_1AnchorThresholdValue_10(nativeObj);
  96. }
  97. //
  98. // C++: void EdgeDrawing_Params::AnchorThresholdValue
  99. //
  100. public void set_AnchorThresholdValue(int AnchorThresholdValue)
  101. {
  102. ThrowIfDisposed();
  103. ximgproc_EdgeDrawing_1Params_set_1AnchorThresholdValue_10(nativeObj, AnchorThresholdValue);
  104. }
  105. //
  106. // C++: int EdgeDrawing_Params::ScanInterval
  107. //
  108. public int get_ScanInterval()
  109. {
  110. ThrowIfDisposed();
  111. return ximgproc_EdgeDrawing_1Params_get_1ScanInterval_10(nativeObj);
  112. }
  113. //
  114. // C++: void EdgeDrawing_Params::ScanInterval
  115. //
  116. public void set_ScanInterval(int ScanInterval)
  117. {
  118. ThrowIfDisposed();
  119. ximgproc_EdgeDrawing_1Params_set_1ScanInterval_10(nativeObj, ScanInterval);
  120. }
  121. //
  122. // C++: int EdgeDrawing_Params::MinPathLength
  123. //
  124. public int get_MinPathLength()
  125. {
  126. ThrowIfDisposed();
  127. return ximgproc_EdgeDrawing_1Params_get_1MinPathLength_10(nativeObj);
  128. }
  129. //
  130. // C++: void EdgeDrawing_Params::MinPathLength
  131. //
  132. public void set_MinPathLength(int MinPathLength)
  133. {
  134. ThrowIfDisposed();
  135. ximgproc_EdgeDrawing_1Params_set_1MinPathLength_10(nativeObj, MinPathLength);
  136. }
  137. //
  138. // C++: float EdgeDrawing_Params::Sigma
  139. //
  140. public float get_Sigma()
  141. {
  142. ThrowIfDisposed();
  143. return ximgproc_EdgeDrawing_1Params_get_1Sigma_10(nativeObj);
  144. }
  145. //
  146. // C++: void EdgeDrawing_Params::Sigma
  147. //
  148. public void set_Sigma(float Sigma)
  149. {
  150. ThrowIfDisposed();
  151. ximgproc_EdgeDrawing_1Params_set_1Sigma_10(nativeObj, Sigma);
  152. }
  153. //
  154. // C++: bool EdgeDrawing_Params::SumFlag
  155. //
  156. public bool get_SumFlag()
  157. {
  158. ThrowIfDisposed();
  159. return ximgproc_EdgeDrawing_1Params_get_1SumFlag_10(nativeObj);
  160. }
  161. //
  162. // C++: void EdgeDrawing_Params::SumFlag
  163. //
  164. public void set_SumFlag(bool SumFlag)
  165. {
  166. ThrowIfDisposed();
  167. ximgproc_EdgeDrawing_1Params_set_1SumFlag_10(nativeObj, SumFlag);
  168. }
  169. //
  170. // C++: bool EdgeDrawing_Params::NFAValidation
  171. //
  172. public bool get_NFAValidation()
  173. {
  174. ThrowIfDisposed();
  175. return ximgproc_EdgeDrawing_1Params_get_1NFAValidation_10(nativeObj);
  176. }
  177. //
  178. // C++: void EdgeDrawing_Params::NFAValidation
  179. //
  180. public void set_NFAValidation(bool NFAValidation)
  181. {
  182. ThrowIfDisposed();
  183. ximgproc_EdgeDrawing_1Params_set_1NFAValidation_10(nativeObj, NFAValidation);
  184. }
  185. //
  186. // C++: int EdgeDrawing_Params::MinLineLength
  187. //
  188. public int get_MinLineLength()
  189. {
  190. ThrowIfDisposed();
  191. return ximgproc_EdgeDrawing_1Params_get_1MinLineLength_10(nativeObj);
  192. }
  193. //
  194. // C++: void EdgeDrawing_Params::MinLineLength
  195. //
  196. public void set_MinLineLength(int MinLineLength)
  197. {
  198. ThrowIfDisposed();
  199. ximgproc_EdgeDrawing_1Params_set_1MinLineLength_10(nativeObj, MinLineLength);
  200. }
  201. //
  202. // C++: double EdgeDrawing_Params::MaxDistanceBetweenTwoLines
  203. //
  204. public double get_MaxDistanceBetweenTwoLines()
  205. {
  206. ThrowIfDisposed();
  207. return ximgproc_EdgeDrawing_1Params_get_1MaxDistanceBetweenTwoLines_10(nativeObj);
  208. }
  209. //
  210. // C++: void EdgeDrawing_Params::MaxDistanceBetweenTwoLines
  211. //
  212. public void set_MaxDistanceBetweenTwoLines(double MaxDistanceBetweenTwoLines)
  213. {
  214. ThrowIfDisposed();
  215. ximgproc_EdgeDrawing_1Params_set_1MaxDistanceBetweenTwoLines_10(nativeObj, MaxDistanceBetweenTwoLines);
  216. }
  217. //
  218. // C++: double EdgeDrawing_Params::LineFitErrorThreshold
  219. //
  220. public double get_LineFitErrorThreshold()
  221. {
  222. ThrowIfDisposed();
  223. return ximgproc_EdgeDrawing_1Params_get_1LineFitErrorThreshold_10(nativeObj);
  224. }
  225. //
  226. // C++: void EdgeDrawing_Params::LineFitErrorThreshold
  227. //
  228. public void set_LineFitErrorThreshold(double LineFitErrorThreshold)
  229. {
  230. ThrowIfDisposed();
  231. ximgproc_EdgeDrawing_1Params_set_1LineFitErrorThreshold_10(nativeObj, LineFitErrorThreshold);
  232. }
  233. //
  234. // C++: double EdgeDrawing_Params::MaxErrorThreshold
  235. //
  236. public double get_MaxErrorThreshold()
  237. {
  238. ThrowIfDisposed();
  239. return ximgproc_EdgeDrawing_1Params_get_1MaxErrorThreshold_10(nativeObj);
  240. }
  241. //
  242. // C++: void EdgeDrawing_Params::MaxErrorThreshold
  243. //
  244. public void set_MaxErrorThreshold(double MaxErrorThreshold)
  245. {
  246. ThrowIfDisposed();
  247. ximgproc_EdgeDrawing_1Params_set_1MaxErrorThreshold_10(nativeObj, MaxErrorThreshold);
  248. }
  249. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  250. const string LIBNAME = "__Internal";
  251. #else
  252. const string LIBNAME = "opencvforunity";
  253. #endif
  254. // C++: cv::ximgproc::EdgeDrawing::Params::Params()
  255. [DllImport(LIBNAME)]
  256. private static extern IntPtr ximgproc_EdgeDrawing_1Params_EdgeDrawing_1Params_10();
  257. // C++: bool EdgeDrawing_Params::PFmode
  258. [DllImport(LIBNAME)]
  259. [return: MarshalAs(UnmanagedType.U1)]
  260. private static extern bool ximgproc_EdgeDrawing_1Params_get_1PFmode_10(IntPtr nativeObj);
  261. // C++: void EdgeDrawing_Params::PFmode
  262. [DllImport(LIBNAME)]
  263. private static extern void ximgproc_EdgeDrawing_1Params_set_1PFmode_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool PFmode);
  264. // C++: int EdgeDrawing_Params::EdgeDetectionOperator
  265. [DllImport(LIBNAME)]
  266. private static extern int ximgproc_EdgeDrawing_1Params_get_1EdgeDetectionOperator_10(IntPtr nativeObj);
  267. // C++: void EdgeDrawing_Params::EdgeDetectionOperator
  268. [DllImport(LIBNAME)]
  269. private static extern void ximgproc_EdgeDrawing_1Params_set_1EdgeDetectionOperator_10(IntPtr nativeObj, int EdgeDetectionOperator);
  270. // C++: int EdgeDrawing_Params::GradientThresholdValue
  271. [DllImport(LIBNAME)]
  272. private static extern int ximgproc_EdgeDrawing_1Params_get_1GradientThresholdValue_10(IntPtr nativeObj);
  273. // C++: void EdgeDrawing_Params::GradientThresholdValue
  274. [DllImport(LIBNAME)]
  275. private static extern void ximgproc_EdgeDrawing_1Params_set_1GradientThresholdValue_10(IntPtr nativeObj, int GradientThresholdValue);
  276. // C++: int EdgeDrawing_Params::AnchorThresholdValue
  277. [DllImport(LIBNAME)]
  278. private static extern int ximgproc_EdgeDrawing_1Params_get_1AnchorThresholdValue_10(IntPtr nativeObj);
  279. // C++: void EdgeDrawing_Params::AnchorThresholdValue
  280. [DllImport(LIBNAME)]
  281. private static extern void ximgproc_EdgeDrawing_1Params_set_1AnchorThresholdValue_10(IntPtr nativeObj, int AnchorThresholdValue);
  282. // C++: int EdgeDrawing_Params::ScanInterval
  283. [DllImport(LIBNAME)]
  284. private static extern int ximgproc_EdgeDrawing_1Params_get_1ScanInterval_10(IntPtr nativeObj);
  285. // C++: void EdgeDrawing_Params::ScanInterval
  286. [DllImport(LIBNAME)]
  287. private static extern void ximgproc_EdgeDrawing_1Params_set_1ScanInterval_10(IntPtr nativeObj, int ScanInterval);
  288. // C++: int EdgeDrawing_Params::MinPathLength
  289. [DllImport(LIBNAME)]
  290. private static extern int ximgproc_EdgeDrawing_1Params_get_1MinPathLength_10(IntPtr nativeObj);
  291. // C++: void EdgeDrawing_Params::MinPathLength
  292. [DllImport(LIBNAME)]
  293. private static extern void ximgproc_EdgeDrawing_1Params_set_1MinPathLength_10(IntPtr nativeObj, int MinPathLength);
  294. // C++: float EdgeDrawing_Params::Sigma
  295. [DllImport(LIBNAME)]
  296. private static extern float ximgproc_EdgeDrawing_1Params_get_1Sigma_10(IntPtr nativeObj);
  297. // C++: void EdgeDrawing_Params::Sigma
  298. [DllImport(LIBNAME)]
  299. private static extern void ximgproc_EdgeDrawing_1Params_set_1Sigma_10(IntPtr nativeObj, float Sigma);
  300. // C++: bool EdgeDrawing_Params::SumFlag
  301. [DllImport(LIBNAME)]
  302. [return: MarshalAs(UnmanagedType.U1)]
  303. private static extern bool ximgproc_EdgeDrawing_1Params_get_1SumFlag_10(IntPtr nativeObj);
  304. // C++: void EdgeDrawing_Params::SumFlag
  305. [DllImport(LIBNAME)]
  306. private static extern void ximgproc_EdgeDrawing_1Params_set_1SumFlag_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool SumFlag);
  307. // C++: bool EdgeDrawing_Params::NFAValidation
  308. [DllImport(LIBNAME)]
  309. [return: MarshalAs(UnmanagedType.U1)]
  310. private static extern bool ximgproc_EdgeDrawing_1Params_get_1NFAValidation_10(IntPtr nativeObj);
  311. // C++: void EdgeDrawing_Params::NFAValidation
  312. [DllImport(LIBNAME)]
  313. private static extern void ximgproc_EdgeDrawing_1Params_set_1NFAValidation_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool NFAValidation);
  314. // C++: int EdgeDrawing_Params::MinLineLength
  315. [DllImport(LIBNAME)]
  316. private static extern int ximgproc_EdgeDrawing_1Params_get_1MinLineLength_10(IntPtr nativeObj);
  317. // C++: void EdgeDrawing_Params::MinLineLength
  318. [DllImport(LIBNAME)]
  319. private static extern void ximgproc_EdgeDrawing_1Params_set_1MinLineLength_10(IntPtr nativeObj, int MinLineLength);
  320. // C++: double EdgeDrawing_Params::MaxDistanceBetweenTwoLines
  321. [DllImport(LIBNAME)]
  322. private static extern double ximgproc_EdgeDrawing_1Params_get_1MaxDistanceBetweenTwoLines_10(IntPtr nativeObj);
  323. // C++: void EdgeDrawing_Params::MaxDistanceBetweenTwoLines
  324. [DllImport(LIBNAME)]
  325. private static extern void ximgproc_EdgeDrawing_1Params_set_1MaxDistanceBetweenTwoLines_10(IntPtr nativeObj, double MaxDistanceBetweenTwoLines);
  326. // C++: double EdgeDrawing_Params::LineFitErrorThreshold
  327. [DllImport(LIBNAME)]
  328. private static extern double ximgproc_EdgeDrawing_1Params_get_1LineFitErrorThreshold_10(IntPtr nativeObj);
  329. // C++: void EdgeDrawing_Params::LineFitErrorThreshold
  330. [DllImport(LIBNAME)]
  331. private static extern void ximgproc_EdgeDrawing_1Params_set_1LineFitErrorThreshold_10(IntPtr nativeObj, double LineFitErrorThreshold);
  332. // C++: double EdgeDrawing_Params::MaxErrorThreshold
  333. [DllImport(LIBNAME)]
  334. private static extern double ximgproc_EdgeDrawing_1Params_get_1MaxErrorThreshold_10(IntPtr nativeObj);
  335. // C++: void EdgeDrawing_Params::MaxErrorThreshold
  336. [DllImport(LIBNAME)]
  337. private static extern void ximgproc_EdgeDrawing_1Params_set_1MaxErrorThreshold_10(IntPtr nativeObj, double MaxErrorThreshold);
  338. // native support for java finalize()
  339. [DllImport(LIBNAME)]
  340. private static extern void ximgproc_EdgeDrawing_1Params_delete(IntPtr nativeObj);
  341. }
  342. }