TrackerCSRT_Params.cs 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056
  1. using OpenCVForUnity.CoreModule;
  2. using OpenCVForUnity.UtilsModule;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Runtime.InteropServices;
  6. namespace OpenCVForUnity.TrackingModule
  7. {
  8. // C++: class Params
  9. public class TrackerCSRT_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. tracking_TrackerCSRT_1Params_delete(nativeObj);
  22. nativeObj = IntPtr.Zero;
  23. }
  24. }
  25. finally
  26. {
  27. base.Dispose(disposing);
  28. }
  29. }
  30. protected internal TrackerCSRT_Params(IntPtr addr) : base(addr) { }
  31. public IntPtr getNativeObjAddr() { return nativeObj; }
  32. // internal usage only
  33. public static TrackerCSRT_Params __fromPtr__(IntPtr addr) { return new TrackerCSRT_Params(addr); }
  34. //
  35. // C++: cv::TrackerCSRT::Params::Params()
  36. //
  37. public TrackerCSRT_Params()
  38. {
  39. nativeObj = DisposableObject.ThrowIfNullIntPtr(tracking_TrackerCSRT_1Params_TrackerCSRT_1Params_10());
  40. }
  41. //
  42. // C++: bool TrackerCSRT_Params::use_hog
  43. //
  44. public bool get_use_hog()
  45. {
  46. ThrowIfDisposed();
  47. return tracking_TrackerCSRT_1Params_get_1use_1hog_10(nativeObj);
  48. }
  49. //
  50. // C++: void TrackerCSRT_Params::use_hog
  51. //
  52. public void set_use_hog(bool use_hog)
  53. {
  54. ThrowIfDisposed();
  55. tracking_TrackerCSRT_1Params_set_1use_1hog_10(nativeObj, use_hog);
  56. }
  57. //
  58. // C++: bool TrackerCSRT_Params::use_color_names
  59. //
  60. public bool get_use_color_names()
  61. {
  62. ThrowIfDisposed();
  63. return tracking_TrackerCSRT_1Params_get_1use_1color_1names_10(nativeObj);
  64. }
  65. //
  66. // C++: void TrackerCSRT_Params::use_color_names
  67. //
  68. public void set_use_color_names(bool use_color_names)
  69. {
  70. ThrowIfDisposed();
  71. tracking_TrackerCSRT_1Params_set_1use_1color_1names_10(nativeObj, use_color_names);
  72. }
  73. //
  74. // C++: bool TrackerCSRT_Params::use_gray
  75. //
  76. public bool get_use_gray()
  77. {
  78. ThrowIfDisposed();
  79. return tracking_TrackerCSRT_1Params_get_1use_1gray_10(nativeObj);
  80. }
  81. //
  82. // C++: void TrackerCSRT_Params::use_gray
  83. //
  84. public void set_use_gray(bool use_gray)
  85. {
  86. ThrowIfDisposed();
  87. tracking_TrackerCSRT_1Params_set_1use_1gray_10(nativeObj, use_gray);
  88. }
  89. //
  90. // C++: bool TrackerCSRT_Params::use_rgb
  91. //
  92. public bool get_use_rgb()
  93. {
  94. ThrowIfDisposed();
  95. return tracking_TrackerCSRT_1Params_get_1use_1rgb_10(nativeObj);
  96. }
  97. //
  98. // C++: void TrackerCSRT_Params::use_rgb
  99. //
  100. public void set_use_rgb(bool use_rgb)
  101. {
  102. ThrowIfDisposed();
  103. tracking_TrackerCSRT_1Params_set_1use_1rgb_10(nativeObj, use_rgb);
  104. }
  105. //
  106. // C++: bool TrackerCSRT_Params::use_channel_weights
  107. //
  108. public bool get_use_channel_weights()
  109. {
  110. ThrowIfDisposed();
  111. return tracking_TrackerCSRT_1Params_get_1use_1channel_1weights_10(nativeObj);
  112. }
  113. //
  114. // C++: void TrackerCSRT_Params::use_channel_weights
  115. //
  116. public void set_use_channel_weights(bool use_channel_weights)
  117. {
  118. ThrowIfDisposed();
  119. tracking_TrackerCSRT_1Params_set_1use_1channel_1weights_10(nativeObj, use_channel_weights);
  120. }
  121. //
  122. // C++: bool TrackerCSRT_Params::use_segmentation
  123. //
  124. public bool get_use_segmentation()
  125. {
  126. ThrowIfDisposed();
  127. return tracking_TrackerCSRT_1Params_get_1use_1segmentation_10(nativeObj);
  128. }
  129. //
  130. // C++: void TrackerCSRT_Params::use_segmentation
  131. //
  132. public void set_use_segmentation(bool use_segmentation)
  133. {
  134. ThrowIfDisposed();
  135. tracking_TrackerCSRT_1Params_set_1use_1segmentation_10(nativeObj, use_segmentation);
  136. }
  137. //
  138. // C++: string TrackerCSRT_Params::window_function
  139. //
  140. public string get_window_function()
  141. {
  142. ThrowIfDisposed();
  143. string retVal = Marshal.PtrToStringAnsi(DisposableObject.ThrowIfNullIntPtr(tracking_TrackerCSRT_1Params_get_1window_1function_10(nativeObj)));
  144. return retVal;
  145. }
  146. //
  147. // C++: void TrackerCSRT_Params::window_function
  148. //
  149. public void set_window_function(string window_function)
  150. {
  151. ThrowIfDisposed();
  152. tracking_TrackerCSRT_1Params_set_1window_1function_10(nativeObj, window_function);
  153. }
  154. //
  155. // C++: float TrackerCSRT_Params::kaiser_alpha
  156. //
  157. public float get_kaiser_alpha()
  158. {
  159. ThrowIfDisposed();
  160. return tracking_TrackerCSRT_1Params_get_1kaiser_1alpha_10(nativeObj);
  161. }
  162. //
  163. // C++: void TrackerCSRT_Params::kaiser_alpha
  164. //
  165. public void set_kaiser_alpha(float kaiser_alpha)
  166. {
  167. ThrowIfDisposed();
  168. tracking_TrackerCSRT_1Params_set_1kaiser_1alpha_10(nativeObj, kaiser_alpha);
  169. }
  170. //
  171. // C++: float TrackerCSRT_Params::cheb_attenuation
  172. //
  173. public float get_cheb_attenuation()
  174. {
  175. ThrowIfDisposed();
  176. return tracking_TrackerCSRT_1Params_get_1cheb_1attenuation_10(nativeObj);
  177. }
  178. //
  179. // C++: void TrackerCSRT_Params::cheb_attenuation
  180. //
  181. public void set_cheb_attenuation(float cheb_attenuation)
  182. {
  183. ThrowIfDisposed();
  184. tracking_TrackerCSRT_1Params_set_1cheb_1attenuation_10(nativeObj, cheb_attenuation);
  185. }
  186. //
  187. // C++: float TrackerCSRT_Params::template_size
  188. //
  189. public float get_template_size()
  190. {
  191. ThrowIfDisposed();
  192. return tracking_TrackerCSRT_1Params_get_1template_1size_10(nativeObj);
  193. }
  194. //
  195. // C++: void TrackerCSRT_Params::template_size
  196. //
  197. public void set_template_size(float template_size)
  198. {
  199. ThrowIfDisposed();
  200. tracking_TrackerCSRT_1Params_set_1template_1size_10(nativeObj, template_size);
  201. }
  202. //
  203. // C++: float TrackerCSRT_Params::gsl_sigma
  204. //
  205. public float get_gsl_sigma()
  206. {
  207. ThrowIfDisposed();
  208. return tracking_TrackerCSRT_1Params_get_1gsl_1sigma_10(nativeObj);
  209. }
  210. //
  211. // C++: void TrackerCSRT_Params::gsl_sigma
  212. //
  213. public void set_gsl_sigma(float gsl_sigma)
  214. {
  215. ThrowIfDisposed();
  216. tracking_TrackerCSRT_1Params_set_1gsl_1sigma_10(nativeObj, gsl_sigma);
  217. }
  218. //
  219. // C++: float TrackerCSRT_Params::hog_orientations
  220. //
  221. public float get_hog_orientations()
  222. {
  223. ThrowIfDisposed();
  224. return tracking_TrackerCSRT_1Params_get_1hog_1orientations_10(nativeObj);
  225. }
  226. //
  227. // C++: void TrackerCSRT_Params::hog_orientations
  228. //
  229. public void set_hog_orientations(float hog_orientations)
  230. {
  231. ThrowIfDisposed();
  232. tracking_TrackerCSRT_1Params_set_1hog_1orientations_10(nativeObj, hog_orientations);
  233. }
  234. //
  235. // C++: float TrackerCSRT_Params::hog_clip
  236. //
  237. public float get_hog_clip()
  238. {
  239. ThrowIfDisposed();
  240. return tracking_TrackerCSRT_1Params_get_1hog_1clip_10(nativeObj);
  241. }
  242. //
  243. // C++: void TrackerCSRT_Params::hog_clip
  244. //
  245. public void set_hog_clip(float hog_clip)
  246. {
  247. ThrowIfDisposed();
  248. tracking_TrackerCSRT_1Params_set_1hog_1clip_10(nativeObj, hog_clip);
  249. }
  250. //
  251. // C++: float TrackerCSRT_Params::padding
  252. //
  253. public float get_padding()
  254. {
  255. ThrowIfDisposed();
  256. return tracking_TrackerCSRT_1Params_get_1padding_10(nativeObj);
  257. }
  258. //
  259. // C++: void TrackerCSRT_Params::padding
  260. //
  261. public void set_padding(float padding)
  262. {
  263. ThrowIfDisposed();
  264. tracking_TrackerCSRT_1Params_set_1padding_10(nativeObj, padding);
  265. }
  266. //
  267. // C++: float TrackerCSRT_Params::filter_lr
  268. //
  269. public float get_filter_lr()
  270. {
  271. ThrowIfDisposed();
  272. return tracking_TrackerCSRT_1Params_get_1filter_1lr_10(nativeObj);
  273. }
  274. //
  275. // C++: void TrackerCSRT_Params::filter_lr
  276. //
  277. public void set_filter_lr(float filter_lr)
  278. {
  279. ThrowIfDisposed();
  280. tracking_TrackerCSRT_1Params_set_1filter_1lr_10(nativeObj, filter_lr);
  281. }
  282. //
  283. // C++: float TrackerCSRT_Params::weights_lr
  284. //
  285. public float get_weights_lr()
  286. {
  287. ThrowIfDisposed();
  288. return tracking_TrackerCSRT_1Params_get_1weights_1lr_10(nativeObj);
  289. }
  290. //
  291. // C++: void TrackerCSRT_Params::weights_lr
  292. //
  293. public void set_weights_lr(float weights_lr)
  294. {
  295. ThrowIfDisposed();
  296. tracking_TrackerCSRT_1Params_set_1weights_1lr_10(nativeObj, weights_lr);
  297. }
  298. //
  299. // C++: int TrackerCSRT_Params::num_hog_channels_used
  300. //
  301. public int get_num_hog_channels_used()
  302. {
  303. ThrowIfDisposed();
  304. return tracking_TrackerCSRT_1Params_get_1num_1hog_1channels_1used_10(nativeObj);
  305. }
  306. //
  307. // C++: void TrackerCSRT_Params::num_hog_channels_used
  308. //
  309. public void set_num_hog_channels_used(int num_hog_channels_used)
  310. {
  311. ThrowIfDisposed();
  312. tracking_TrackerCSRT_1Params_set_1num_1hog_1channels_1used_10(nativeObj, num_hog_channels_used);
  313. }
  314. //
  315. // C++: int TrackerCSRT_Params::admm_iterations
  316. //
  317. public int get_admm_iterations()
  318. {
  319. ThrowIfDisposed();
  320. return tracking_TrackerCSRT_1Params_get_1admm_1iterations_10(nativeObj);
  321. }
  322. //
  323. // C++: void TrackerCSRT_Params::admm_iterations
  324. //
  325. public void set_admm_iterations(int admm_iterations)
  326. {
  327. ThrowIfDisposed();
  328. tracking_TrackerCSRT_1Params_set_1admm_1iterations_10(nativeObj, admm_iterations);
  329. }
  330. //
  331. // C++: int TrackerCSRT_Params::histogram_bins
  332. //
  333. public int get_histogram_bins()
  334. {
  335. ThrowIfDisposed();
  336. return tracking_TrackerCSRT_1Params_get_1histogram_1bins_10(nativeObj);
  337. }
  338. //
  339. // C++: void TrackerCSRT_Params::histogram_bins
  340. //
  341. public void set_histogram_bins(int histogram_bins)
  342. {
  343. ThrowIfDisposed();
  344. tracking_TrackerCSRT_1Params_set_1histogram_1bins_10(nativeObj, histogram_bins);
  345. }
  346. //
  347. // C++: float TrackerCSRT_Params::histogram_lr
  348. //
  349. public float get_histogram_lr()
  350. {
  351. ThrowIfDisposed();
  352. return tracking_TrackerCSRT_1Params_get_1histogram_1lr_10(nativeObj);
  353. }
  354. //
  355. // C++: void TrackerCSRT_Params::histogram_lr
  356. //
  357. public void set_histogram_lr(float histogram_lr)
  358. {
  359. ThrowIfDisposed();
  360. tracking_TrackerCSRT_1Params_set_1histogram_1lr_10(nativeObj, histogram_lr);
  361. }
  362. //
  363. // C++: int TrackerCSRT_Params::background_ratio
  364. //
  365. public int get_background_ratio()
  366. {
  367. ThrowIfDisposed();
  368. return tracking_TrackerCSRT_1Params_get_1background_1ratio_10(nativeObj);
  369. }
  370. //
  371. // C++: void TrackerCSRT_Params::background_ratio
  372. //
  373. public void set_background_ratio(int background_ratio)
  374. {
  375. ThrowIfDisposed();
  376. tracking_TrackerCSRT_1Params_set_1background_1ratio_10(nativeObj, background_ratio);
  377. }
  378. //
  379. // C++: int TrackerCSRT_Params::number_of_scales
  380. //
  381. public int get_number_of_scales()
  382. {
  383. ThrowIfDisposed();
  384. return tracking_TrackerCSRT_1Params_get_1number_1of_1scales_10(nativeObj);
  385. }
  386. //
  387. // C++: void TrackerCSRT_Params::number_of_scales
  388. //
  389. public void set_number_of_scales(int number_of_scales)
  390. {
  391. ThrowIfDisposed();
  392. tracking_TrackerCSRT_1Params_set_1number_1of_1scales_10(nativeObj, number_of_scales);
  393. }
  394. //
  395. // C++: float TrackerCSRT_Params::scale_sigma_factor
  396. //
  397. public float get_scale_sigma_factor()
  398. {
  399. ThrowIfDisposed();
  400. return tracking_TrackerCSRT_1Params_get_1scale_1sigma_1factor_10(nativeObj);
  401. }
  402. //
  403. // C++: void TrackerCSRT_Params::scale_sigma_factor
  404. //
  405. public void set_scale_sigma_factor(float scale_sigma_factor)
  406. {
  407. ThrowIfDisposed();
  408. tracking_TrackerCSRT_1Params_set_1scale_1sigma_1factor_10(nativeObj, scale_sigma_factor);
  409. }
  410. //
  411. // C++: float TrackerCSRT_Params::scale_model_max_area
  412. //
  413. public float get_scale_model_max_area()
  414. {
  415. ThrowIfDisposed();
  416. return tracking_TrackerCSRT_1Params_get_1scale_1model_1max_1area_10(nativeObj);
  417. }
  418. //
  419. // C++: void TrackerCSRT_Params::scale_model_max_area
  420. //
  421. public void set_scale_model_max_area(float scale_model_max_area)
  422. {
  423. ThrowIfDisposed();
  424. tracking_TrackerCSRT_1Params_set_1scale_1model_1max_1area_10(nativeObj, scale_model_max_area);
  425. }
  426. //
  427. // C++: float TrackerCSRT_Params::scale_lr
  428. //
  429. public float get_scale_lr()
  430. {
  431. ThrowIfDisposed();
  432. return tracking_TrackerCSRT_1Params_get_1scale_1lr_10(nativeObj);
  433. }
  434. //
  435. // C++: void TrackerCSRT_Params::scale_lr
  436. //
  437. public void set_scale_lr(float scale_lr)
  438. {
  439. ThrowIfDisposed();
  440. tracking_TrackerCSRT_1Params_set_1scale_1lr_10(nativeObj, scale_lr);
  441. }
  442. //
  443. // C++: float TrackerCSRT_Params::scale_step
  444. //
  445. public float get_scale_step()
  446. {
  447. ThrowIfDisposed();
  448. return tracking_TrackerCSRT_1Params_get_1scale_1step_10(nativeObj);
  449. }
  450. //
  451. // C++: void TrackerCSRT_Params::scale_step
  452. //
  453. public void set_scale_step(float scale_step)
  454. {
  455. ThrowIfDisposed();
  456. tracking_TrackerCSRT_1Params_set_1scale_1step_10(nativeObj, scale_step);
  457. }
  458. //
  459. // C++: float TrackerCSRT_Params::psr_threshold
  460. //
  461. public float get_psr_threshold()
  462. {
  463. ThrowIfDisposed();
  464. return tracking_TrackerCSRT_1Params_get_1psr_1threshold_10(nativeObj);
  465. }
  466. //
  467. // C++: void TrackerCSRT_Params::psr_threshold
  468. //
  469. public void set_psr_threshold(float psr_threshold)
  470. {
  471. ThrowIfDisposed();
  472. tracking_TrackerCSRT_1Params_set_1psr_1threshold_10(nativeObj, psr_threshold);
  473. }
  474. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  475. const string LIBNAME = "__Internal";
  476. #else
  477. const string LIBNAME = "opencvforunity";
  478. #endif
  479. // C++: cv::TrackerCSRT::Params::Params()
  480. [DllImport(LIBNAME)]
  481. private static extern IntPtr tracking_TrackerCSRT_1Params_TrackerCSRT_1Params_10();
  482. // C++: bool TrackerCSRT_Params::use_hog
  483. [DllImport(LIBNAME)]
  484. [return: MarshalAs(UnmanagedType.U1)]
  485. private static extern bool tracking_TrackerCSRT_1Params_get_1use_1hog_10(IntPtr nativeObj);
  486. // C++: void TrackerCSRT_Params::use_hog
  487. [DllImport(LIBNAME)]
  488. private static extern void tracking_TrackerCSRT_1Params_set_1use_1hog_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool use_hog);
  489. // C++: bool TrackerCSRT_Params::use_color_names
  490. [DllImport(LIBNAME)]
  491. [return: MarshalAs(UnmanagedType.U1)]
  492. private static extern bool tracking_TrackerCSRT_1Params_get_1use_1color_1names_10(IntPtr nativeObj);
  493. // C++: void TrackerCSRT_Params::use_color_names
  494. [DllImport(LIBNAME)]
  495. private static extern void tracking_TrackerCSRT_1Params_set_1use_1color_1names_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool use_color_names);
  496. // C++: bool TrackerCSRT_Params::use_gray
  497. [DllImport(LIBNAME)]
  498. [return: MarshalAs(UnmanagedType.U1)]
  499. private static extern bool tracking_TrackerCSRT_1Params_get_1use_1gray_10(IntPtr nativeObj);
  500. // C++: void TrackerCSRT_Params::use_gray
  501. [DllImport(LIBNAME)]
  502. private static extern void tracking_TrackerCSRT_1Params_set_1use_1gray_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool use_gray);
  503. // C++: bool TrackerCSRT_Params::use_rgb
  504. [DllImport(LIBNAME)]
  505. [return: MarshalAs(UnmanagedType.U1)]
  506. private static extern bool tracking_TrackerCSRT_1Params_get_1use_1rgb_10(IntPtr nativeObj);
  507. // C++: void TrackerCSRT_Params::use_rgb
  508. [DllImport(LIBNAME)]
  509. private static extern void tracking_TrackerCSRT_1Params_set_1use_1rgb_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool use_rgb);
  510. // C++: bool TrackerCSRT_Params::use_channel_weights
  511. [DllImport(LIBNAME)]
  512. [return: MarshalAs(UnmanagedType.U1)]
  513. private static extern bool tracking_TrackerCSRT_1Params_get_1use_1channel_1weights_10(IntPtr nativeObj);
  514. // C++: void TrackerCSRT_Params::use_channel_weights
  515. [DllImport(LIBNAME)]
  516. private static extern void tracking_TrackerCSRT_1Params_set_1use_1channel_1weights_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool use_channel_weights);
  517. // C++: bool TrackerCSRT_Params::use_segmentation
  518. [DllImport(LIBNAME)]
  519. [return: MarshalAs(UnmanagedType.U1)]
  520. private static extern bool tracking_TrackerCSRT_1Params_get_1use_1segmentation_10(IntPtr nativeObj);
  521. // C++: void TrackerCSRT_Params::use_segmentation
  522. [DllImport(LIBNAME)]
  523. private static extern void tracking_TrackerCSRT_1Params_set_1use_1segmentation_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool use_segmentation);
  524. // C++: string TrackerCSRT_Params::window_function
  525. [DllImport(LIBNAME)]
  526. private static extern IntPtr tracking_TrackerCSRT_1Params_get_1window_1function_10(IntPtr nativeObj);
  527. // C++: void TrackerCSRT_Params::window_function
  528. [DllImport(LIBNAME)]
  529. private static extern void tracking_TrackerCSRT_1Params_set_1window_1function_10(IntPtr nativeObj, string window_function);
  530. // C++: float TrackerCSRT_Params::kaiser_alpha
  531. [DllImport(LIBNAME)]
  532. private static extern float tracking_TrackerCSRT_1Params_get_1kaiser_1alpha_10(IntPtr nativeObj);
  533. // C++: void TrackerCSRT_Params::kaiser_alpha
  534. [DllImport(LIBNAME)]
  535. private static extern void tracking_TrackerCSRT_1Params_set_1kaiser_1alpha_10(IntPtr nativeObj, float kaiser_alpha);
  536. // C++: float TrackerCSRT_Params::cheb_attenuation
  537. [DllImport(LIBNAME)]
  538. private static extern float tracking_TrackerCSRT_1Params_get_1cheb_1attenuation_10(IntPtr nativeObj);
  539. // C++: void TrackerCSRT_Params::cheb_attenuation
  540. [DllImport(LIBNAME)]
  541. private static extern void tracking_TrackerCSRT_1Params_set_1cheb_1attenuation_10(IntPtr nativeObj, float cheb_attenuation);
  542. // C++: float TrackerCSRT_Params::template_size
  543. [DllImport(LIBNAME)]
  544. private static extern float tracking_TrackerCSRT_1Params_get_1template_1size_10(IntPtr nativeObj);
  545. // C++: void TrackerCSRT_Params::template_size
  546. [DllImport(LIBNAME)]
  547. private static extern void tracking_TrackerCSRT_1Params_set_1template_1size_10(IntPtr nativeObj, float template_size);
  548. // C++: float TrackerCSRT_Params::gsl_sigma
  549. [DllImport(LIBNAME)]
  550. private static extern float tracking_TrackerCSRT_1Params_get_1gsl_1sigma_10(IntPtr nativeObj);
  551. // C++: void TrackerCSRT_Params::gsl_sigma
  552. [DllImport(LIBNAME)]
  553. private static extern void tracking_TrackerCSRT_1Params_set_1gsl_1sigma_10(IntPtr nativeObj, float gsl_sigma);
  554. // C++: float TrackerCSRT_Params::hog_orientations
  555. [DllImport(LIBNAME)]
  556. private static extern float tracking_TrackerCSRT_1Params_get_1hog_1orientations_10(IntPtr nativeObj);
  557. // C++: void TrackerCSRT_Params::hog_orientations
  558. [DllImport(LIBNAME)]
  559. private static extern void tracking_TrackerCSRT_1Params_set_1hog_1orientations_10(IntPtr nativeObj, float hog_orientations);
  560. // C++: float TrackerCSRT_Params::hog_clip
  561. [DllImport(LIBNAME)]
  562. private static extern float tracking_TrackerCSRT_1Params_get_1hog_1clip_10(IntPtr nativeObj);
  563. // C++: void TrackerCSRT_Params::hog_clip
  564. [DllImport(LIBNAME)]
  565. private static extern void tracking_TrackerCSRT_1Params_set_1hog_1clip_10(IntPtr nativeObj, float hog_clip);
  566. // C++: float TrackerCSRT_Params::padding
  567. [DllImport(LIBNAME)]
  568. private static extern float tracking_TrackerCSRT_1Params_get_1padding_10(IntPtr nativeObj);
  569. // C++: void TrackerCSRT_Params::padding
  570. [DllImport(LIBNAME)]
  571. private static extern void tracking_TrackerCSRT_1Params_set_1padding_10(IntPtr nativeObj, float padding);
  572. // C++: float TrackerCSRT_Params::filter_lr
  573. [DllImport(LIBNAME)]
  574. private static extern float tracking_TrackerCSRT_1Params_get_1filter_1lr_10(IntPtr nativeObj);
  575. // C++: void TrackerCSRT_Params::filter_lr
  576. [DllImport(LIBNAME)]
  577. private static extern void tracking_TrackerCSRT_1Params_set_1filter_1lr_10(IntPtr nativeObj, float filter_lr);
  578. // C++: float TrackerCSRT_Params::weights_lr
  579. [DllImport(LIBNAME)]
  580. private static extern float tracking_TrackerCSRT_1Params_get_1weights_1lr_10(IntPtr nativeObj);
  581. // C++: void TrackerCSRT_Params::weights_lr
  582. [DllImport(LIBNAME)]
  583. private static extern void tracking_TrackerCSRT_1Params_set_1weights_1lr_10(IntPtr nativeObj, float weights_lr);
  584. // C++: int TrackerCSRT_Params::num_hog_channels_used
  585. [DllImport(LIBNAME)]
  586. private static extern int tracking_TrackerCSRT_1Params_get_1num_1hog_1channels_1used_10(IntPtr nativeObj);
  587. // C++: void TrackerCSRT_Params::num_hog_channels_used
  588. [DllImport(LIBNAME)]
  589. private static extern void tracking_TrackerCSRT_1Params_set_1num_1hog_1channels_1used_10(IntPtr nativeObj, int num_hog_channels_used);
  590. // C++: int TrackerCSRT_Params::admm_iterations
  591. [DllImport(LIBNAME)]
  592. private static extern int tracking_TrackerCSRT_1Params_get_1admm_1iterations_10(IntPtr nativeObj);
  593. // C++: void TrackerCSRT_Params::admm_iterations
  594. [DllImport(LIBNAME)]
  595. private static extern void tracking_TrackerCSRT_1Params_set_1admm_1iterations_10(IntPtr nativeObj, int admm_iterations);
  596. // C++: int TrackerCSRT_Params::histogram_bins
  597. [DllImport(LIBNAME)]
  598. private static extern int tracking_TrackerCSRT_1Params_get_1histogram_1bins_10(IntPtr nativeObj);
  599. // C++: void TrackerCSRT_Params::histogram_bins
  600. [DllImport(LIBNAME)]
  601. private static extern void tracking_TrackerCSRT_1Params_set_1histogram_1bins_10(IntPtr nativeObj, int histogram_bins);
  602. // C++: float TrackerCSRT_Params::histogram_lr
  603. [DllImport(LIBNAME)]
  604. private static extern float tracking_TrackerCSRT_1Params_get_1histogram_1lr_10(IntPtr nativeObj);
  605. // C++: void TrackerCSRT_Params::histogram_lr
  606. [DllImport(LIBNAME)]
  607. private static extern void tracking_TrackerCSRT_1Params_set_1histogram_1lr_10(IntPtr nativeObj, float histogram_lr);
  608. // C++: int TrackerCSRT_Params::background_ratio
  609. [DllImport(LIBNAME)]
  610. private static extern int tracking_TrackerCSRT_1Params_get_1background_1ratio_10(IntPtr nativeObj);
  611. // C++: void TrackerCSRT_Params::background_ratio
  612. [DllImport(LIBNAME)]
  613. private static extern void tracking_TrackerCSRT_1Params_set_1background_1ratio_10(IntPtr nativeObj, int background_ratio);
  614. // C++: int TrackerCSRT_Params::number_of_scales
  615. [DllImport(LIBNAME)]
  616. private static extern int tracking_TrackerCSRT_1Params_get_1number_1of_1scales_10(IntPtr nativeObj);
  617. // C++: void TrackerCSRT_Params::number_of_scales
  618. [DllImport(LIBNAME)]
  619. private static extern void tracking_TrackerCSRT_1Params_set_1number_1of_1scales_10(IntPtr nativeObj, int number_of_scales);
  620. // C++: float TrackerCSRT_Params::scale_sigma_factor
  621. [DllImport(LIBNAME)]
  622. private static extern float tracking_TrackerCSRT_1Params_get_1scale_1sigma_1factor_10(IntPtr nativeObj);
  623. // C++: void TrackerCSRT_Params::scale_sigma_factor
  624. [DllImport(LIBNAME)]
  625. private static extern void tracking_TrackerCSRT_1Params_set_1scale_1sigma_1factor_10(IntPtr nativeObj, float scale_sigma_factor);
  626. // C++: float TrackerCSRT_Params::scale_model_max_area
  627. [DllImport(LIBNAME)]
  628. private static extern float tracking_TrackerCSRT_1Params_get_1scale_1model_1max_1area_10(IntPtr nativeObj);
  629. // C++: void TrackerCSRT_Params::scale_model_max_area
  630. [DllImport(LIBNAME)]
  631. private static extern void tracking_TrackerCSRT_1Params_set_1scale_1model_1max_1area_10(IntPtr nativeObj, float scale_model_max_area);
  632. // C++: float TrackerCSRT_Params::scale_lr
  633. [DllImport(LIBNAME)]
  634. private static extern float tracking_TrackerCSRT_1Params_get_1scale_1lr_10(IntPtr nativeObj);
  635. // C++: void TrackerCSRT_Params::scale_lr
  636. [DllImport(LIBNAME)]
  637. private static extern void tracking_TrackerCSRT_1Params_set_1scale_1lr_10(IntPtr nativeObj, float scale_lr);
  638. // C++: float TrackerCSRT_Params::scale_step
  639. [DllImport(LIBNAME)]
  640. private static extern float tracking_TrackerCSRT_1Params_get_1scale_1step_10(IntPtr nativeObj);
  641. // C++: void TrackerCSRT_Params::scale_step
  642. [DllImport(LIBNAME)]
  643. private static extern void tracking_TrackerCSRT_1Params_set_1scale_1step_10(IntPtr nativeObj, float scale_step);
  644. // C++: float TrackerCSRT_Params::psr_threshold
  645. [DllImport(LIBNAME)]
  646. private static extern float tracking_TrackerCSRT_1Params_get_1psr_1threshold_10(IntPtr nativeObj);
  647. // C++: void TrackerCSRT_Params::psr_threshold
  648. [DllImport(LIBNAME)]
  649. private static extern void tracking_TrackerCSRT_1Params_set_1psr_1threshold_10(IntPtr nativeObj, float psr_threshold);
  650. // native support for java finalize()
  651. [DllImport(LIBNAME)]
  652. private static extern void tracking_TrackerCSRT_1Params_delete(IntPtr nativeObj);
  653. }
  654. }