TermCriteria.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  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_65) on Fri Dec 18 18:19:51 MSK 2015 -->
  6. <title>TermCriteria</title>
  7. <meta name="date" content="2015-12-18">
  8. <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="TermCriteria";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10};
  22. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../../../overview-summary.html">Overview</a></li>
  41. <li><a href="package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="package-tree.html">Tree</a></li>
  44. <li><a href="../../../index-all.html">Index</a></li>
  45. <li><a href="../../../help-doc.html">Help</a></li>
  46. </ul>
  47. <div class="aboutLanguage">OpenCV 3.1.0</div>
  48. </div>
  49. <div class="subNav">
  50. <ul class="navList">
  51. <li><a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  52. <li>Next&nbsp;Class</li>
  53. </ul>
  54. <ul class="navList">
  55. <li><a href="../../../index.html?org/opencv/core/TermCriteria.html" target="_top">Frames</a></li>
  56. <li><a href="TermCriteria.html" target="_top">No&nbsp;Frames</a></li>
  57. </ul>
  58. <ul class="navList" id="allclasses_navbar_top">
  59. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  60. </ul>
  61. <div>
  62. <script type="text/javascript"><!--
  63. allClassesLink = document.getElementById("allclasses_navbar_top");
  64. if(window==top) {
  65. allClassesLink.style.display = "block";
  66. }
  67. else {
  68. allClassesLink.style.display = "none";
  69. }
  70. //-->
  71. </script>
  72. </div>
  73. <div>
  74. <ul class="subNavList">
  75. <li>Summary:&nbsp;</li>
  76. <li>Nested&nbsp;|&nbsp;</li>
  77. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  78. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  79. <li><a href="#method.summary">Method</a></li>
  80. </ul>
  81. <ul class="subNavList">
  82. <li>Detail:&nbsp;</li>
  83. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  84. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  85. <li><a href="#method.detail">Method</a></li>
  86. </ul>
  87. </div>
  88. <a name="skip.navbar.top">
  89. <!-- -->
  90. </a></div>
  91. <!-- ========= END OF TOP NAVBAR ========= -->
  92. <!-- ======== START OF CLASS DATA ======== -->
  93. <div class="header">
  94. <div class="subTitle">org.opencv.core</div>
  95. <h2 title="Class TermCriteria" class="title">Class TermCriteria</h2>
  96. </div>
  97. <div class="contentContainer">
  98. <ul class="inheritance">
  99. <li>java.lang.Object</li>
  100. <li>
  101. <ul class="inheritance">
  102. <li>org.opencv.core.TermCriteria</li>
  103. </ul>
  104. </li>
  105. </ul>
  106. <div class="description">
  107. <ul class="blockList">
  108. <li class="blockList">
  109. <hr>
  110. <br>
  111. <pre>public class <span class="typeNameLabel">TermCriteria</span>
  112. extends java.lang.Object</pre>
  113. </li>
  114. </ul>
  115. </div>
  116. <div class="summary">
  117. <ul class="blockList">
  118. <li class="blockList">
  119. <!-- =========== FIELD SUMMARY =========== -->
  120. <ul class="blockList">
  121. <li class="blockList"><a name="field.summary">
  122. <!-- -->
  123. </a>
  124. <h3>Field Summary</h3>
  125. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  126. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  127. <tr>
  128. <th class="colFirst" scope="col">Modifier and Type</th>
  129. <th class="colLast" scope="col">Field and Description</th>
  130. </tr>
  131. <tr class="altColor">
  132. <td class="colFirst"><code>static int</code></td>
  133. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/core/TermCriteria.html#COUNT">COUNT</a></span></code>
  134. <div class="block">The maximum number of iterations or elements to compute</div>
  135. </td>
  136. </tr>
  137. <tr class="rowColor">
  138. <td class="colFirst"><code>static int</code></td>
  139. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/core/TermCriteria.html#EPS">EPS</a></span></code>
  140. <div class="block">The desired accuracy threshold or change in parameters at which the iterative algorithm is terminated.</div>
  141. </td>
  142. </tr>
  143. <tr class="altColor">
  144. <td class="colFirst"><code>double</code></td>
  145. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/core/TermCriteria.html#epsilon">epsilon</a></span></code>&nbsp;</td>
  146. </tr>
  147. <tr class="rowColor">
  148. <td class="colFirst"><code>static int</code></td>
  149. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/core/TermCriteria.html#MAX_ITER">MAX_ITER</a></span></code>
  150. <div class="block">The maximum number of iterations or elements to compute</div>
  151. </td>
  152. </tr>
  153. <tr class="altColor">
  154. <td class="colFirst"><code>int</code></td>
  155. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/core/TermCriteria.html#maxCount">maxCount</a></span></code>&nbsp;</td>
  156. </tr>
  157. <tr class="rowColor">
  158. <td class="colFirst"><code>int</code></td>
  159. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/core/TermCriteria.html#type">type</a></span></code>&nbsp;</td>
  160. </tr>
  161. </table>
  162. </li>
  163. </ul>
  164. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  165. <ul class="blockList">
  166. <li class="blockList"><a name="constructor.summary">
  167. <!-- -->
  168. </a>
  169. <h3>Constructor Summary</h3>
  170. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  171. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  172. <tr>
  173. <th class="colOne" scope="col">Constructor and Description</th>
  174. </tr>
  175. <tr class="altColor">
  176. <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/opencv/core/TermCriteria.html#TermCriteria--">TermCriteria</a></span>()</code>
  177. <div class="block">Termination criteria for iterative algorithms.</div>
  178. </td>
  179. </tr>
  180. <tr class="rowColor">
  181. <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/opencv/core/TermCriteria.html#TermCriteria-double:A-">TermCriteria</a></span>(double[]&nbsp;vals)</code>&nbsp;</td>
  182. </tr>
  183. <tr class="altColor">
  184. <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/opencv/core/TermCriteria.html#TermCriteria-int-int-double-">TermCriteria</a></span>(int&nbsp;type,
  185. int&nbsp;maxCount,
  186. double&nbsp;epsilon)</code>
  187. <div class="block">Termination criteria for iterative algorithms.</div>
  188. </td>
  189. </tr>
  190. </table>
  191. </li>
  192. </ul>
  193. <!-- ========== METHOD SUMMARY =========== -->
  194. <ul class="blockList">
  195. <li class="blockList"><a name="method.summary">
  196. <!-- -->
  197. </a>
  198. <h3>Method Summary</h3>
  199. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  200. <caption><span id="t0" class="activeTableTab"><span>All Methods</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>
  201. <tr>
  202. <th class="colFirst" scope="col">Modifier and Type</th>
  203. <th class="colLast" scope="col">Method and Description</th>
  204. </tr>
  205. <tr id="i0" class="altColor">
  206. <td class="colFirst"><code><a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a></code></td>
  207. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/core/TermCriteria.html#clone--">clone</a></span>()</code>&nbsp;</td>
  208. </tr>
  209. <tr id="i1" class="rowColor">
  210. <td class="colFirst"><code>boolean</code></td>
  211. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/core/TermCriteria.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object&nbsp;obj)</code>&nbsp;</td>
  212. </tr>
  213. <tr id="i2" class="altColor">
  214. <td class="colFirst"><code>int</code></td>
  215. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/core/TermCriteria.html#hashCode--">hashCode</a></span>()</code>&nbsp;</td>
  216. </tr>
  217. <tr id="i3" class="rowColor">
  218. <td class="colFirst"><code>void</code></td>
  219. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/core/TermCriteria.html#set-double:A-">set</a></span>(double[]&nbsp;vals)</code>&nbsp;</td>
  220. </tr>
  221. <tr id="i4" class="altColor">
  222. <td class="colFirst"><code>java.lang.String</code></td>
  223. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/core/TermCriteria.html#toString--">toString</a></span>()</code>&nbsp;</td>
  224. </tr>
  225. </table>
  226. <ul class="blockList">
  227. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  228. <!-- -->
  229. </a>
  230. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  231. <code>getClass, notify, notifyAll, wait, wait, wait</code></li>
  232. </ul>
  233. </li>
  234. </ul>
  235. </li>
  236. </ul>
  237. </div>
  238. <div class="details">
  239. <ul class="blockList">
  240. <li class="blockList">
  241. <!-- ============ FIELD DETAIL =========== -->
  242. <ul class="blockList">
  243. <li class="blockList"><a name="field.detail">
  244. <!-- -->
  245. </a>
  246. <h3>Field Detail</h3>
  247. <a name="COUNT">
  248. <!-- -->
  249. </a>
  250. <ul class="blockList">
  251. <li class="blockList">
  252. <h4>COUNT</h4>
  253. <pre>public static final&nbsp;int COUNT</pre>
  254. <div class="block">The maximum number of iterations or elements to compute</div>
  255. <dl>
  256. <dt><span class="seeLabel">See Also:</span></dt>
  257. <dd><a href="../../../constant-values.html#org.opencv.core.TermCriteria.COUNT">Constant Field Values</a></dd>
  258. </dl>
  259. </li>
  260. </ul>
  261. <a name="EPS">
  262. <!-- -->
  263. </a>
  264. <ul class="blockList">
  265. <li class="blockList">
  266. <h4>EPS</h4>
  267. <pre>public static final&nbsp;int EPS</pre>
  268. <div class="block">The desired accuracy threshold or change in parameters at which the iterative algorithm is terminated.</div>
  269. <dl>
  270. <dt><span class="seeLabel">See Also:</span></dt>
  271. <dd><a href="../../../constant-values.html#org.opencv.core.TermCriteria.EPS">Constant Field Values</a></dd>
  272. </dl>
  273. </li>
  274. </ul>
  275. <a name="epsilon">
  276. <!-- -->
  277. </a>
  278. <ul class="blockList">
  279. <li class="blockList">
  280. <h4>epsilon</h4>
  281. <pre>public&nbsp;double epsilon</pre>
  282. </li>
  283. </ul>
  284. <a name="MAX_ITER">
  285. <!-- -->
  286. </a>
  287. <ul class="blockList">
  288. <li class="blockList">
  289. <h4>MAX_ITER</h4>
  290. <pre>public static final&nbsp;int MAX_ITER</pre>
  291. <div class="block">The maximum number of iterations or elements to compute</div>
  292. <dl>
  293. <dt><span class="seeLabel">See Also:</span></dt>
  294. <dd><a href="../../../constant-values.html#org.opencv.core.TermCriteria.MAX_ITER">Constant Field Values</a></dd>
  295. </dl>
  296. </li>
  297. </ul>
  298. <a name="maxCount">
  299. <!-- -->
  300. </a>
  301. <ul class="blockList">
  302. <li class="blockList">
  303. <h4>maxCount</h4>
  304. <pre>public&nbsp;int maxCount</pre>
  305. </li>
  306. </ul>
  307. <a name="type">
  308. <!-- -->
  309. </a>
  310. <ul class="blockListLast">
  311. <li class="blockList">
  312. <h4>type</h4>
  313. <pre>public&nbsp;int type</pre>
  314. </li>
  315. </ul>
  316. </li>
  317. </ul>
  318. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  319. <ul class="blockList">
  320. <li class="blockList"><a name="constructor.detail">
  321. <!-- -->
  322. </a>
  323. <h3>Constructor Detail</h3>
  324. <a name="TermCriteria--">
  325. <!-- -->
  326. </a>
  327. <ul class="blockList">
  328. <li class="blockList">
  329. <h4>TermCriteria</h4>
  330. <pre>public&nbsp;TermCriteria()</pre>
  331. <div class="block">Termination criteria for iterative algorithms.</div>
  332. </li>
  333. </ul>
  334. <a name="TermCriteria-double:A-">
  335. <!-- -->
  336. </a>
  337. <ul class="blockList">
  338. <li class="blockList">
  339. <h4>TermCriteria</h4>
  340. <pre>public&nbsp;TermCriteria(double[]&nbsp;vals)</pre>
  341. </li>
  342. </ul>
  343. <a name="TermCriteria-int-int-double-">
  344. <!-- -->
  345. </a>
  346. <ul class="blockListLast">
  347. <li class="blockList">
  348. <h4>TermCriteria</h4>
  349. <pre>public&nbsp;TermCriteria(int&nbsp;type,
  350. int&nbsp;maxCount,
  351. double&nbsp;epsilon)</pre>
  352. <div class="block">Termination criteria for iterative algorithms.</div>
  353. <dl>
  354. <dt><span class="paramLabel">Parameters:</span></dt>
  355. <dd><code>type</code> - the type of termination criteria: COUNT, EPS or COUNT + EPS.</dd>
  356. <dd><code>maxCount</code> - the maximum number of iterations/elements.</dd>
  357. <dd><code>epsilon</code> - the desired accuracy.</dd>
  358. </dl>
  359. </li>
  360. </ul>
  361. </li>
  362. </ul>
  363. <!-- ============ METHOD DETAIL ========== -->
  364. <ul class="blockList">
  365. <li class="blockList"><a name="method.detail">
  366. <!-- -->
  367. </a>
  368. <h3>Method Detail</h3>
  369. <a name="clone--">
  370. <!-- -->
  371. </a>
  372. <ul class="blockList">
  373. <li class="blockList">
  374. <h4>clone</h4>
  375. <pre>public&nbsp;<a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a>&nbsp;clone()</pre>
  376. <dl>
  377. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  378. <dd><code>clone</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
  379. </dl>
  380. </li>
  381. </ul>
  382. <a name="equals-java.lang.Object-">
  383. <!-- -->
  384. </a>
  385. <ul class="blockList">
  386. <li class="blockList">
  387. <h4>equals</h4>
  388. <pre>public&nbsp;boolean&nbsp;equals(java.lang.Object&nbsp;obj)</pre>
  389. <dl>
  390. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  391. <dd><code>equals</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
  392. </dl>
  393. </li>
  394. </ul>
  395. <a name="hashCode--">
  396. <!-- -->
  397. </a>
  398. <ul class="blockList">
  399. <li class="blockList">
  400. <h4>hashCode</h4>
  401. <pre>public&nbsp;int&nbsp;hashCode()</pre>
  402. <dl>
  403. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  404. <dd><code>hashCode</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
  405. </dl>
  406. </li>
  407. </ul>
  408. <a name="set-double:A-">
  409. <!-- -->
  410. </a>
  411. <ul class="blockList">
  412. <li class="blockList">
  413. <h4>set</h4>
  414. <pre>public&nbsp;void&nbsp;set(double[]&nbsp;vals)</pre>
  415. </li>
  416. </ul>
  417. <a name="toString--">
  418. <!-- -->
  419. </a>
  420. <ul class="blockListLast">
  421. <li class="blockList">
  422. <h4>toString</h4>
  423. <pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
  424. <dl>
  425. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  426. <dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
  427. </dl>
  428. </li>
  429. </ul>
  430. </li>
  431. </ul>
  432. </li>
  433. </ul>
  434. </div>
  435. </div>
  436. <!-- ========= END OF CLASS DATA ========= -->
  437. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  438. <div class="bottomNav"><a name="navbar.bottom">
  439. <!-- -->
  440. </a>
  441. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  442. <a name="navbar.bottom.firstrow">
  443. <!-- -->
  444. </a>
  445. <ul class="navList" title="Navigation">
  446. <li><a href="../../../overview-summary.html">Overview</a></li>
  447. <li><a href="package-summary.html">Package</a></li>
  448. <li class="navBarCell1Rev">Class</li>
  449. <li><a href="package-tree.html">Tree</a></li>
  450. <li><a href="../../../index-all.html">Index</a></li>
  451. <li><a href="../../../help-doc.html">Help</a></li>
  452. </ul>
  453. <div class="aboutLanguage"><a href="http://docs.opencv.org">OpenCV 3.1.0 Documentation</a></div>
  454. </div>
  455. <div class="subNav">
  456. <ul class="navList">
  457. <li><a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  458. <li>Next&nbsp;Class</li>
  459. </ul>
  460. <ul class="navList">
  461. <li><a href="../../../index.html?org/opencv/core/TermCriteria.html" target="_top">Frames</a></li>
  462. <li><a href="TermCriteria.html" target="_top">No&nbsp;Frames</a></li>
  463. </ul>
  464. <ul class="navList" id="allclasses_navbar_bottom">
  465. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  466. </ul>
  467. <div>
  468. <script type="text/javascript"><!--
  469. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  470. if(window==top) {
  471. allClassesLink.style.display = "block";
  472. }
  473. else {
  474. allClassesLink.style.display = "none";
  475. }
  476. //-->
  477. </script>
  478. </div>
  479. <div>
  480. <ul class="subNavList">
  481. <li>Summary:&nbsp;</li>
  482. <li>Nested&nbsp;|&nbsp;</li>
  483. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  484. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  485. <li><a href="#method.summary">Method</a></li>
  486. </ul>
  487. <ul class="subNavList">
  488. <li>Detail:&nbsp;</li>
  489. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  490. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  491. <li><a href="#method.detail">Method</a></li>
  492. </ul>
  493. </div>
  494. <a name="skip.navbar.bottom">
  495. <!-- -->
  496. </a></div>
  497. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  498. </body>
  499. </html>