DescriptorMatcher.html 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="en">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_312) on Wed Jun 28 12:47:23 UTC 2023 -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>DescriptorMatcher (OpenCV 4.8.0 Java documentation)</title>
  8. <meta name="date" content="2023-06-28">
  9. <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
  10. <script type="text/javascript" src="../../../script.js"></script>
  11. </head>
  12. <body>
  13. <script type="text/javascript"><!--
  14. try {
  15. if (location.href.indexOf('is-external=true') == -1) {
  16. parent.document.title="DescriptorMatcher (OpenCV 4.8.0 Java documentation)";
  17. }
  18. }
  19. catch(err) {
  20. }
  21. //-->
  22. var methods = {"i0":9,"i1":10,"i2":10,"i3":10,"i4":10,"i5":9,"i6":9,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10};
  23. var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  24. var altColor = "altColor";
  25. var rowColor = "rowColor";
  26. var tableTab = "tableTab";
  27. var activeTableTab = "activeTableTab";
  28. </script>
  29. <noscript>
  30. <div>JavaScript is disabled on your browser.</div>
  31. </noscript>
  32. <!-- ========= START OF TOP NAVBAR ======= -->
  33. <div class="topNav"><a name="navbar.top">
  34. <!-- -->
  35. </a>
  36. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  37. <a name="navbar.top.firstrow">
  38. <!-- -->
  39. </a>
  40. <ul class="navList" title="Navigation">
  41. <li><a href="../../../overview-summary.html">Overview</a></li>
  42. <li><a href="package-summary.html">Package</a></li>
  43. <li class="navBarCell1Rev">Class</li>
  44. <li><a href="package-tree.html">Tree</a></li>
  45. <li><a href="../../../index-all.html">Index</a></li>
  46. <li><a href="../../../help-doc.html">Help</a></li>
  47. </ul>
  48. <div class="aboutLanguage">
  49. <script>
  50. var url = window.location.href;
  51. var pos = url.lastIndexOf('/javadoc/');
  52. url = pos >= 0 ? (url.substring(0, pos) + '/javadoc/mymath.js') : (window.location.origin + '/mymath.js');
  53. var script = document.createElement('script');
  54. script.src = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML,' + url;
  55. document.getElementsByTagName('head')[0].appendChild(script);
  56. </script>
  57. </div>
  58. </div>
  59. <div class="subNav">
  60. <ul class="navList">
  61. <li><a href="../../../org/opencv/features2d/BRISK.html" title="class in org.opencv.features2d"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  62. <li><a href="../../../org/opencv/features2d/FastFeatureDetector.html" title="class in org.opencv.features2d"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  63. </ul>
  64. <ul class="navList">
  65. <li><a href="../../../index.html?org/opencv/features2d/DescriptorMatcher.html" target="_top">Frames</a></li>
  66. <li><a href="DescriptorMatcher.html" target="_top">No&nbsp;Frames</a></li>
  67. </ul>
  68. <ul class="navList" id="allclasses_navbar_top">
  69. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  70. </ul>
  71. <div>
  72. <script type="text/javascript"><!--
  73. allClassesLink = document.getElementById("allclasses_navbar_top");
  74. if(window==top) {
  75. allClassesLink.style.display = "block";
  76. }
  77. else {
  78. allClassesLink.style.display = "none";
  79. }
  80. //-->
  81. </script>
  82. </div>
  83. <div>
  84. <ul class="subNavList">
  85. <li>Summary:&nbsp;</li>
  86. <li>Nested&nbsp;|&nbsp;</li>
  87. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  88. <li>Constr&nbsp;|&nbsp;</li>
  89. <li><a href="#method.summary">Method</a></li>
  90. </ul>
  91. <ul class="subNavList">
  92. <li>Detail:&nbsp;</li>
  93. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  94. <li>Constr&nbsp;|&nbsp;</li>
  95. <li><a href="#method.detail">Method</a></li>
  96. </ul>
  97. </div>
  98. <a name="skip.navbar.top">
  99. <!-- -->
  100. </a></div>
  101. <!-- ========= END OF TOP NAVBAR ========= -->
  102. <!-- ======== START OF CLASS DATA ======== -->
  103. <div class="header">
  104. <div class="subTitle">org.opencv.features2d</div>
  105. <h2 title="Class DescriptorMatcher" class="title">Class DescriptorMatcher</h2>
  106. </div>
  107. <div class="contentContainer">
  108. <ul class="inheritance">
  109. <li>java.lang.Object</li>
  110. <li>
  111. <ul class="inheritance">
  112. <li><a href="../../../org/opencv/core/Algorithm.html" title="class in org.opencv.core">org.opencv.core.Algorithm</a></li>
  113. <li>
  114. <ul class="inheritance">
  115. <li>org.opencv.features2d.DescriptorMatcher</li>
  116. </ul>
  117. </li>
  118. </ul>
  119. </li>
  120. </ul>
  121. <div class="description">
  122. <ul class="blockList">
  123. <li class="blockList">
  124. <dl>
  125. <dt>Direct Known Subclasses:</dt>
  126. <dd><a href="../../../org/opencv/features2d/BFMatcher.html" title="class in org.opencv.features2d">BFMatcher</a>, <a href="../../../org/opencv/features2d/FlannBasedMatcher.html" title="class in org.opencv.features2d">FlannBasedMatcher</a></dd>
  127. </dl>
  128. <hr>
  129. <br>
  130. <pre>public class <span class="typeNameLabel">DescriptorMatcher</span>
  131. extends <a href="../../../org/opencv/core/Algorithm.html" title="class in org.opencv.core">Algorithm</a></pre>
  132. <div class="block">Abstract base class for matching keypoint descriptors.
  133. It has two groups of match methods: for matching descriptors of an image with another image or with
  134. an image set.</div>
  135. </li>
  136. </ul>
  137. </div>
  138. <div class="summary">
  139. <ul class="blockList">
  140. <li class="blockList">
  141. <!-- =========== FIELD SUMMARY =========== -->
  142. <ul class="blockList">
  143. <li class="blockList"><a name="field.summary">
  144. <!-- -->
  145. </a>
  146. <h3>Field Summary</h3>
  147. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  148. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  149. <tr>
  150. <th class="colFirst" scope="col">Modifier and Type</th>
  151. <th class="colLast" scope="col">Field and Description</th>
  152. </tr>
  153. <tr class="altColor">
  154. <td class="colFirst"><code>static int</code></td>
  155. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#BRUTEFORCE">BRUTEFORCE</a></span></code>&nbsp;</td>
  156. </tr>
  157. <tr class="rowColor">
  158. <td class="colFirst"><code>static int</code></td>
  159. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#BRUTEFORCE_HAMMING">BRUTEFORCE_HAMMING</a></span></code>&nbsp;</td>
  160. </tr>
  161. <tr class="altColor">
  162. <td class="colFirst"><code>static int</code></td>
  163. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#BRUTEFORCE_HAMMINGLUT">BRUTEFORCE_HAMMINGLUT</a></span></code>&nbsp;</td>
  164. </tr>
  165. <tr class="rowColor">
  166. <td class="colFirst"><code>static int</code></td>
  167. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#BRUTEFORCE_L1">BRUTEFORCE_L1</a></span></code>&nbsp;</td>
  168. </tr>
  169. <tr class="altColor">
  170. <td class="colFirst"><code>static int</code></td>
  171. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#BRUTEFORCE_SL2">BRUTEFORCE_SL2</a></span></code>&nbsp;</td>
  172. </tr>
  173. <tr class="rowColor">
  174. <td class="colFirst"><code>static int</code></td>
  175. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#FLANNBASED">FLANNBASED</a></span></code>&nbsp;</td>
  176. </tr>
  177. </table>
  178. </li>
  179. </ul>
  180. <!-- ========== METHOD SUMMARY =========== -->
  181. <ul class="blockList">
  182. <li class="blockList"><a name="method.summary">
  183. <!-- -->
  184. </a>
  185. <h3>Method Summary</h3>
  186. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  187. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  188. <tr>
  189. <th class="colFirst" scope="col">Modifier and Type</th>
  190. <th class="colLast" scope="col">Method and Description</th>
  191. </tr>
  192. <tr id="i0" class="altColor">
  193. <td class="colFirst"><code>static <a href="../../../org/opencv/features2d/DescriptorMatcher.html" title="class in org.opencv.features2d">DescriptorMatcher</a></code></td>
  194. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#Z:Z__fromPtr__-long-">__fromPtr__</a></span>(long&nbsp;addr)</code>&nbsp;</td>
  195. </tr>
  196. <tr id="i1" class="rowColor">
  197. <td class="colFirst"><code>void</code></td>
  198. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#add-java.util.List-">add</a></span>(java.util.List&lt;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&gt;&nbsp;descriptors)</code>
  199. <div class="block">Adds descriptors to train a CPU(trainDescCollectionis) or GPU(utrainDescCollectionis) descriptor
  200. collection.</div>
  201. </td>
  202. </tr>
  203. <tr id="i2" class="altColor">
  204. <td class="colFirst"><code>void</code></td>
  205. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#clear--">clear</a></span>()</code>
  206. <div class="block">Clears the train descriptor collections.</div>
  207. </td>
  208. </tr>
  209. <tr id="i3" class="rowColor">
  210. <td class="colFirst"><code><a href="../../../org/opencv/features2d/DescriptorMatcher.html" title="class in org.opencv.features2d">DescriptorMatcher</a></code></td>
  211. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#clone--">clone</a></span>()</code>
  212. <div class="block">Clones the matcher.</div>
  213. </td>
  214. </tr>
  215. <tr id="i4" class="altColor">
  216. <td class="colFirst"><code><a href="../../../org/opencv/features2d/DescriptorMatcher.html" title="class in org.opencv.features2d">DescriptorMatcher</a></code></td>
  217. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#clone-boolean-">clone</a></span>(boolean&nbsp;emptyTrainData)</code>
  218. <div class="block">Clones the matcher.</div>
  219. </td>
  220. </tr>
  221. <tr id="i5" class="rowColor">
  222. <td class="colFirst"><code>static <a href="../../../org/opencv/features2d/DescriptorMatcher.html" title="class in org.opencv.features2d">DescriptorMatcher</a></code></td>
  223. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#create-int-">create</a></span>(int&nbsp;matcherType)</code>&nbsp;</td>
  224. </tr>
  225. <tr id="i6" class="altColor">
  226. <td class="colFirst"><code>static <a href="../../../org/opencv/features2d/DescriptorMatcher.html" title="class in org.opencv.features2d">DescriptorMatcher</a></code></td>
  227. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#create-java.lang.String-">create</a></span>(java.lang.String&nbsp;descriptorMatcherType)</code>
  228. <div class="block">Creates a descriptor matcher of a given type with the default parameters (using default
  229. constructor).</div>
  230. </td>
  231. </tr>
  232. <tr id="i7" class="rowColor">
  233. <td class="colFirst"><code>boolean</code></td>
  234. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#empty--">empty</a></span>()</code>
  235. <div class="block">Returns true if there are no train descriptors in the both collections.</div>
  236. </td>
  237. </tr>
  238. <tr id="i8" class="altColor">
  239. <td class="colFirst"><code>java.util.List&lt;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&gt;</code></td>
  240. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#getTrainDescriptors--">getTrainDescriptors</a></span>()</code>
  241. <div class="block">Returns a constant link to the train descriptor collection trainDescCollection .</div>
  242. </td>
  243. </tr>
  244. <tr id="i9" class="rowColor">
  245. <td class="colFirst"><code>boolean</code></td>
  246. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#isMaskSupported--">isMaskSupported</a></span>()</code>
  247. <div class="block">Returns true if the descriptor matcher supports masking permissible matches.</div>
  248. </td>
  249. </tr>
  250. <tr id="i10" class="altColor">
  251. <td class="colFirst"><code>void</code></td>
  252. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#knnMatch-org.opencv.core.Mat-java.util.List-int-">knnMatch</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  253. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  254. int&nbsp;k)</code>&nbsp;</td>
  255. </tr>
  256. <tr id="i11" class="rowColor">
  257. <td class="colFirst"><code>void</code></td>
  258. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#knnMatch-org.opencv.core.Mat-java.util.List-int-java.util.List-">knnMatch</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  259. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  260. int&nbsp;k,
  261. java.util.List&lt;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&gt;&nbsp;masks)</code>&nbsp;</td>
  262. </tr>
  263. <tr id="i12" class="altColor">
  264. <td class="colFirst"><code>void</code></td>
  265. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#knnMatch-org.opencv.core.Mat-java.util.List-int-java.util.List-boolean-">knnMatch</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  266. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  267. int&nbsp;k,
  268. java.util.List&lt;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&gt;&nbsp;masks,
  269. boolean&nbsp;compactResult)</code>&nbsp;</td>
  270. </tr>
  271. <tr id="i13" class="rowColor">
  272. <td class="colFirst"><code>void</code></td>
  273. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#knnMatch-org.opencv.core.Mat-org.opencv.core.Mat-java.util.List-int-">knnMatch</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  274. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  275. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  276. int&nbsp;k)</code>
  277. <div class="block">Finds the k best matches for each descriptor from a query set.</div>
  278. </td>
  279. </tr>
  280. <tr id="i14" class="altColor">
  281. <td class="colFirst"><code>void</code></td>
  282. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#knnMatch-org.opencv.core.Mat-org.opencv.core.Mat-java.util.List-int-org.opencv.core.Mat-">knnMatch</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  283. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  284. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  285. int&nbsp;k,
  286. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;mask)</code>
  287. <div class="block">Finds the k best matches for each descriptor from a query set.</div>
  288. </td>
  289. </tr>
  290. <tr id="i15" class="rowColor">
  291. <td class="colFirst"><code>void</code></td>
  292. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#knnMatch-org.opencv.core.Mat-org.opencv.core.Mat-java.util.List-int-org.opencv.core.Mat-boolean-">knnMatch</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  293. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  294. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  295. int&nbsp;k,
  296. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;mask,
  297. boolean&nbsp;compactResult)</code>
  298. <div class="block">Finds the k best matches for each descriptor from a query set.</div>
  299. </td>
  300. </tr>
  301. <tr id="i16" class="altColor">
  302. <td class="colFirst"><code>void</code></td>
  303. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#match-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfDMatch-">match</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  304. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  305. <a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&nbsp;matches)</code>
  306. <div class="block">Finds the best match for each descriptor from a query set.</div>
  307. </td>
  308. </tr>
  309. <tr id="i17" class="rowColor">
  310. <td class="colFirst"><code>void</code></td>
  311. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#match-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfDMatch-org.opencv.core.Mat-">match</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  312. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  313. <a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&nbsp;matches,
  314. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;mask)</code>
  315. <div class="block">Finds the best match for each descriptor from a query set.</div>
  316. </td>
  317. </tr>
  318. <tr id="i18" class="altColor">
  319. <td class="colFirst"><code>void</code></td>
  320. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#match-org.opencv.core.Mat-org.opencv.core.MatOfDMatch-">match</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  321. <a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&nbsp;matches)</code>&nbsp;</td>
  322. </tr>
  323. <tr id="i19" class="rowColor">
  324. <td class="colFirst"><code>void</code></td>
  325. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#match-org.opencv.core.Mat-org.opencv.core.MatOfDMatch-java.util.List-">match</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  326. <a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&nbsp;matches,
  327. java.util.List&lt;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&gt;&nbsp;masks)</code>&nbsp;</td>
  328. </tr>
  329. <tr id="i20" class="altColor">
  330. <td class="colFirst"><code>void</code></td>
  331. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#radiusMatch-org.opencv.core.Mat-java.util.List-float-">radiusMatch</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  332. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  333. float&nbsp;maxDistance)</code>&nbsp;</td>
  334. </tr>
  335. <tr id="i21" class="rowColor">
  336. <td class="colFirst"><code>void</code></td>
  337. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#radiusMatch-org.opencv.core.Mat-java.util.List-float-java.util.List-">radiusMatch</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  338. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  339. float&nbsp;maxDistance,
  340. java.util.List&lt;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&gt;&nbsp;masks)</code>&nbsp;</td>
  341. </tr>
  342. <tr id="i22" class="altColor">
  343. <td class="colFirst"><code>void</code></td>
  344. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#radiusMatch-org.opencv.core.Mat-java.util.List-float-java.util.List-boolean-">radiusMatch</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  345. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  346. float&nbsp;maxDistance,
  347. java.util.List&lt;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&gt;&nbsp;masks,
  348. boolean&nbsp;compactResult)</code>&nbsp;</td>
  349. </tr>
  350. <tr id="i23" class="rowColor">
  351. <td class="colFirst"><code>void</code></td>
  352. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#radiusMatch-org.opencv.core.Mat-org.opencv.core.Mat-java.util.List-float-">radiusMatch</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  353. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  354. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  355. float&nbsp;maxDistance)</code>
  356. <div class="block">For each query descriptor, finds the training descriptors not farther than the specified distance.</div>
  357. </td>
  358. </tr>
  359. <tr id="i24" class="altColor">
  360. <td class="colFirst"><code>void</code></td>
  361. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#radiusMatch-org.opencv.core.Mat-org.opencv.core.Mat-java.util.List-float-org.opencv.core.Mat-">radiusMatch</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  362. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  363. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  364. float&nbsp;maxDistance,
  365. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;mask)</code>
  366. <div class="block">For each query descriptor, finds the training descriptors not farther than the specified distance.</div>
  367. </td>
  368. </tr>
  369. <tr id="i25" class="rowColor">
  370. <td class="colFirst"><code>void</code></td>
  371. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#radiusMatch-org.opencv.core.Mat-org.opencv.core.Mat-java.util.List-float-org.opencv.core.Mat-boolean-">radiusMatch</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  372. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  373. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  374. float&nbsp;maxDistance,
  375. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;mask,
  376. boolean&nbsp;compactResult)</code>
  377. <div class="block">For each query descriptor, finds the training descriptors not farther than the specified distance.</div>
  378. </td>
  379. </tr>
  380. <tr id="i26" class="altColor">
  381. <td class="colFirst"><code>void</code></td>
  382. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#read-java.lang.String-">read</a></span>(java.lang.String&nbsp;fileName)</code>&nbsp;</td>
  383. </tr>
  384. <tr id="i27" class="rowColor">
  385. <td class="colFirst"><code>void</code></td>
  386. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#train--">train</a></span>()</code>
  387. <div class="block">Trains a descriptor matcher
  388. Trains a descriptor matcher (for example, the flann index).</div>
  389. </td>
  390. </tr>
  391. <tr id="i28" class="altColor">
  392. <td class="colFirst"><code>void</code></td>
  393. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/features2d/DescriptorMatcher.html#write-java.lang.String-">write</a></span>(java.lang.String&nbsp;fileName)</code>&nbsp;</td>
  394. </tr>
  395. </table>
  396. <ul class="blockList">
  397. <li class="blockList"><a name="methods.inherited.from.class.org.opencv.core.Algorithm">
  398. <!-- -->
  399. </a>
  400. <h3>Methods inherited from class&nbsp;org.opencv.core.<a href="../../../org/opencv/core/Algorithm.html" title="class in org.opencv.core">Algorithm</a></h3>
  401. <code><a href="../../../org/opencv/core/Algorithm.html#getDefaultName--">getDefaultName</a>, <a href="../../../org/opencv/core/Algorithm.html#getNativeObjAddr--">getNativeObjAddr</a>, <a href="../../../org/opencv/core/Algorithm.html#save-java.lang.String-">save</a></code></li>
  402. </ul>
  403. <ul class="blockList">
  404. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  405. <!-- -->
  406. </a>
  407. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  408. <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  409. </ul>
  410. </li>
  411. </ul>
  412. </li>
  413. </ul>
  414. </div>
  415. <div class="details">
  416. <ul class="blockList">
  417. <li class="blockList">
  418. <!-- ============ FIELD DETAIL =========== -->
  419. <ul class="blockList">
  420. <li class="blockList"><a name="field.detail">
  421. <!-- -->
  422. </a>
  423. <h3>Field Detail</h3>
  424. <a name="BRUTEFORCE">
  425. <!-- -->
  426. </a>
  427. <ul class="blockList">
  428. <li class="blockList">
  429. <h4>BRUTEFORCE</h4>
  430. <pre>public static final&nbsp;int BRUTEFORCE</pre>
  431. <dl>
  432. <dt><span class="seeLabel">See Also:</span></dt>
  433. <dd><a href="../../../constant-values.html#org.opencv.features2d.DescriptorMatcher.BRUTEFORCE">Constant Field Values</a></dd>
  434. </dl>
  435. </li>
  436. </ul>
  437. <a name="BRUTEFORCE_HAMMING">
  438. <!-- -->
  439. </a>
  440. <ul class="blockList">
  441. <li class="blockList">
  442. <h4>BRUTEFORCE_HAMMING</h4>
  443. <pre>public static final&nbsp;int BRUTEFORCE_HAMMING</pre>
  444. <dl>
  445. <dt><span class="seeLabel">See Also:</span></dt>
  446. <dd><a href="../../../constant-values.html#org.opencv.features2d.DescriptorMatcher.BRUTEFORCE_HAMMING">Constant Field Values</a></dd>
  447. </dl>
  448. </li>
  449. </ul>
  450. <a name="BRUTEFORCE_HAMMINGLUT">
  451. <!-- -->
  452. </a>
  453. <ul class="blockList">
  454. <li class="blockList">
  455. <h4>BRUTEFORCE_HAMMINGLUT</h4>
  456. <pre>public static final&nbsp;int BRUTEFORCE_HAMMINGLUT</pre>
  457. <dl>
  458. <dt><span class="seeLabel">See Also:</span></dt>
  459. <dd><a href="../../../constant-values.html#org.opencv.features2d.DescriptorMatcher.BRUTEFORCE_HAMMINGLUT">Constant Field Values</a></dd>
  460. </dl>
  461. </li>
  462. </ul>
  463. <a name="BRUTEFORCE_L1">
  464. <!-- -->
  465. </a>
  466. <ul class="blockList">
  467. <li class="blockList">
  468. <h4>BRUTEFORCE_L1</h4>
  469. <pre>public static final&nbsp;int BRUTEFORCE_L1</pre>
  470. <dl>
  471. <dt><span class="seeLabel">See Also:</span></dt>
  472. <dd><a href="../../../constant-values.html#org.opencv.features2d.DescriptorMatcher.BRUTEFORCE_L1">Constant Field Values</a></dd>
  473. </dl>
  474. </li>
  475. </ul>
  476. <a name="BRUTEFORCE_SL2">
  477. <!-- -->
  478. </a>
  479. <ul class="blockList">
  480. <li class="blockList">
  481. <h4>BRUTEFORCE_SL2</h4>
  482. <pre>public static final&nbsp;int BRUTEFORCE_SL2</pre>
  483. <dl>
  484. <dt><span class="seeLabel">See Also:</span></dt>
  485. <dd><a href="../../../constant-values.html#org.opencv.features2d.DescriptorMatcher.BRUTEFORCE_SL2">Constant Field Values</a></dd>
  486. </dl>
  487. </li>
  488. </ul>
  489. <a name="FLANNBASED">
  490. <!-- -->
  491. </a>
  492. <ul class="blockListLast">
  493. <li class="blockList">
  494. <h4>FLANNBASED</h4>
  495. <pre>public static final&nbsp;int FLANNBASED</pre>
  496. <dl>
  497. <dt><span class="seeLabel">See Also:</span></dt>
  498. <dd><a href="../../../constant-values.html#org.opencv.features2d.DescriptorMatcher.FLANNBASED">Constant Field Values</a></dd>
  499. </dl>
  500. </li>
  501. </ul>
  502. </li>
  503. </ul>
  504. <!-- ============ METHOD DETAIL ========== -->
  505. <ul class="blockList">
  506. <li class="blockList"><a name="method.detail">
  507. <!-- -->
  508. </a>
  509. <h3>Method Detail</h3>
  510. <a name="Z:Z__fromPtr__-long-">
  511. <!-- -->
  512. </a>
  513. <ul class="blockList">
  514. <li class="blockList">
  515. <h4>__fromPtr__</h4>
  516. <pre>public static&nbsp;<a href="../../../org/opencv/features2d/DescriptorMatcher.html" title="class in org.opencv.features2d">DescriptorMatcher</a>&nbsp;__fromPtr__(long&nbsp;addr)</pre>
  517. </li>
  518. </ul>
  519. <a name="add-java.util.List-">
  520. <!-- -->
  521. </a>
  522. <ul class="blockList">
  523. <li class="blockList">
  524. <h4>add</h4>
  525. <pre>public&nbsp;void&nbsp;add(java.util.List&lt;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&gt;&nbsp;descriptors)</pre>
  526. <div class="block">Adds descriptors to train a CPU(trainDescCollectionis) or GPU(utrainDescCollectionis) descriptor
  527. collection.
  528. If the collection is not empty, the new descriptors are added to existing train descriptors.</div>
  529. <dl>
  530. <dt><span class="paramLabel">Parameters:</span></dt>
  531. <dd><code>descriptors</code> - Descriptors to add. Each descriptors[i] is a set of descriptors from the same
  532. train image.</dd>
  533. </dl>
  534. </li>
  535. </ul>
  536. <a name="clear--">
  537. <!-- -->
  538. </a>
  539. <ul class="blockList">
  540. <li class="blockList">
  541. <h4>clear</h4>
  542. <pre>public&nbsp;void&nbsp;clear()</pre>
  543. <div class="block">Clears the train descriptor collections.</div>
  544. <dl>
  545. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  546. <dd><code><a href="../../../org/opencv/core/Algorithm.html#clear--">clear</a></code>&nbsp;in class&nbsp;<code><a href="../../../org/opencv/core/Algorithm.html" title="class in org.opencv.core">Algorithm</a></code></dd>
  547. </dl>
  548. </li>
  549. </ul>
  550. <a name="clone--">
  551. <!-- -->
  552. </a>
  553. <ul class="blockList">
  554. <li class="blockList">
  555. <h4>clone</h4>
  556. <pre>public&nbsp;<a href="../../../org/opencv/features2d/DescriptorMatcher.html" title="class in org.opencv.features2d">DescriptorMatcher</a>&nbsp;clone()</pre>
  557. <div class="block">Clones the matcher.
  558. that is, copies both parameters and train data. If emptyTrainData is true, the method creates an
  559. object copy with the current parameters but with empty train data.</div>
  560. <dl>
  561. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  562. <dd><code>clone</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
  563. <dt><span class="returnLabel">Returns:</span></dt>
  564. <dd>automatically generated</dd>
  565. </dl>
  566. </li>
  567. </ul>
  568. <a name="clone-boolean-">
  569. <!-- -->
  570. </a>
  571. <ul class="blockList">
  572. <li class="blockList">
  573. <h4>clone</h4>
  574. <pre>public&nbsp;<a href="../../../org/opencv/features2d/DescriptorMatcher.html" title="class in org.opencv.features2d">DescriptorMatcher</a>&nbsp;clone(boolean&nbsp;emptyTrainData)</pre>
  575. <div class="block">Clones the matcher.</div>
  576. <dl>
  577. <dt><span class="paramLabel">Parameters:</span></dt>
  578. <dd><code>emptyTrainData</code> - If emptyTrainData is false, the method creates a deep copy of the object,
  579. that is, copies both parameters and train data. If emptyTrainData is true, the method creates an
  580. object copy with the current parameters but with empty train data.</dd>
  581. <dt><span class="returnLabel">Returns:</span></dt>
  582. <dd>automatically generated</dd>
  583. </dl>
  584. </li>
  585. </ul>
  586. <a name="create-int-">
  587. <!-- -->
  588. </a>
  589. <ul class="blockList">
  590. <li class="blockList">
  591. <h4>create</h4>
  592. <pre>public static&nbsp;<a href="../../../org/opencv/features2d/DescriptorMatcher.html" title="class in org.opencv.features2d">DescriptorMatcher</a>&nbsp;create(int&nbsp;matcherType)</pre>
  593. </li>
  594. </ul>
  595. <a name="create-java.lang.String-">
  596. <!-- -->
  597. </a>
  598. <ul class="blockList">
  599. <li class="blockList">
  600. <h4>create</h4>
  601. <pre>public static&nbsp;<a href="../../../org/opencv/features2d/DescriptorMatcher.html" title="class in org.opencv.features2d">DescriptorMatcher</a>&nbsp;create(java.lang.String&nbsp;descriptorMatcherType)</pre>
  602. <div class="block">Creates a descriptor matcher of a given type with the default parameters (using default
  603. constructor).</div>
  604. <dl>
  605. <dt><span class="paramLabel">Parameters:</span></dt>
  606. <dd><code>descriptorMatcherType</code> - Descriptor matcher type. Now the following matcher types are
  607. supported:
  608. <ul>
  609. <li>
  610. <code>BruteForce</code> (it uses L2 )
  611. </li>
  612. <li>
  613. <code>BruteForce-L1</code>
  614. </li>
  615. <li>
  616. <code>BruteForce-Hamming</code>
  617. </li>
  618. <li>
  619. <code>BruteForce-Hamming(2)</code>
  620. </li>
  621. <li>
  622. <code>FlannBased</code>
  623. </li>
  624. </ul></dd>
  625. <dt><span class="returnLabel">Returns:</span></dt>
  626. <dd>automatically generated</dd>
  627. </dl>
  628. </li>
  629. </ul>
  630. <a name="empty--">
  631. <!-- -->
  632. </a>
  633. <ul class="blockList">
  634. <li class="blockList">
  635. <h4>empty</h4>
  636. <pre>public&nbsp;boolean&nbsp;empty()</pre>
  637. <div class="block">Returns true if there are no train descriptors in the both collections.</div>
  638. <dl>
  639. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  640. <dd><code><a href="../../../org/opencv/core/Algorithm.html#empty--">empty</a></code>&nbsp;in class&nbsp;<code><a href="../../../org/opencv/core/Algorithm.html" title="class in org.opencv.core">Algorithm</a></code></dd>
  641. <dt><span class="returnLabel">Returns:</span></dt>
  642. <dd>automatically generated</dd>
  643. </dl>
  644. </li>
  645. </ul>
  646. <a name="getTrainDescriptors--">
  647. <!-- -->
  648. </a>
  649. <ul class="blockList">
  650. <li class="blockList">
  651. <h4>getTrainDescriptors</h4>
  652. <pre>public&nbsp;java.util.List&lt;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&gt;&nbsp;getTrainDescriptors()</pre>
  653. <div class="block">Returns a constant link to the train descriptor collection trainDescCollection .</div>
  654. <dl>
  655. <dt><span class="returnLabel">Returns:</span></dt>
  656. <dd>automatically generated</dd>
  657. </dl>
  658. </li>
  659. </ul>
  660. <a name="isMaskSupported--">
  661. <!-- -->
  662. </a>
  663. <ul class="blockList">
  664. <li class="blockList">
  665. <h4>isMaskSupported</h4>
  666. <pre>public&nbsp;boolean&nbsp;isMaskSupported()</pre>
  667. <div class="block">Returns true if the descriptor matcher supports masking permissible matches.</div>
  668. <dl>
  669. <dt><span class="returnLabel">Returns:</span></dt>
  670. <dd>automatically generated</dd>
  671. </dl>
  672. </li>
  673. </ul>
  674. <a name="knnMatch-org.opencv.core.Mat-java.util.List-int-">
  675. <!-- -->
  676. </a>
  677. <ul class="blockList">
  678. <li class="blockList">
  679. <h4>knnMatch</h4>
  680. <pre>public&nbsp;void&nbsp;knnMatch(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  681. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  682. int&nbsp;k)</pre>
  683. <dl>
  684. <dt><span class="paramLabel">Parameters:</span></dt>
  685. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  686. <dd><code>matches</code> - Matches. Each matches[i] is k or less matches for the same query descriptor.</dd>
  687. <dd><code>k</code> - Count of best matches found per each query descriptor or less if a query descriptor has
  688. less than k possible matches in total.
  689. descriptors and stored train descriptors from the i-th image trainDescCollection[i].
  690. false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
  691. the matches vector does not contain matches for fully masked-out query descriptors.</dd>
  692. </dl>
  693. </li>
  694. </ul>
  695. <a name="knnMatch-org.opencv.core.Mat-java.util.List-int-java.util.List-">
  696. <!-- -->
  697. </a>
  698. <ul class="blockList">
  699. <li class="blockList">
  700. <h4>knnMatch</h4>
  701. <pre>public&nbsp;void&nbsp;knnMatch(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  702. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  703. int&nbsp;k,
  704. java.util.List&lt;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&gt;&nbsp;masks)</pre>
  705. <dl>
  706. <dt><span class="paramLabel">Parameters:</span></dt>
  707. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  708. <dd><code>matches</code> - Matches. Each matches[i] is k or less matches for the same query descriptor.</dd>
  709. <dd><code>k</code> - Count of best matches found per each query descriptor or less if a query descriptor has
  710. less than k possible matches in total.</dd>
  711. <dd><code>masks</code> - Set of masks. Each masks[i] specifies permissible matches between the input query
  712. descriptors and stored train descriptors from the i-th image trainDescCollection[i].
  713. false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
  714. the matches vector does not contain matches for fully masked-out query descriptors.</dd>
  715. </dl>
  716. </li>
  717. </ul>
  718. <a name="knnMatch-org.opencv.core.Mat-java.util.List-int-java.util.List-boolean-">
  719. <!-- -->
  720. </a>
  721. <ul class="blockList">
  722. <li class="blockList">
  723. <h4>knnMatch</h4>
  724. <pre>public&nbsp;void&nbsp;knnMatch(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  725. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  726. int&nbsp;k,
  727. java.util.List&lt;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&gt;&nbsp;masks,
  728. boolean&nbsp;compactResult)</pre>
  729. <dl>
  730. <dt><span class="paramLabel">Parameters:</span></dt>
  731. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  732. <dd><code>matches</code> - Matches. Each matches[i] is k or less matches for the same query descriptor.</dd>
  733. <dd><code>k</code> - Count of best matches found per each query descriptor or less if a query descriptor has
  734. less than k possible matches in total.</dd>
  735. <dd><code>masks</code> - Set of masks. Each masks[i] specifies permissible matches between the input query
  736. descriptors and stored train descriptors from the i-th image trainDescCollection[i].</dd>
  737. <dd><code>compactResult</code> - Parameter used when the mask (or masks) is not empty. If compactResult is
  738. false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
  739. the matches vector does not contain matches for fully masked-out query descriptors.</dd>
  740. </dl>
  741. </li>
  742. </ul>
  743. <a name="knnMatch-org.opencv.core.Mat-org.opencv.core.Mat-java.util.List-int-">
  744. <!-- -->
  745. </a>
  746. <ul class="blockList">
  747. <li class="blockList">
  748. <h4>knnMatch</h4>
  749. <pre>public&nbsp;void&nbsp;knnMatch(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  750. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  751. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  752. int&nbsp;k)</pre>
  753. <div class="block">Finds the k best matches for each descriptor from a query set.</div>
  754. <dl>
  755. <dt><span class="paramLabel">Parameters:</span></dt>
  756. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  757. <dd><code>trainDescriptors</code> - Train set of descriptors. This set is not added to the train descriptors
  758. collection stored in the class object.
  759. descriptors.</dd>
  760. <dd><code>matches</code> - Matches. Each matches[i] is k or less matches for the same query descriptor.</dd>
  761. <dd><code>k</code> - Count of best matches found per each query descriptor or less if a query descriptor has
  762. less than k possible matches in total.
  763. false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
  764. the matches vector does not contain matches for fully masked-out query descriptors.
  765. These extended variants of DescriptorMatcher::match methods find several best matches for each query
  766. descriptor. The matches are returned in the distance increasing order. See DescriptorMatcher::match
  767. for the details about query and train descriptors.</dd>
  768. </dl>
  769. </li>
  770. </ul>
  771. <a name="knnMatch-org.opencv.core.Mat-org.opencv.core.Mat-java.util.List-int-org.opencv.core.Mat-">
  772. <!-- -->
  773. </a>
  774. <ul class="blockList">
  775. <li class="blockList">
  776. <h4>knnMatch</h4>
  777. <pre>public&nbsp;void&nbsp;knnMatch(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  778. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  779. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  780. int&nbsp;k,
  781. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;mask)</pre>
  782. <div class="block">Finds the k best matches for each descriptor from a query set.</div>
  783. <dl>
  784. <dt><span class="paramLabel">Parameters:</span></dt>
  785. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  786. <dd><code>trainDescriptors</code> - Train set of descriptors. This set is not added to the train descriptors
  787. collection stored in the class object.</dd>
  788. <dd><code>mask</code> - Mask specifying permissible matches between an input query and train matrices of
  789. descriptors.</dd>
  790. <dd><code>matches</code> - Matches. Each matches[i] is k or less matches for the same query descriptor.</dd>
  791. <dd><code>k</code> - Count of best matches found per each query descriptor or less if a query descriptor has
  792. less than k possible matches in total.
  793. false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
  794. the matches vector does not contain matches for fully masked-out query descriptors.
  795. These extended variants of DescriptorMatcher::match methods find several best matches for each query
  796. descriptor. The matches are returned in the distance increasing order. See DescriptorMatcher::match
  797. for the details about query and train descriptors.</dd>
  798. </dl>
  799. </li>
  800. </ul>
  801. <a name="knnMatch-org.opencv.core.Mat-org.opencv.core.Mat-java.util.List-int-org.opencv.core.Mat-boolean-">
  802. <!-- -->
  803. </a>
  804. <ul class="blockList">
  805. <li class="blockList">
  806. <h4>knnMatch</h4>
  807. <pre>public&nbsp;void&nbsp;knnMatch(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  808. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  809. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  810. int&nbsp;k,
  811. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;mask,
  812. boolean&nbsp;compactResult)</pre>
  813. <div class="block">Finds the k best matches for each descriptor from a query set.</div>
  814. <dl>
  815. <dt><span class="paramLabel">Parameters:</span></dt>
  816. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  817. <dd><code>trainDescriptors</code> - Train set of descriptors. This set is not added to the train descriptors
  818. collection stored in the class object.</dd>
  819. <dd><code>mask</code> - Mask specifying permissible matches between an input query and train matrices of
  820. descriptors.</dd>
  821. <dd><code>matches</code> - Matches. Each matches[i] is k or less matches for the same query descriptor.</dd>
  822. <dd><code>k</code> - Count of best matches found per each query descriptor or less if a query descriptor has
  823. less than k possible matches in total.</dd>
  824. <dd><code>compactResult</code> - Parameter used when the mask (or masks) is not empty. If compactResult is
  825. false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
  826. the matches vector does not contain matches for fully masked-out query descriptors.
  827. These extended variants of DescriptorMatcher::match methods find several best matches for each query
  828. descriptor. The matches are returned in the distance increasing order. See DescriptorMatcher::match
  829. for the details about query and train descriptors.</dd>
  830. </dl>
  831. </li>
  832. </ul>
  833. <a name="match-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfDMatch-">
  834. <!-- -->
  835. </a>
  836. <ul class="blockList">
  837. <li class="blockList">
  838. <h4>match</h4>
  839. <pre>public&nbsp;void&nbsp;match(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  840. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  841. <a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&nbsp;matches)</pre>
  842. <div class="block">Finds the best match for each descriptor from a query set.</div>
  843. <dl>
  844. <dt><span class="paramLabel">Parameters:</span></dt>
  845. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  846. <dd><code>trainDescriptors</code> - Train set of descriptors. This set is not added to the train descriptors
  847. collection stored in the class object.</dd>
  848. <dd><code>matches</code> - Matches. If a query descriptor is masked out in mask , no match is added for this
  849. descriptor. So, matches size may be smaller than the query descriptors count.
  850. descriptors.
  851. In the first variant of this method, the train descriptors are passed as an input argument. In the
  852. second variant of the method, train descriptors collection that was set by DescriptorMatcher::add is
  853. used. Optional mask (or masks) can be passed to specify which query and training descriptors can be
  854. matched. Namely, queryDescriptors[i] can be matched with trainDescriptors[j] only if
  855. mask.at&lt;uchar&gt;(i,j) is non-zero.</dd>
  856. </dl>
  857. </li>
  858. </ul>
  859. <a name="match-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfDMatch-org.opencv.core.Mat-">
  860. <!-- -->
  861. </a>
  862. <ul class="blockList">
  863. <li class="blockList">
  864. <h4>match</h4>
  865. <pre>public&nbsp;void&nbsp;match(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  866. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  867. <a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&nbsp;matches,
  868. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;mask)</pre>
  869. <div class="block">Finds the best match for each descriptor from a query set.</div>
  870. <dl>
  871. <dt><span class="paramLabel">Parameters:</span></dt>
  872. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  873. <dd><code>trainDescriptors</code> - Train set of descriptors. This set is not added to the train descriptors
  874. collection stored in the class object.</dd>
  875. <dd><code>matches</code> - Matches. If a query descriptor is masked out in mask , no match is added for this
  876. descriptor. So, matches size may be smaller than the query descriptors count.</dd>
  877. <dd><code>mask</code> - Mask specifying permissible matches between an input query and train matrices of
  878. descriptors.
  879. In the first variant of this method, the train descriptors are passed as an input argument. In the
  880. second variant of the method, train descriptors collection that was set by DescriptorMatcher::add is
  881. used. Optional mask (or masks) can be passed to specify which query and training descriptors can be
  882. matched. Namely, queryDescriptors[i] can be matched with trainDescriptors[j] only if
  883. mask.at&lt;uchar&gt;(i,j) is non-zero.</dd>
  884. </dl>
  885. </li>
  886. </ul>
  887. <a name="match-org.opencv.core.Mat-org.opencv.core.MatOfDMatch-">
  888. <!-- -->
  889. </a>
  890. <ul class="blockList">
  891. <li class="blockList">
  892. <h4>match</h4>
  893. <pre>public&nbsp;void&nbsp;match(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  894. <a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&nbsp;matches)</pre>
  895. <dl>
  896. <dt><span class="paramLabel">Parameters:</span></dt>
  897. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  898. <dd><code>matches</code> - Matches. If a query descriptor is masked out in mask , no match is added for this
  899. descriptor. So, matches size may be smaller than the query descriptors count.
  900. descriptors and stored train descriptors from the i-th image trainDescCollection[i].</dd>
  901. </dl>
  902. </li>
  903. </ul>
  904. <a name="match-org.opencv.core.Mat-org.opencv.core.MatOfDMatch-java.util.List-">
  905. <!-- -->
  906. </a>
  907. <ul class="blockList">
  908. <li class="blockList">
  909. <h4>match</h4>
  910. <pre>public&nbsp;void&nbsp;match(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  911. <a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&nbsp;matches,
  912. java.util.List&lt;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&gt;&nbsp;masks)</pre>
  913. <dl>
  914. <dt><span class="paramLabel">Parameters:</span></dt>
  915. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  916. <dd><code>matches</code> - Matches. If a query descriptor is masked out in mask , no match is added for this
  917. descriptor. So, matches size may be smaller than the query descriptors count.</dd>
  918. <dd><code>masks</code> - Set of masks. Each masks[i] specifies permissible matches between the input query
  919. descriptors and stored train descriptors from the i-th image trainDescCollection[i].</dd>
  920. </dl>
  921. </li>
  922. </ul>
  923. <a name="radiusMatch-org.opencv.core.Mat-java.util.List-float-">
  924. <!-- -->
  925. </a>
  926. <ul class="blockList">
  927. <li class="blockList">
  928. <h4>radiusMatch</h4>
  929. <pre>public&nbsp;void&nbsp;radiusMatch(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  930. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  931. float&nbsp;maxDistance)</pre>
  932. <dl>
  933. <dt><span class="paramLabel">Parameters:</span></dt>
  934. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  935. <dd><code>matches</code> - Found matches.</dd>
  936. <dd><code>maxDistance</code> - Threshold for the distance between matched descriptors. Distance means here
  937. metric distance (e.g. Hamming distance), not the distance between coordinates (which is measured
  938. in Pixels)!
  939. descriptors and stored train descriptors from the i-th image trainDescCollection[i].
  940. false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
  941. the matches vector does not contain matches for fully masked-out query descriptors.</dd>
  942. </dl>
  943. </li>
  944. </ul>
  945. <a name="radiusMatch-org.opencv.core.Mat-java.util.List-float-java.util.List-">
  946. <!-- -->
  947. </a>
  948. <ul class="blockList">
  949. <li class="blockList">
  950. <h4>radiusMatch</h4>
  951. <pre>public&nbsp;void&nbsp;radiusMatch(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  952. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  953. float&nbsp;maxDistance,
  954. java.util.List&lt;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&gt;&nbsp;masks)</pre>
  955. <dl>
  956. <dt><span class="paramLabel">Parameters:</span></dt>
  957. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  958. <dd><code>matches</code> - Found matches.</dd>
  959. <dd><code>maxDistance</code> - Threshold for the distance between matched descriptors. Distance means here
  960. metric distance (e.g. Hamming distance), not the distance between coordinates (which is measured
  961. in Pixels)!</dd>
  962. <dd><code>masks</code> - Set of masks. Each masks[i] specifies permissible matches between the input query
  963. descriptors and stored train descriptors from the i-th image trainDescCollection[i].
  964. false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
  965. the matches vector does not contain matches for fully masked-out query descriptors.</dd>
  966. </dl>
  967. </li>
  968. </ul>
  969. <a name="radiusMatch-org.opencv.core.Mat-java.util.List-float-java.util.List-boolean-">
  970. <!-- -->
  971. </a>
  972. <ul class="blockList">
  973. <li class="blockList">
  974. <h4>radiusMatch</h4>
  975. <pre>public&nbsp;void&nbsp;radiusMatch(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  976. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  977. float&nbsp;maxDistance,
  978. java.util.List&lt;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&gt;&nbsp;masks,
  979. boolean&nbsp;compactResult)</pre>
  980. <dl>
  981. <dt><span class="paramLabel">Parameters:</span></dt>
  982. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  983. <dd><code>matches</code> - Found matches.</dd>
  984. <dd><code>maxDistance</code> - Threshold for the distance between matched descriptors. Distance means here
  985. metric distance (e.g. Hamming distance), not the distance between coordinates (which is measured
  986. in Pixels)!</dd>
  987. <dd><code>masks</code> - Set of masks. Each masks[i] specifies permissible matches between the input query
  988. descriptors and stored train descriptors from the i-th image trainDescCollection[i].</dd>
  989. <dd><code>compactResult</code> - Parameter used when the mask (or masks) is not empty. If compactResult is
  990. false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
  991. the matches vector does not contain matches for fully masked-out query descriptors.</dd>
  992. </dl>
  993. </li>
  994. </ul>
  995. <a name="radiusMatch-org.opencv.core.Mat-org.opencv.core.Mat-java.util.List-float-">
  996. <!-- -->
  997. </a>
  998. <ul class="blockList">
  999. <li class="blockList">
  1000. <h4>radiusMatch</h4>
  1001. <pre>public&nbsp;void&nbsp;radiusMatch(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  1002. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  1003. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  1004. float&nbsp;maxDistance)</pre>
  1005. <div class="block">For each query descriptor, finds the training descriptors not farther than the specified distance.</div>
  1006. <dl>
  1007. <dt><span class="paramLabel">Parameters:</span></dt>
  1008. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  1009. <dd><code>trainDescriptors</code> - Train set of descriptors. This set is not added to the train descriptors
  1010. collection stored in the class object.</dd>
  1011. <dd><code>matches</code> - Found matches.
  1012. false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
  1013. the matches vector does not contain matches for fully masked-out query descriptors.</dd>
  1014. <dd><code>maxDistance</code> - Threshold for the distance between matched descriptors. Distance means here
  1015. metric distance (e.g. Hamming distance), not the distance between coordinates (which is measured
  1016. in Pixels)!
  1017. descriptors.
  1018. For each query descriptor, the methods find such training descriptors that the distance between the
  1019. query descriptor and the training descriptor is equal or smaller than maxDistance. Found matches are
  1020. returned in the distance increasing order.</dd>
  1021. </dl>
  1022. </li>
  1023. </ul>
  1024. <a name="radiusMatch-org.opencv.core.Mat-org.opencv.core.Mat-java.util.List-float-org.opencv.core.Mat-">
  1025. <!-- -->
  1026. </a>
  1027. <ul class="blockList">
  1028. <li class="blockList">
  1029. <h4>radiusMatch</h4>
  1030. <pre>public&nbsp;void&nbsp;radiusMatch(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  1031. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  1032. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  1033. float&nbsp;maxDistance,
  1034. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;mask)</pre>
  1035. <div class="block">For each query descriptor, finds the training descriptors not farther than the specified distance.</div>
  1036. <dl>
  1037. <dt><span class="paramLabel">Parameters:</span></dt>
  1038. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  1039. <dd><code>trainDescriptors</code> - Train set of descriptors. This set is not added to the train descriptors
  1040. collection stored in the class object.</dd>
  1041. <dd><code>matches</code> - Found matches.
  1042. false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
  1043. the matches vector does not contain matches for fully masked-out query descriptors.</dd>
  1044. <dd><code>maxDistance</code> - Threshold for the distance between matched descriptors. Distance means here
  1045. metric distance (e.g. Hamming distance), not the distance between coordinates (which is measured
  1046. in Pixels)!</dd>
  1047. <dd><code>mask</code> - Mask specifying permissible matches between an input query and train matrices of
  1048. descriptors.
  1049. For each query descriptor, the methods find such training descriptors that the distance between the
  1050. query descriptor and the training descriptor is equal or smaller than maxDistance. Found matches are
  1051. returned in the distance increasing order.</dd>
  1052. </dl>
  1053. </li>
  1054. </ul>
  1055. <a name="radiusMatch-org.opencv.core.Mat-org.opencv.core.Mat-java.util.List-float-org.opencv.core.Mat-boolean-">
  1056. <!-- -->
  1057. </a>
  1058. <ul class="blockList">
  1059. <li class="blockList">
  1060. <h4>radiusMatch</h4>
  1061. <pre>public&nbsp;void&nbsp;radiusMatch(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;queryDescriptors,
  1062. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;trainDescriptors,
  1063. java.util.List&lt;<a href="../../../org/opencv/core/MatOfDMatch.html" title="class in org.opencv.core">MatOfDMatch</a>&gt;&nbsp;matches,
  1064. float&nbsp;maxDistance,
  1065. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;mask,
  1066. boolean&nbsp;compactResult)</pre>
  1067. <div class="block">For each query descriptor, finds the training descriptors not farther than the specified distance.</div>
  1068. <dl>
  1069. <dt><span class="paramLabel">Parameters:</span></dt>
  1070. <dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
  1071. <dd><code>trainDescriptors</code> - Train set of descriptors. This set is not added to the train descriptors
  1072. collection stored in the class object.</dd>
  1073. <dd><code>matches</code> - Found matches.</dd>
  1074. <dd><code>compactResult</code> - Parameter used when the mask (or masks) is not empty. If compactResult is
  1075. false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
  1076. the matches vector does not contain matches for fully masked-out query descriptors.</dd>
  1077. <dd><code>maxDistance</code> - Threshold for the distance between matched descriptors. Distance means here
  1078. metric distance (e.g. Hamming distance), not the distance between coordinates (which is measured
  1079. in Pixels)!</dd>
  1080. <dd><code>mask</code> - Mask specifying permissible matches between an input query and train matrices of
  1081. descriptors.
  1082. For each query descriptor, the methods find such training descriptors that the distance between the
  1083. query descriptor and the training descriptor is equal or smaller than maxDistance. Found matches are
  1084. returned in the distance increasing order.</dd>
  1085. </dl>
  1086. </li>
  1087. </ul>
  1088. <a name="read-java.lang.String-">
  1089. <!-- -->
  1090. </a>
  1091. <ul class="blockList">
  1092. <li class="blockList">
  1093. <h4>read</h4>
  1094. <pre>public&nbsp;void&nbsp;read(java.lang.String&nbsp;fileName)</pre>
  1095. </li>
  1096. </ul>
  1097. <a name="train--">
  1098. <!-- -->
  1099. </a>
  1100. <ul class="blockList">
  1101. <li class="blockList">
  1102. <h4>train</h4>
  1103. <pre>public&nbsp;void&nbsp;train()</pre>
  1104. <div class="block">Trains a descriptor matcher
  1105. Trains a descriptor matcher (for example, the flann index). In all methods to match, the method
  1106. train() is run every time before matching. Some descriptor matchers (for example, BruteForceMatcher)
  1107. have an empty implementation of this method. Other matchers really train their inner structures (for
  1108. example, FlannBasedMatcher trains flann::Index ).</div>
  1109. </li>
  1110. </ul>
  1111. <a name="write-java.lang.String-">
  1112. <!-- -->
  1113. </a>
  1114. <ul class="blockListLast">
  1115. <li class="blockList">
  1116. <h4>write</h4>
  1117. <pre>public&nbsp;void&nbsp;write(java.lang.String&nbsp;fileName)</pre>
  1118. </li>
  1119. </ul>
  1120. </li>
  1121. </ul>
  1122. </li>
  1123. </ul>
  1124. </div>
  1125. </div>
  1126. <!-- ========= END OF CLASS DATA ========= -->
  1127. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  1128. <div class="bottomNav"><a name="navbar.bottom">
  1129. <!-- -->
  1130. </a>
  1131. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  1132. <a name="navbar.bottom.firstrow">
  1133. <!-- -->
  1134. </a>
  1135. <ul class="navList" title="Navigation">
  1136. <li><a href="../../../overview-summary.html">Overview</a></li>
  1137. <li><a href="package-summary.html">Package</a></li>
  1138. <li class="navBarCell1Rev">Class</li>
  1139. <li><a href="package-tree.html">Tree</a></li>
  1140. <li><a href="../../../index-all.html">Index</a></li>
  1141. <li><a href="../../../help-doc.html">Help</a></li>
  1142. </ul>
  1143. <div class="aboutLanguage">
  1144. <script>
  1145. var url = window.location.href;
  1146. var pos = url.lastIndexOf('/javadoc/');
  1147. url = pos >= 0 ? (url.substring(0, pos) + '/javadoc/mymath.js') : (window.location.origin + '/mymath.js');
  1148. var script = document.createElement('script');
  1149. script.src = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML,' + url;
  1150. document.getElementsByTagName('head')[0].appendChild(script);
  1151. </script>
  1152. </div>
  1153. </div>
  1154. <div class="subNav">
  1155. <ul class="navList">
  1156. <li><a href="../../../org/opencv/features2d/BRISK.html" title="class in org.opencv.features2d"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  1157. <li><a href="../../../org/opencv/features2d/FastFeatureDetector.html" title="class in org.opencv.features2d"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  1158. </ul>
  1159. <ul class="navList">
  1160. <li><a href="../../../index.html?org/opencv/features2d/DescriptorMatcher.html" target="_top">Frames</a></li>
  1161. <li><a href="DescriptorMatcher.html" target="_top">No&nbsp;Frames</a></li>
  1162. </ul>
  1163. <ul class="navList" id="allclasses_navbar_bottom">
  1164. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  1165. </ul>
  1166. <div>
  1167. <script type="text/javascript"><!--
  1168. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  1169. if(window==top) {
  1170. allClassesLink.style.display = "block";
  1171. }
  1172. else {
  1173. allClassesLink.style.display = "none";
  1174. }
  1175. //-->
  1176. </script>
  1177. </div>
  1178. <div>
  1179. <ul class="subNavList">
  1180. <li>Summary:&nbsp;</li>
  1181. <li>Nested&nbsp;|&nbsp;</li>
  1182. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  1183. <li>Constr&nbsp;|&nbsp;</li>
  1184. <li><a href="#method.summary">Method</a></li>
  1185. </ul>
  1186. <ul class="subNavList">
  1187. <li>Detail:&nbsp;</li>
  1188. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  1189. <li>Constr&nbsp;|&nbsp;</li>
  1190. <li><a href="#method.detail">Method</a></li>
  1191. </ul>
  1192. </div>
  1193. <a name="skip.navbar.bottom">
  1194. <!-- -->
  1195. </a></div>
  1196. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  1197. <p class="legalCopy"><small>Generated on 2023-06-28 12:47:21 / OpenCV 4.8.0</small></p>
  1198. </body>
  1199. </html>