PCTSignatures.cs 47 KB

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