PCTSignatures.cs 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242
  1. 
  2. using OpenCVForUnity.CoreModule;
  3. using OpenCVForUnity.UtilsModule;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Runtime.InteropServices;
  7. namespace OpenCVForUnity.Xfeatures2dModule
  8. {
  9. // C++: class PCTSignatures
  10. //javadoc: PCTSignatures
  11. public class PCTSignatures : Algorithm
  12. {
  13. protected override void Dispose (bool disposing)
  14. {
  15. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  16. try {
  17. if (disposing) {
  18. }
  19. if (IsEnabledDispose) {
  20. if (nativeObj != IntPtr.Zero)
  21. xfeatures2d_PCTSignatures_delete(nativeObj);
  22. nativeObj = IntPtr.Zero;
  23. }
  24. } finally {
  25. base.Dispose (disposing);
  26. }
  27. #else
  28. return;
  29. #endif
  30. }
  31. protected internal PCTSignatures (IntPtr addr) : base (addr) { }
  32. // internal usage only
  33. public static new PCTSignatures __fromPtr__ (IntPtr addr) { return new PCTSignatures (addr); }
  34. // C++: enum DistanceFunction
  35. public const int L0_25 = 0;
  36. public const int L0_5 = 1;
  37. public const int L1 = 2;
  38. public const int L2 = 3;
  39. public const int L2SQUARED = 4;
  40. public const int L5 = 5;
  41. public const int L_INFINITY = 6;
  42. // C++: enum PointDistribution
  43. public const int UNIFORM = 0;
  44. public const int REGULAR = 1;
  45. public const int NORMAL = 2;
  46. // C++: enum SimilarityFunction
  47. public const int MINUS = 0;
  48. public const int GAUSSIAN = 1;
  49. public const int HEURISTIC = 2;
  50. //
  51. // C++: static Ptr_PCTSignatures cv::xfeatures2d::PCTSignatures::create(int initSampleCount = 2000, int initSeedCount = 400, int pointDistribution = 0)
  52. //
  53. //javadoc: PCTSignatures::create(initSampleCount, initSeedCount, pointDistribution)
  54. public static PCTSignatures create (int initSampleCount, int initSeedCount, int pointDistribution)
  55. {
  56. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  57. PCTSignatures retVal = PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_10(initSampleCount, initSeedCount, pointDistribution));
  58. return retVal;
  59. #else
  60. return null;
  61. #endif
  62. }
  63. //javadoc: PCTSignatures::create(initSampleCount, initSeedCount)
  64. public static PCTSignatures create (int initSampleCount, int initSeedCount)
  65. {
  66. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  67. PCTSignatures retVal = PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_11(initSampleCount, initSeedCount));
  68. return retVal;
  69. #else
  70. return null;
  71. #endif
  72. }
  73. //javadoc: PCTSignatures::create(initSampleCount)
  74. public static PCTSignatures create (int initSampleCount)
  75. {
  76. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  77. PCTSignatures retVal = PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_12(initSampleCount));
  78. return retVal;
  79. #else
  80. return null;
  81. #endif
  82. }
  83. //javadoc: PCTSignatures::create()
  84. public static PCTSignatures create ()
  85. {
  86. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  87. PCTSignatures retVal = PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_13());
  88. return retVal;
  89. #else
  90. return null;
  91. #endif
  92. }
  93. //
  94. // C++: static Ptr_PCTSignatures cv::xfeatures2d::PCTSignatures::create(vector_Point2f initSamplingPoints, int initSeedCount)
  95. //
  96. //javadoc: PCTSignatures::create(initSamplingPoints, initSeedCount)
  97. public static PCTSignatures create (MatOfPoint2f initSamplingPoints, int initSeedCount)
  98. {
  99. if (initSamplingPoints != null) initSamplingPoints.ThrowIfDisposed ();
  100. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  101. Mat initSamplingPoints_mat = initSamplingPoints;
  102. PCTSignatures retVal = PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_14(initSamplingPoints_mat.nativeObj, initSeedCount));
  103. return retVal;
  104. #else
  105. return null;
  106. #endif
  107. }
  108. //
  109. // C++: static Ptr_PCTSignatures cv::xfeatures2d::PCTSignatures::create(vector_Point2f initSamplingPoints, vector_int initClusterSeedIndexes)
  110. //
  111. //javadoc: PCTSignatures::create(initSamplingPoints, initClusterSeedIndexes)
  112. public static PCTSignatures create (MatOfPoint2f initSamplingPoints, MatOfInt initClusterSeedIndexes)
  113. {
  114. if (initSamplingPoints != null) initSamplingPoints.ThrowIfDisposed ();
  115. if (initClusterSeedIndexes != null) initClusterSeedIndexes.ThrowIfDisposed ();
  116. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  117. Mat initSamplingPoints_mat = initSamplingPoints;
  118. Mat initClusterSeedIndexes_mat = initClusterSeedIndexes;
  119. PCTSignatures retVal = PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_15(initSamplingPoints_mat.nativeObj, initClusterSeedIndexes_mat.nativeObj));
  120. return retVal;
  121. #else
  122. return null;
  123. #endif
  124. }
  125. //
  126. // C++: float cv::xfeatures2d::PCTSignatures::getDropThreshold()
  127. //
  128. //javadoc: PCTSignatures::getDropThreshold()
  129. public float getDropThreshold ()
  130. {
  131. ThrowIfDisposed ();
  132. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  133. float retVal = xfeatures2d_PCTSignatures_getDropThreshold_10(nativeObj);
  134. return retVal;
  135. #else
  136. return -1;
  137. #endif
  138. }
  139. //
  140. // C++: float cv::xfeatures2d::PCTSignatures::getJoiningDistance()
  141. //
  142. //javadoc: PCTSignatures::getJoiningDistance()
  143. public float getJoiningDistance ()
  144. {
  145. ThrowIfDisposed ();
  146. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  147. float retVal = xfeatures2d_PCTSignatures_getJoiningDistance_10(nativeObj);
  148. return retVal;
  149. #else
  150. return -1;
  151. #endif
  152. }
  153. //
  154. // C++: float cv::xfeatures2d::PCTSignatures::getWeightA()
  155. //
  156. //javadoc: PCTSignatures::getWeightA()
  157. public float getWeightA ()
  158. {
  159. ThrowIfDisposed ();
  160. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  161. float retVal = xfeatures2d_PCTSignatures_getWeightA_10(nativeObj);
  162. return retVal;
  163. #else
  164. return -1;
  165. #endif
  166. }
  167. //
  168. // C++: float cv::xfeatures2d::PCTSignatures::getWeightB()
  169. //
  170. //javadoc: PCTSignatures::getWeightB()
  171. public float getWeightB ()
  172. {
  173. ThrowIfDisposed ();
  174. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  175. float retVal = xfeatures2d_PCTSignatures_getWeightB_10(nativeObj);
  176. return retVal;
  177. #else
  178. return -1;
  179. #endif
  180. }
  181. //
  182. // C++: float cv::xfeatures2d::PCTSignatures::getWeightContrast()
  183. //
  184. //javadoc: PCTSignatures::getWeightContrast()
  185. public float getWeightContrast ()
  186. {
  187. ThrowIfDisposed ();
  188. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  189. float retVal = xfeatures2d_PCTSignatures_getWeightContrast_10(nativeObj);
  190. return retVal;
  191. #else
  192. return -1;
  193. #endif
  194. }
  195. //
  196. // C++: float cv::xfeatures2d::PCTSignatures::getWeightEntropy()
  197. //
  198. //javadoc: PCTSignatures::getWeightEntropy()
  199. public float getWeightEntropy ()
  200. {
  201. ThrowIfDisposed ();
  202. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  203. float retVal = xfeatures2d_PCTSignatures_getWeightEntropy_10(nativeObj);
  204. return retVal;
  205. #else
  206. return -1;
  207. #endif
  208. }
  209. //
  210. // C++: float cv::xfeatures2d::PCTSignatures::getWeightL()
  211. //
  212. //javadoc: PCTSignatures::getWeightL()
  213. public float getWeightL ()
  214. {
  215. ThrowIfDisposed ();
  216. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  217. float retVal = xfeatures2d_PCTSignatures_getWeightL_10(nativeObj);
  218. return retVal;
  219. #else
  220. return -1;
  221. #endif
  222. }
  223. //
  224. // C++: float cv::xfeatures2d::PCTSignatures::getWeightX()
  225. //
  226. //javadoc: PCTSignatures::getWeightX()
  227. public float getWeightX ()
  228. {
  229. ThrowIfDisposed ();
  230. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  231. float retVal = xfeatures2d_PCTSignatures_getWeightX_10(nativeObj);
  232. return retVal;
  233. #else
  234. return -1;
  235. #endif
  236. }
  237. //
  238. // C++: float cv::xfeatures2d::PCTSignatures::getWeightY()
  239. //
  240. //javadoc: PCTSignatures::getWeightY()
  241. public float getWeightY ()
  242. {
  243. ThrowIfDisposed ();
  244. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  245. float retVal = xfeatures2d_PCTSignatures_getWeightY_10(nativeObj);
  246. return retVal;
  247. #else
  248. return -1;
  249. #endif
  250. }
  251. //
  252. // C++: int cv::xfeatures2d::PCTSignatures::getClusterMinSize()
  253. //
  254. //javadoc: PCTSignatures::getClusterMinSize()
  255. public int getClusterMinSize ()
  256. {
  257. ThrowIfDisposed ();
  258. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  259. int retVal = xfeatures2d_PCTSignatures_getClusterMinSize_10(nativeObj);
  260. return retVal;
  261. #else
  262. return -1;
  263. #endif
  264. }
  265. //
  266. // C++: int cv::xfeatures2d::PCTSignatures::getDistanceFunction()
  267. //
  268. //javadoc: PCTSignatures::getDistanceFunction()
  269. public int getDistanceFunction ()
  270. {
  271. ThrowIfDisposed ();
  272. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  273. int retVal = xfeatures2d_PCTSignatures_getDistanceFunction_10(nativeObj);
  274. return retVal;
  275. #else
  276. return -1;
  277. #endif
  278. }
  279. //
  280. // C++: int cv::xfeatures2d::PCTSignatures::getGrayscaleBits()
  281. //
  282. //javadoc: PCTSignatures::getGrayscaleBits()
  283. public int getGrayscaleBits ()
  284. {
  285. ThrowIfDisposed ();
  286. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  287. int retVal = xfeatures2d_PCTSignatures_getGrayscaleBits_10(nativeObj);
  288. return retVal;
  289. #else
  290. return -1;
  291. #endif
  292. }
  293. //
  294. // C++: int cv::xfeatures2d::PCTSignatures::getInitSeedCount()
  295. //
  296. //javadoc: PCTSignatures::getInitSeedCount()
  297. public int getInitSeedCount ()
  298. {
  299. ThrowIfDisposed ();
  300. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  301. int retVal = xfeatures2d_PCTSignatures_getInitSeedCount_10(nativeObj);
  302. return retVal;
  303. #else
  304. return -1;
  305. #endif
  306. }
  307. //
  308. // C++: int cv::xfeatures2d::PCTSignatures::getIterationCount()
  309. //
  310. //javadoc: PCTSignatures::getIterationCount()
  311. public int getIterationCount ()
  312. {
  313. ThrowIfDisposed ();
  314. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  315. int retVal = xfeatures2d_PCTSignatures_getIterationCount_10(nativeObj);
  316. return retVal;
  317. #else
  318. return -1;
  319. #endif
  320. }
  321. //
  322. // C++: int cv::xfeatures2d::PCTSignatures::getMaxClustersCount()
  323. //
  324. //javadoc: PCTSignatures::getMaxClustersCount()
  325. public int getMaxClustersCount ()
  326. {
  327. ThrowIfDisposed ();
  328. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  329. int retVal = xfeatures2d_PCTSignatures_getMaxClustersCount_10(nativeObj);
  330. return retVal;
  331. #else
  332. return -1;
  333. #endif
  334. }
  335. //
  336. // C++: int cv::xfeatures2d::PCTSignatures::getSampleCount()
  337. //
  338. //javadoc: PCTSignatures::getSampleCount()
  339. public int getSampleCount ()
  340. {
  341. ThrowIfDisposed ();
  342. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  343. int retVal = xfeatures2d_PCTSignatures_getSampleCount_10(nativeObj);
  344. return retVal;
  345. #else
  346. return -1;
  347. #endif
  348. }
  349. //
  350. // C++: int cv::xfeatures2d::PCTSignatures::getWindowRadius()
  351. //
  352. //javadoc: PCTSignatures::getWindowRadius()
  353. public int getWindowRadius ()
  354. {
  355. ThrowIfDisposed ();
  356. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  357. int retVal = xfeatures2d_PCTSignatures_getWindowRadius_10(nativeObj);
  358. return retVal;
  359. #else
  360. return -1;
  361. #endif
  362. }
  363. //
  364. // C++: vector_Point2f cv::xfeatures2d::PCTSignatures::getSamplingPoints()
  365. //
  366. //javadoc: PCTSignatures::getSamplingPoints()
  367. public MatOfPoint2f getSamplingPoints ()
  368. {
  369. ThrowIfDisposed ();
  370. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  371. MatOfPoint2f retVal = MatOfPoint2f.fromNativeAddr(xfeatures2d_PCTSignatures_getSamplingPoints_10(nativeObj));
  372. return retVal;
  373. #else
  374. return null;
  375. #endif
  376. }
  377. //
  378. // C++: vector_int cv::xfeatures2d::PCTSignatures::getInitSeedIndexes()
  379. //
  380. //javadoc: PCTSignatures::getInitSeedIndexes()
  381. public MatOfInt getInitSeedIndexes ()
  382. {
  383. ThrowIfDisposed ();
  384. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  385. MatOfInt retVal = MatOfInt.fromNativeAddr(xfeatures2d_PCTSignatures_getInitSeedIndexes_10(nativeObj));
  386. return retVal;
  387. #else
  388. return null;
  389. #endif
  390. }
  391. //
  392. // C++: void cv::xfeatures2d::PCTSignatures::computeSignature(Mat image, Mat& signature)
  393. //
  394. //javadoc: PCTSignatures::computeSignature(image, signature)
  395. public void computeSignature (Mat image, Mat signature)
  396. {
  397. ThrowIfDisposed ();
  398. if (image != null) image.ThrowIfDisposed ();
  399. if (signature != null) signature.ThrowIfDisposed ();
  400. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  401. xfeatures2d_PCTSignatures_computeSignature_10(nativeObj, image.nativeObj, signature.nativeObj);
  402. return;
  403. #else
  404. return;
  405. #endif
  406. }
  407. //
  408. // C++: void cv::xfeatures2d::PCTSignatures::computeSignatures(vector_Mat images, vector_Mat signatures)
  409. //
  410. //javadoc: PCTSignatures::computeSignatures(images, signatures)
  411. public void computeSignatures (List<Mat> images, List<Mat> signatures)
  412. {
  413. ThrowIfDisposed ();
  414. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  415. Mat images_mat = Converters.vector_Mat_to_Mat(images);
  416. Mat signatures_mat = Converters.vector_Mat_to_Mat(signatures);
  417. xfeatures2d_PCTSignatures_computeSignatures_10(nativeObj, images_mat.nativeObj, signatures_mat.nativeObj);
  418. return;
  419. #else
  420. return;
  421. #endif
  422. }
  423. //
  424. // C++: static void cv::xfeatures2d::PCTSignatures::drawSignature(Mat source, Mat signature, Mat& result, float radiusToShorterSideRatio = 1.0 / 8, int borderThickness = 1)
  425. //
  426. //javadoc: PCTSignatures::drawSignature(source, signature, result, radiusToShorterSideRatio, borderThickness)
  427. public static void drawSignature (Mat source, Mat signature, Mat result, float radiusToShorterSideRatio, int borderThickness)
  428. {
  429. if (source != null) source.ThrowIfDisposed ();
  430. if (signature != null) signature.ThrowIfDisposed ();
  431. if (result != null) result.ThrowIfDisposed ();
  432. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  433. xfeatures2d_PCTSignatures_drawSignature_10(source.nativeObj, signature.nativeObj, result.nativeObj, radiusToShorterSideRatio, borderThickness);
  434. return;
  435. #else
  436. return;
  437. #endif
  438. }
  439. //javadoc: PCTSignatures::drawSignature(source, signature, result, radiusToShorterSideRatio)
  440. public static void drawSignature (Mat source, Mat signature, Mat result, float radiusToShorterSideRatio)
  441. {
  442. if (source != null) source.ThrowIfDisposed ();
  443. if (signature != null) signature.ThrowIfDisposed ();
  444. if (result != null) result.ThrowIfDisposed ();
  445. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  446. xfeatures2d_PCTSignatures_drawSignature_11(source.nativeObj, signature.nativeObj, result.nativeObj, radiusToShorterSideRatio);
  447. return;
  448. #else
  449. return;
  450. #endif
  451. }
  452. //javadoc: PCTSignatures::drawSignature(source, signature, result)
  453. public static void drawSignature (Mat source, Mat signature, Mat result)
  454. {
  455. if (source != null) source.ThrowIfDisposed ();
  456. if (signature != null) signature.ThrowIfDisposed ();
  457. if (result != null) result.ThrowIfDisposed ();
  458. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  459. xfeatures2d_PCTSignatures_drawSignature_12(source.nativeObj, signature.nativeObj, result.nativeObj);
  460. return;
  461. #else
  462. return;
  463. #endif
  464. }
  465. //
  466. // C++: static void cv::xfeatures2d::PCTSignatures::generateInitPoints(vector_Point2f initPoints, int count, int pointDistribution)
  467. //
  468. //javadoc: PCTSignatures::generateInitPoints(initPoints, count, pointDistribution)
  469. public static void generateInitPoints (MatOfPoint2f initPoints, int count, int pointDistribution)
  470. {
  471. if (initPoints != null) initPoints.ThrowIfDisposed ();
  472. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  473. Mat initPoints_mat = initPoints;
  474. xfeatures2d_PCTSignatures_generateInitPoints_10(initPoints_mat.nativeObj, count, pointDistribution);
  475. return;
  476. #else
  477. return;
  478. #endif
  479. }
  480. //
  481. // C++: void cv::xfeatures2d::PCTSignatures::setClusterMinSize(int clusterMinSize)
  482. //
  483. //javadoc: PCTSignatures::setClusterMinSize(clusterMinSize)
  484. public void setClusterMinSize (int clusterMinSize)
  485. {
  486. ThrowIfDisposed ();
  487. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  488. xfeatures2d_PCTSignatures_setClusterMinSize_10(nativeObj, clusterMinSize);
  489. return;
  490. #else
  491. return;
  492. #endif
  493. }
  494. //
  495. // C++: void cv::xfeatures2d::PCTSignatures::setDistanceFunction(int distanceFunction)
  496. //
  497. //javadoc: PCTSignatures::setDistanceFunction(distanceFunction)
  498. public void setDistanceFunction (int distanceFunction)
  499. {
  500. ThrowIfDisposed ();
  501. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  502. xfeatures2d_PCTSignatures_setDistanceFunction_10(nativeObj, distanceFunction);
  503. return;
  504. #else
  505. return;
  506. #endif
  507. }
  508. //
  509. // C++: void cv::xfeatures2d::PCTSignatures::setDropThreshold(float dropThreshold)
  510. //
  511. //javadoc: PCTSignatures::setDropThreshold(dropThreshold)
  512. public void setDropThreshold (float dropThreshold)
  513. {
  514. ThrowIfDisposed ();
  515. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  516. xfeatures2d_PCTSignatures_setDropThreshold_10(nativeObj, dropThreshold);
  517. return;
  518. #else
  519. return;
  520. #endif
  521. }
  522. //
  523. // C++: void cv::xfeatures2d::PCTSignatures::setGrayscaleBits(int grayscaleBits)
  524. //
  525. //javadoc: PCTSignatures::setGrayscaleBits(grayscaleBits)
  526. public void setGrayscaleBits (int grayscaleBits)
  527. {
  528. ThrowIfDisposed ();
  529. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  530. xfeatures2d_PCTSignatures_setGrayscaleBits_10(nativeObj, grayscaleBits);
  531. return;
  532. #else
  533. return;
  534. #endif
  535. }
  536. //
  537. // C++: void cv::xfeatures2d::PCTSignatures::setInitSeedIndexes(vector_int initSeedIndexes)
  538. //
  539. //javadoc: PCTSignatures::setInitSeedIndexes(initSeedIndexes)
  540. public void setInitSeedIndexes (MatOfInt initSeedIndexes)
  541. {
  542. ThrowIfDisposed ();
  543. if (initSeedIndexes != null) initSeedIndexes.ThrowIfDisposed ();
  544. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  545. Mat initSeedIndexes_mat = initSeedIndexes;
  546. xfeatures2d_PCTSignatures_setInitSeedIndexes_10(nativeObj, initSeedIndexes_mat.nativeObj);
  547. return;
  548. #else
  549. return;
  550. #endif
  551. }
  552. //
  553. // C++: void cv::xfeatures2d::PCTSignatures::setIterationCount(int iterationCount)
  554. //
  555. //javadoc: PCTSignatures::setIterationCount(iterationCount)
  556. public void setIterationCount (int iterationCount)
  557. {
  558. ThrowIfDisposed ();
  559. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  560. xfeatures2d_PCTSignatures_setIterationCount_10(nativeObj, iterationCount);
  561. return;
  562. #else
  563. return;
  564. #endif
  565. }
  566. //
  567. // C++: void cv::xfeatures2d::PCTSignatures::setJoiningDistance(float joiningDistance)
  568. //
  569. //javadoc: PCTSignatures::setJoiningDistance(joiningDistance)
  570. public void setJoiningDistance (float joiningDistance)
  571. {
  572. ThrowIfDisposed ();
  573. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  574. xfeatures2d_PCTSignatures_setJoiningDistance_10(nativeObj, joiningDistance);
  575. return;
  576. #else
  577. return;
  578. #endif
  579. }
  580. //
  581. // C++: void cv::xfeatures2d::PCTSignatures::setMaxClustersCount(int maxClustersCount)
  582. //
  583. //javadoc: PCTSignatures::setMaxClustersCount(maxClustersCount)
  584. public void setMaxClustersCount (int maxClustersCount)
  585. {
  586. ThrowIfDisposed ();
  587. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  588. xfeatures2d_PCTSignatures_setMaxClustersCount_10(nativeObj, maxClustersCount);
  589. return;
  590. #else
  591. return;
  592. #endif
  593. }
  594. //
  595. // C++: void cv::xfeatures2d::PCTSignatures::setSamplingPoints(vector_Point2f samplingPoints)
  596. //
  597. //javadoc: PCTSignatures::setSamplingPoints(samplingPoints)
  598. public void setSamplingPoints (MatOfPoint2f samplingPoints)
  599. {
  600. ThrowIfDisposed ();
  601. if (samplingPoints != null) samplingPoints.ThrowIfDisposed ();
  602. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  603. Mat samplingPoints_mat = samplingPoints;
  604. xfeatures2d_PCTSignatures_setSamplingPoints_10(nativeObj, samplingPoints_mat.nativeObj);
  605. return;
  606. #else
  607. return;
  608. #endif
  609. }
  610. //
  611. // C++: void cv::xfeatures2d::PCTSignatures::setTranslation(int idx, float value)
  612. //
  613. //javadoc: PCTSignatures::setTranslation(idx, value)
  614. public void setTranslation (int idx, float value)
  615. {
  616. ThrowIfDisposed ();
  617. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  618. xfeatures2d_PCTSignatures_setTranslation_10(nativeObj, idx, value);
  619. return;
  620. #else
  621. return;
  622. #endif
  623. }
  624. //
  625. // C++: void cv::xfeatures2d::PCTSignatures::setTranslations(vector_float translations)
  626. //
  627. //javadoc: PCTSignatures::setTranslations(translations)
  628. public void setTranslations (MatOfFloat translations)
  629. {
  630. ThrowIfDisposed ();
  631. if (translations != null) translations.ThrowIfDisposed ();
  632. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  633. Mat translations_mat = translations;
  634. xfeatures2d_PCTSignatures_setTranslations_10(nativeObj, translations_mat.nativeObj);
  635. return;
  636. #else
  637. return;
  638. #endif
  639. }
  640. //
  641. // C++: void cv::xfeatures2d::PCTSignatures::setWeight(int idx, float value)
  642. //
  643. //javadoc: PCTSignatures::setWeight(idx, value)
  644. public void setWeight (int idx, float value)
  645. {
  646. ThrowIfDisposed ();
  647. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  648. xfeatures2d_PCTSignatures_setWeight_10(nativeObj, idx, value);
  649. return;
  650. #else
  651. return;
  652. #endif
  653. }
  654. //
  655. // C++: void cv::xfeatures2d::PCTSignatures::setWeightA(float weight)
  656. //
  657. //javadoc: PCTSignatures::setWeightA(weight)
  658. public void setWeightA (float weight)
  659. {
  660. ThrowIfDisposed ();
  661. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  662. xfeatures2d_PCTSignatures_setWeightA_10(nativeObj, weight);
  663. return;
  664. #else
  665. return;
  666. #endif
  667. }
  668. //
  669. // C++: void cv::xfeatures2d::PCTSignatures::setWeightB(float weight)
  670. //
  671. //javadoc: PCTSignatures::setWeightB(weight)
  672. public void setWeightB (float weight)
  673. {
  674. ThrowIfDisposed ();
  675. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  676. xfeatures2d_PCTSignatures_setWeightB_10(nativeObj, weight);
  677. return;
  678. #else
  679. return;
  680. #endif
  681. }
  682. //
  683. // C++: void cv::xfeatures2d::PCTSignatures::setWeightContrast(float weight)
  684. //
  685. //javadoc: PCTSignatures::setWeightContrast(weight)
  686. public void setWeightContrast (float weight)
  687. {
  688. ThrowIfDisposed ();
  689. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  690. xfeatures2d_PCTSignatures_setWeightContrast_10(nativeObj, weight);
  691. return;
  692. #else
  693. return;
  694. #endif
  695. }
  696. //
  697. // C++: void cv::xfeatures2d::PCTSignatures::setWeightEntropy(float weight)
  698. //
  699. //javadoc: PCTSignatures::setWeightEntropy(weight)
  700. public void setWeightEntropy (float weight)
  701. {
  702. ThrowIfDisposed ();
  703. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  704. xfeatures2d_PCTSignatures_setWeightEntropy_10(nativeObj, weight);
  705. return;
  706. #else
  707. return;
  708. #endif
  709. }
  710. //
  711. // C++: void cv::xfeatures2d::PCTSignatures::setWeightL(float weight)
  712. //
  713. //javadoc: PCTSignatures::setWeightL(weight)
  714. public void setWeightL (float weight)
  715. {
  716. ThrowIfDisposed ();
  717. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  718. xfeatures2d_PCTSignatures_setWeightL_10(nativeObj, weight);
  719. return;
  720. #else
  721. return;
  722. #endif
  723. }
  724. //
  725. // C++: void cv::xfeatures2d::PCTSignatures::setWeightX(float weight)
  726. //
  727. //javadoc: PCTSignatures::setWeightX(weight)
  728. public void setWeightX (float weight)
  729. {
  730. ThrowIfDisposed ();
  731. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  732. xfeatures2d_PCTSignatures_setWeightX_10(nativeObj, weight);
  733. return;
  734. #else
  735. return;
  736. #endif
  737. }
  738. //
  739. // C++: void cv::xfeatures2d::PCTSignatures::setWeightY(float weight)
  740. //
  741. //javadoc: PCTSignatures::setWeightY(weight)
  742. public void setWeightY (float weight)
  743. {
  744. ThrowIfDisposed ();
  745. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  746. xfeatures2d_PCTSignatures_setWeightY_10(nativeObj, weight);
  747. return;
  748. #else
  749. return;
  750. #endif
  751. }
  752. //
  753. // C++: void cv::xfeatures2d::PCTSignatures::setWeights(vector_float weights)
  754. //
  755. //javadoc: PCTSignatures::setWeights(weights)
  756. public void setWeights (MatOfFloat weights)
  757. {
  758. ThrowIfDisposed ();
  759. if (weights != null) weights.ThrowIfDisposed ();
  760. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  761. Mat weights_mat = weights;
  762. xfeatures2d_PCTSignatures_setWeights_10(nativeObj, weights_mat.nativeObj);
  763. return;
  764. #else
  765. return;
  766. #endif
  767. }
  768. //
  769. // C++: void cv::xfeatures2d::PCTSignatures::setWindowRadius(int radius)
  770. //
  771. //javadoc: PCTSignatures::setWindowRadius(radius)
  772. public void setWindowRadius (int radius)
  773. {
  774. ThrowIfDisposed ();
  775. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  776. xfeatures2d_PCTSignatures_setWindowRadius_10(nativeObj, radius);
  777. return;
  778. #else
  779. return;
  780. #endif
  781. }
  782. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  783. const string LIBNAME = "__Internal";
  784. #else
  785. const string LIBNAME = "opencvforunity";
  786. #endif
  787. // C++: static Ptr_PCTSignatures cv::xfeatures2d::PCTSignatures::create(int initSampleCount = 2000, int initSeedCount = 400, int pointDistribution = 0)
  788. [DllImport (LIBNAME)]
  789. private static extern IntPtr xfeatures2d_PCTSignatures_create_10 (int initSampleCount, int initSeedCount, int pointDistribution);
  790. [DllImport (LIBNAME)]
  791. private static extern IntPtr xfeatures2d_PCTSignatures_create_11 (int initSampleCount, int initSeedCount);
  792. [DllImport (LIBNAME)]
  793. private static extern IntPtr xfeatures2d_PCTSignatures_create_12 (int initSampleCount);
  794. [DllImport (LIBNAME)]
  795. private static extern IntPtr xfeatures2d_PCTSignatures_create_13 ();
  796. // C++: static Ptr_PCTSignatures cv::xfeatures2d::PCTSignatures::create(vector_Point2f initSamplingPoints, int initSeedCount)
  797. [DllImport (LIBNAME)]
  798. private static extern IntPtr xfeatures2d_PCTSignatures_create_14 (IntPtr initSamplingPoints_mat_nativeObj, int initSeedCount);
  799. // C++: static Ptr_PCTSignatures cv::xfeatures2d::PCTSignatures::create(vector_Point2f initSamplingPoints, vector_int initClusterSeedIndexes)
  800. [DllImport (LIBNAME)]
  801. private static extern IntPtr xfeatures2d_PCTSignatures_create_15 (IntPtr initSamplingPoints_mat_nativeObj, IntPtr initClusterSeedIndexes_mat_nativeObj);
  802. // C++: float cv::xfeatures2d::PCTSignatures::getDropThreshold()
  803. [DllImport (LIBNAME)]
  804. private static extern float xfeatures2d_PCTSignatures_getDropThreshold_10 (IntPtr nativeObj);
  805. // C++: float cv::xfeatures2d::PCTSignatures::getJoiningDistance()
  806. [DllImport (LIBNAME)]
  807. private static extern float xfeatures2d_PCTSignatures_getJoiningDistance_10 (IntPtr nativeObj);
  808. // C++: float cv::xfeatures2d::PCTSignatures::getWeightA()
  809. [DllImport (LIBNAME)]
  810. private static extern float xfeatures2d_PCTSignatures_getWeightA_10 (IntPtr nativeObj);
  811. // C++: float cv::xfeatures2d::PCTSignatures::getWeightB()
  812. [DllImport (LIBNAME)]
  813. private static extern float xfeatures2d_PCTSignatures_getWeightB_10 (IntPtr nativeObj);
  814. // C++: float cv::xfeatures2d::PCTSignatures::getWeightContrast()
  815. [DllImport (LIBNAME)]
  816. private static extern float xfeatures2d_PCTSignatures_getWeightContrast_10 (IntPtr nativeObj);
  817. // C++: float cv::xfeatures2d::PCTSignatures::getWeightEntropy()
  818. [DllImport (LIBNAME)]
  819. private static extern float xfeatures2d_PCTSignatures_getWeightEntropy_10 (IntPtr nativeObj);
  820. // C++: float cv::xfeatures2d::PCTSignatures::getWeightL()
  821. [DllImport (LIBNAME)]
  822. private static extern float xfeatures2d_PCTSignatures_getWeightL_10 (IntPtr nativeObj);
  823. // C++: float cv::xfeatures2d::PCTSignatures::getWeightX()
  824. [DllImport (LIBNAME)]
  825. private static extern float xfeatures2d_PCTSignatures_getWeightX_10 (IntPtr nativeObj);
  826. // C++: float cv::xfeatures2d::PCTSignatures::getWeightY()
  827. [DllImport (LIBNAME)]
  828. private static extern float xfeatures2d_PCTSignatures_getWeightY_10 (IntPtr nativeObj);
  829. // C++: int cv::xfeatures2d::PCTSignatures::getClusterMinSize()
  830. [DllImport (LIBNAME)]
  831. private static extern int xfeatures2d_PCTSignatures_getClusterMinSize_10 (IntPtr nativeObj);
  832. // C++: int cv::xfeatures2d::PCTSignatures::getDistanceFunction()
  833. [DllImport (LIBNAME)]
  834. private static extern int xfeatures2d_PCTSignatures_getDistanceFunction_10 (IntPtr nativeObj);
  835. // C++: int cv::xfeatures2d::PCTSignatures::getGrayscaleBits()
  836. [DllImport (LIBNAME)]
  837. private static extern int xfeatures2d_PCTSignatures_getGrayscaleBits_10 (IntPtr nativeObj);
  838. // C++: int cv::xfeatures2d::PCTSignatures::getInitSeedCount()
  839. [DllImport (LIBNAME)]
  840. private static extern int xfeatures2d_PCTSignatures_getInitSeedCount_10 (IntPtr nativeObj);
  841. // C++: int cv::xfeatures2d::PCTSignatures::getIterationCount()
  842. [DllImport (LIBNAME)]
  843. private static extern int xfeatures2d_PCTSignatures_getIterationCount_10 (IntPtr nativeObj);
  844. // C++: int cv::xfeatures2d::PCTSignatures::getMaxClustersCount()
  845. [DllImport (LIBNAME)]
  846. private static extern int xfeatures2d_PCTSignatures_getMaxClustersCount_10 (IntPtr nativeObj);
  847. // C++: int cv::xfeatures2d::PCTSignatures::getSampleCount()
  848. [DllImport (LIBNAME)]
  849. private static extern int xfeatures2d_PCTSignatures_getSampleCount_10 (IntPtr nativeObj);
  850. // C++: int cv::xfeatures2d::PCTSignatures::getWindowRadius()
  851. [DllImport (LIBNAME)]
  852. private static extern int xfeatures2d_PCTSignatures_getWindowRadius_10 (IntPtr nativeObj);
  853. // C++: vector_Point2f cv::xfeatures2d::PCTSignatures::getSamplingPoints()
  854. [DllImport (LIBNAME)]
  855. private static extern IntPtr xfeatures2d_PCTSignatures_getSamplingPoints_10 (IntPtr nativeObj);
  856. // C++: vector_int cv::xfeatures2d::PCTSignatures::getInitSeedIndexes()
  857. [DllImport (LIBNAME)]
  858. private static extern IntPtr xfeatures2d_PCTSignatures_getInitSeedIndexes_10 (IntPtr nativeObj);
  859. // C++: void cv::xfeatures2d::PCTSignatures::computeSignature(Mat image, Mat& signature)
  860. [DllImport (LIBNAME)]
  861. private static extern void xfeatures2d_PCTSignatures_computeSignature_10 (IntPtr nativeObj, IntPtr image_nativeObj, IntPtr signature_nativeObj);
  862. // C++: void cv::xfeatures2d::PCTSignatures::computeSignatures(vector_Mat images, vector_Mat signatures)
  863. [DllImport (LIBNAME)]
  864. private static extern void xfeatures2d_PCTSignatures_computeSignatures_10 (IntPtr nativeObj, IntPtr images_mat_nativeObj, IntPtr signatures_mat_nativeObj);
  865. // C++: static void cv::xfeatures2d::PCTSignatures::drawSignature(Mat source, Mat signature, Mat& result, float radiusToShorterSideRatio = 1.0 / 8, int borderThickness = 1)
  866. [DllImport (LIBNAME)]
  867. private static extern void xfeatures2d_PCTSignatures_drawSignature_10 (IntPtr source_nativeObj, IntPtr signature_nativeObj, IntPtr result_nativeObj, float radiusToShorterSideRatio, int borderThickness);
  868. [DllImport (LIBNAME)]
  869. private static extern void xfeatures2d_PCTSignatures_drawSignature_11 (IntPtr source_nativeObj, IntPtr signature_nativeObj, IntPtr result_nativeObj, float radiusToShorterSideRatio);
  870. [DllImport (LIBNAME)]
  871. private static extern void xfeatures2d_PCTSignatures_drawSignature_12 (IntPtr source_nativeObj, IntPtr signature_nativeObj, IntPtr result_nativeObj);
  872. // C++: static void cv::xfeatures2d::PCTSignatures::generateInitPoints(vector_Point2f initPoints, int count, int pointDistribution)
  873. [DllImport (LIBNAME)]
  874. private static extern void xfeatures2d_PCTSignatures_generateInitPoints_10 (IntPtr initPoints_mat_nativeObj, int count, int pointDistribution);
  875. // C++: void cv::xfeatures2d::PCTSignatures::setClusterMinSize(int clusterMinSize)
  876. [DllImport (LIBNAME)]
  877. private static extern void xfeatures2d_PCTSignatures_setClusterMinSize_10 (IntPtr nativeObj, int clusterMinSize);
  878. // C++: void cv::xfeatures2d::PCTSignatures::setDistanceFunction(int distanceFunction)
  879. [DllImport (LIBNAME)]
  880. private static extern void xfeatures2d_PCTSignatures_setDistanceFunction_10 (IntPtr nativeObj, int distanceFunction);
  881. // C++: void cv::xfeatures2d::PCTSignatures::setDropThreshold(float dropThreshold)
  882. [DllImport (LIBNAME)]
  883. private static extern void xfeatures2d_PCTSignatures_setDropThreshold_10 (IntPtr nativeObj, float dropThreshold);
  884. // C++: void cv::xfeatures2d::PCTSignatures::setGrayscaleBits(int grayscaleBits)
  885. [DllImport (LIBNAME)]
  886. private static extern void xfeatures2d_PCTSignatures_setGrayscaleBits_10 (IntPtr nativeObj, int grayscaleBits);
  887. // C++: void cv::xfeatures2d::PCTSignatures::setInitSeedIndexes(vector_int initSeedIndexes)
  888. [DllImport (LIBNAME)]
  889. private static extern void xfeatures2d_PCTSignatures_setInitSeedIndexes_10 (IntPtr nativeObj, IntPtr initSeedIndexes_mat_nativeObj);
  890. // C++: void cv::xfeatures2d::PCTSignatures::setIterationCount(int iterationCount)
  891. [DllImport (LIBNAME)]
  892. private static extern void xfeatures2d_PCTSignatures_setIterationCount_10 (IntPtr nativeObj, int iterationCount);
  893. // C++: void cv::xfeatures2d::PCTSignatures::setJoiningDistance(float joiningDistance)
  894. [DllImport (LIBNAME)]
  895. private static extern void xfeatures2d_PCTSignatures_setJoiningDistance_10 (IntPtr nativeObj, float joiningDistance);
  896. // C++: void cv::xfeatures2d::PCTSignatures::setMaxClustersCount(int maxClustersCount)
  897. [DllImport (LIBNAME)]
  898. private static extern void xfeatures2d_PCTSignatures_setMaxClustersCount_10 (IntPtr nativeObj, int maxClustersCount);
  899. // C++: void cv::xfeatures2d::PCTSignatures::setSamplingPoints(vector_Point2f samplingPoints)
  900. [DllImport (LIBNAME)]
  901. private static extern void xfeatures2d_PCTSignatures_setSamplingPoints_10 (IntPtr nativeObj, IntPtr samplingPoints_mat_nativeObj);
  902. // C++: void cv::xfeatures2d::PCTSignatures::setTranslation(int idx, float value)
  903. [DllImport (LIBNAME)]
  904. private static extern void xfeatures2d_PCTSignatures_setTranslation_10 (IntPtr nativeObj, int idx, float value);
  905. // C++: void cv::xfeatures2d::PCTSignatures::setTranslations(vector_float translations)
  906. [DllImport (LIBNAME)]
  907. private static extern void xfeatures2d_PCTSignatures_setTranslations_10 (IntPtr nativeObj, IntPtr translations_mat_nativeObj);
  908. // C++: void cv::xfeatures2d::PCTSignatures::setWeight(int idx, float value)
  909. [DllImport (LIBNAME)]
  910. private static extern void xfeatures2d_PCTSignatures_setWeight_10 (IntPtr nativeObj, int idx, float value);
  911. // C++: void cv::xfeatures2d::PCTSignatures::setWeightA(float weight)
  912. [DllImport (LIBNAME)]
  913. private static extern void xfeatures2d_PCTSignatures_setWeightA_10 (IntPtr nativeObj, float weight);
  914. // C++: void cv::xfeatures2d::PCTSignatures::setWeightB(float weight)
  915. [DllImport (LIBNAME)]
  916. private static extern void xfeatures2d_PCTSignatures_setWeightB_10 (IntPtr nativeObj, float weight);
  917. // C++: void cv::xfeatures2d::PCTSignatures::setWeightContrast(float weight)
  918. [DllImport (LIBNAME)]
  919. private static extern void xfeatures2d_PCTSignatures_setWeightContrast_10 (IntPtr nativeObj, float weight);
  920. // C++: void cv::xfeatures2d::PCTSignatures::setWeightEntropy(float weight)
  921. [DllImport (LIBNAME)]
  922. private static extern void xfeatures2d_PCTSignatures_setWeightEntropy_10 (IntPtr nativeObj, float weight);
  923. // C++: void cv::xfeatures2d::PCTSignatures::setWeightL(float weight)
  924. [DllImport (LIBNAME)]
  925. private static extern void xfeatures2d_PCTSignatures_setWeightL_10 (IntPtr nativeObj, float weight);
  926. // C++: void cv::xfeatures2d::PCTSignatures::setWeightX(float weight)
  927. [DllImport (LIBNAME)]
  928. private static extern void xfeatures2d_PCTSignatures_setWeightX_10 (IntPtr nativeObj, float weight);
  929. // C++: void cv::xfeatures2d::PCTSignatures::setWeightY(float weight)
  930. [DllImport (LIBNAME)]
  931. private static extern void xfeatures2d_PCTSignatures_setWeightY_10 (IntPtr nativeObj, float weight);
  932. // C++: void cv::xfeatures2d::PCTSignatures::setWeights(vector_float weights)
  933. [DllImport (LIBNAME)]
  934. private static extern void xfeatures2d_PCTSignatures_setWeights_10 (IntPtr nativeObj, IntPtr weights_mat_nativeObj);
  935. // C++: void cv::xfeatures2d::PCTSignatures::setWindowRadius(int radius)
  936. [DllImport (LIBNAME)]
  937. private static extern void xfeatures2d_PCTSignatures_setWindowRadius_10 (IntPtr nativeObj, int radius);
  938. // native support for java finalize()
  939. [DllImport (LIBNAME)]
  940. private static extern void xfeatures2d_PCTSignatures_delete (IntPtr nativeObj);
  941. }
  942. }