BackgroundSubtractorKNN.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  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:52 MSK 2015 -->
  6. <title>BackgroundSubtractorKNN</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="BackgroundSubtractorKNN";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":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/video/BackgroundSubtractor.html" title="class in org.opencv.video"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  52. <li><a href="../../../org/opencv/video/BackgroundSubtractorMOG2.html" title="class in org.opencv.video"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  53. </ul>
  54. <ul class="navList">
  55. <li><a href="../../../index.html?org/opencv/video/BackgroundSubtractorKNN.html" target="_top">Frames</a></li>
  56. <li><a href="BackgroundSubtractorKNN.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>Field&nbsp;|&nbsp;</li>
  78. <li>Constr&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>Field&nbsp;|&nbsp;</li>
  84. <li>Constr&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.video</div>
  95. <h2 title="Class BackgroundSubtractorKNN" class="title">Class BackgroundSubtractorKNN</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><a href="../../../org/opencv/core/Algorithm.html" title="class in org.opencv.core">org.opencv.core.Algorithm</a></li>
  103. <li>
  104. <ul class="inheritance">
  105. <li><a href="../../../org/opencv/video/BackgroundSubtractor.html" title="class in org.opencv.video">org.opencv.video.BackgroundSubtractor</a></li>
  106. <li>
  107. <ul class="inheritance">
  108. <li>org.opencv.video.BackgroundSubtractorKNN</li>
  109. </ul>
  110. </li>
  111. </ul>
  112. </li>
  113. </ul>
  114. </li>
  115. </ul>
  116. <div class="description">
  117. <ul class="blockList">
  118. <li class="blockList">
  119. <hr>
  120. <br>
  121. <pre>public class <span class="typeNameLabel">BackgroundSubtractorKNN</span>
  122. extends <a href="../../../org/opencv/video/BackgroundSubtractor.html" title="class in org.opencv.video">BackgroundSubtractor</a></pre>
  123. </li>
  124. </ul>
  125. </div>
  126. <div class="summary">
  127. <ul class="blockList">
  128. <li class="blockList">
  129. <!-- ========== METHOD SUMMARY =========== -->
  130. <ul class="blockList">
  131. <li class="blockList"><a name="method.summary">
  132. <!-- -->
  133. </a>
  134. <h3>Method Summary</h3>
  135. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  136. <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>
  137. <tr>
  138. <th class="colFirst" scope="col">Modifier and Type</th>
  139. <th class="colLast" scope="col">Method and Description</th>
  140. </tr>
  141. <tr id="i0" class="altColor">
  142. <td class="colFirst"><code>boolean</code></td>
  143. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/BackgroundSubtractorKNN.html#getDetectShadows--">getDetectShadows</a></span>()</code>&nbsp;</td>
  144. </tr>
  145. <tr id="i1" class="rowColor">
  146. <td class="colFirst"><code>double</code></td>
  147. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/BackgroundSubtractorKNN.html#getDist2Threshold--">getDist2Threshold</a></span>()</code>&nbsp;</td>
  148. </tr>
  149. <tr id="i2" class="altColor">
  150. <td class="colFirst"><code>int</code></td>
  151. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/BackgroundSubtractorKNN.html#getHistory--">getHistory</a></span>()</code>&nbsp;</td>
  152. </tr>
  153. <tr id="i3" class="rowColor">
  154. <td class="colFirst"><code>int</code></td>
  155. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/BackgroundSubtractorKNN.html#getkNNSamples--">getkNNSamples</a></span>()</code>&nbsp;</td>
  156. </tr>
  157. <tr id="i4" class="altColor">
  158. <td class="colFirst"><code>int</code></td>
  159. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/BackgroundSubtractorKNN.html#getNSamples--">getNSamples</a></span>()</code>&nbsp;</td>
  160. </tr>
  161. <tr id="i5" class="rowColor">
  162. <td class="colFirst"><code>double</code></td>
  163. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/BackgroundSubtractorKNN.html#getShadowThreshold--">getShadowThreshold</a></span>()</code>&nbsp;</td>
  164. </tr>
  165. <tr id="i6" class="altColor">
  166. <td class="colFirst"><code>int</code></td>
  167. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/BackgroundSubtractorKNN.html#getShadowValue--">getShadowValue</a></span>()</code>&nbsp;</td>
  168. </tr>
  169. <tr id="i7" class="rowColor">
  170. <td class="colFirst"><code>void</code></td>
  171. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/BackgroundSubtractorKNN.html#setDetectShadows-boolean-">setDetectShadows</a></span>(boolean&nbsp;detectShadows)</code>&nbsp;</td>
  172. </tr>
  173. <tr id="i8" class="altColor">
  174. <td class="colFirst"><code>void</code></td>
  175. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/BackgroundSubtractorKNN.html#setDist2Threshold-double-">setDist2Threshold</a></span>(double&nbsp;_dist2Threshold)</code>&nbsp;</td>
  176. </tr>
  177. <tr id="i9" class="rowColor">
  178. <td class="colFirst"><code>void</code></td>
  179. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/BackgroundSubtractorKNN.html#setHistory-int-">setHistory</a></span>(int&nbsp;history)</code>&nbsp;</td>
  180. </tr>
  181. <tr id="i10" class="altColor">
  182. <td class="colFirst"><code>void</code></td>
  183. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/BackgroundSubtractorKNN.html#setkNNSamples-int-">setkNNSamples</a></span>(int&nbsp;_nkNN)</code>&nbsp;</td>
  184. </tr>
  185. <tr id="i11" class="rowColor">
  186. <td class="colFirst"><code>void</code></td>
  187. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/BackgroundSubtractorKNN.html#setNSamples-int-">setNSamples</a></span>(int&nbsp;_nN)</code>&nbsp;</td>
  188. </tr>
  189. <tr id="i12" class="altColor">
  190. <td class="colFirst"><code>void</code></td>
  191. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/BackgroundSubtractorKNN.html#setShadowThreshold-double-">setShadowThreshold</a></span>(double&nbsp;threshold)</code>&nbsp;</td>
  192. </tr>
  193. <tr id="i13" class="rowColor">
  194. <td class="colFirst"><code>void</code></td>
  195. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/BackgroundSubtractorKNN.html#setShadowValue-int-">setShadowValue</a></span>(int&nbsp;value)</code>&nbsp;</td>
  196. </tr>
  197. </table>
  198. <ul class="blockList">
  199. <li class="blockList"><a name="methods.inherited.from.class.org.opencv.video.BackgroundSubtractor">
  200. <!-- -->
  201. </a>
  202. <h3>Methods inherited from class&nbsp;org.opencv.video.<a href="../../../org/opencv/video/BackgroundSubtractor.html" title="class in org.opencv.video">BackgroundSubtractor</a></h3>
  203. <code><a href="../../../org/opencv/video/BackgroundSubtractor.html#apply-org.opencv.core.Mat-org.opencv.core.Mat-">apply</a>, <a href="../../../org/opencv/video/BackgroundSubtractor.html#apply-org.opencv.core.Mat-org.opencv.core.Mat-double-">apply</a>, <a href="../../../org/opencv/video/BackgroundSubtractor.html#getBackgroundImage-org.opencv.core.Mat-">getBackgroundImage</a></code></li>
  204. </ul>
  205. <ul class="blockList">
  206. <li class="blockList"><a name="methods.inherited.from.class.org.opencv.core.Algorithm">
  207. <!-- -->
  208. </a>
  209. <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>
  210. <code><a href="../../../org/opencv/core/Algorithm.html#clear--">clear</a>, <a href="../../../org/opencv/core/Algorithm.html#getDefaultName--">getDefaultName</a>, <a href="../../../org/opencv/core/Algorithm.html#save-java.lang.String-">save</a></code></li>
  211. </ul>
  212. <ul class="blockList">
  213. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  214. <!-- -->
  215. </a>
  216. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  217. <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  218. </ul>
  219. </li>
  220. </ul>
  221. </li>
  222. </ul>
  223. </div>
  224. <div class="details">
  225. <ul class="blockList">
  226. <li class="blockList">
  227. <!-- ============ METHOD DETAIL ========== -->
  228. <ul class="blockList">
  229. <li class="blockList"><a name="method.detail">
  230. <!-- -->
  231. </a>
  232. <h3>Method Detail</h3>
  233. <a name="getDetectShadows--">
  234. <!-- -->
  235. </a>
  236. <ul class="blockList">
  237. <li class="blockList">
  238. <h4>getDetectShadows</h4>
  239. <pre>public&nbsp;boolean&nbsp;getDetectShadows()</pre>
  240. </li>
  241. </ul>
  242. <a name="getDist2Threshold--">
  243. <!-- -->
  244. </a>
  245. <ul class="blockList">
  246. <li class="blockList">
  247. <h4>getDist2Threshold</h4>
  248. <pre>public&nbsp;double&nbsp;getDist2Threshold()</pre>
  249. </li>
  250. </ul>
  251. <a name="getHistory--">
  252. <!-- -->
  253. </a>
  254. <ul class="blockList">
  255. <li class="blockList">
  256. <h4>getHistory</h4>
  257. <pre>public&nbsp;int&nbsp;getHistory()</pre>
  258. </li>
  259. </ul>
  260. <a name="getkNNSamples--">
  261. <!-- -->
  262. </a>
  263. <ul class="blockList">
  264. <li class="blockList">
  265. <h4>getkNNSamples</h4>
  266. <pre>public&nbsp;int&nbsp;getkNNSamples()</pre>
  267. </li>
  268. </ul>
  269. <a name="getNSamples--">
  270. <!-- -->
  271. </a>
  272. <ul class="blockList">
  273. <li class="blockList">
  274. <h4>getNSamples</h4>
  275. <pre>public&nbsp;int&nbsp;getNSamples()</pre>
  276. </li>
  277. </ul>
  278. <a name="getShadowThreshold--">
  279. <!-- -->
  280. </a>
  281. <ul class="blockList">
  282. <li class="blockList">
  283. <h4>getShadowThreshold</h4>
  284. <pre>public&nbsp;double&nbsp;getShadowThreshold()</pre>
  285. </li>
  286. </ul>
  287. <a name="getShadowValue--">
  288. <!-- -->
  289. </a>
  290. <ul class="blockList">
  291. <li class="blockList">
  292. <h4>getShadowValue</h4>
  293. <pre>public&nbsp;int&nbsp;getShadowValue()</pre>
  294. </li>
  295. </ul>
  296. <a name="setDetectShadows-boolean-">
  297. <!-- -->
  298. </a>
  299. <ul class="blockList">
  300. <li class="blockList">
  301. <h4>setDetectShadows</h4>
  302. <pre>public&nbsp;void&nbsp;setDetectShadows(boolean&nbsp;detectShadows)</pre>
  303. </li>
  304. </ul>
  305. <a name="setDist2Threshold-double-">
  306. <!-- -->
  307. </a>
  308. <ul class="blockList">
  309. <li class="blockList">
  310. <h4>setDist2Threshold</h4>
  311. <pre>public&nbsp;void&nbsp;setDist2Threshold(double&nbsp;_dist2Threshold)</pre>
  312. </li>
  313. </ul>
  314. <a name="setHistory-int-">
  315. <!-- -->
  316. </a>
  317. <ul class="blockList">
  318. <li class="blockList">
  319. <h4>setHistory</h4>
  320. <pre>public&nbsp;void&nbsp;setHistory(int&nbsp;history)</pre>
  321. </li>
  322. </ul>
  323. <a name="setkNNSamples-int-">
  324. <!-- -->
  325. </a>
  326. <ul class="blockList">
  327. <li class="blockList">
  328. <h4>setkNNSamples</h4>
  329. <pre>public&nbsp;void&nbsp;setkNNSamples(int&nbsp;_nkNN)</pre>
  330. </li>
  331. </ul>
  332. <a name="setNSamples-int-">
  333. <!-- -->
  334. </a>
  335. <ul class="blockList">
  336. <li class="blockList">
  337. <h4>setNSamples</h4>
  338. <pre>public&nbsp;void&nbsp;setNSamples(int&nbsp;_nN)</pre>
  339. </li>
  340. </ul>
  341. <a name="setShadowThreshold-double-">
  342. <!-- -->
  343. </a>
  344. <ul class="blockList">
  345. <li class="blockList">
  346. <h4>setShadowThreshold</h4>
  347. <pre>public&nbsp;void&nbsp;setShadowThreshold(double&nbsp;threshold)</pre>
  348. </li>
  349. </ul>
  350. <a name="setShadowValue-int-">
  351. <!-- -->
  352. </a>
  353. <ul class="blockListLast">
  354. <li class="blockList">
  355. <h4>setShadowValue</h4>
  356. <pre>public&nbsp;void&nbsp;setShadowValue(int&nbsp;value)</pre>
  357. </li>
  358. </ul>
  359. </li>
  360. </ul>
  361. </li>
  362. </ul>
  363. </div>
  364. </div>
  365. <!-- ========= END OF CLASS DATA ========= -->
  366. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  367. <div class="bottomNav"><a name="navbar.bottom">
  368. <!-- -->
  369. </a>
  370. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  371. <a name="navbar.bottom.firstrow">
  372. <!-- -->
  373. </a>
  374. <ul class="navList" title="Navigation">
  375. <li><a href="../../../overview-summary.html">Overview</a></li>
  376. <li><a href="package-summary.html">Package</a></li>
  377. <li class="navBarCell1Rev">Class</li>
  378. <li><a href="package-tree.html">Tree</a></li>
  379. <li><a href="../../../index-all.html">Index</a></li>
  380. <li><a href="../../../help-doc.html">Help</a></li>
  381. </ul>
  382. <div class="aboutLanguage"><a href="http://docs.opencv.org">OpenCV 3.1.0 Documentation</a></div>
  383. </div>
  384. <div class="subNav">
  385. <ul class="navList">
  386. <li><a href="../../../org/opencv/video/BackgroundSubtractor.html" title="class in org.opencv.video"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  387. <li><a href="../../../org/opencv/video/BackgroundSubtractorMOG2.html" title="class in org.opencv.video"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  388. </ul>
  389. <ul class="navList">
  390. <li><a href="../../../index.html?org/opencv/video/BackgroundSubtractorKNN.html" target="_top">Frames</a></li>
  391. <li><a href="BackgroundSubtractorKNN.html" target="_top">No&nbsp;Frames</a></li>
  392. </ul>
  393. <ul class="navList" id="allclasses_navbar_bottom">
  394. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  395. </ul>
  396. <div>
  397. <script type="text/javascript"><!--
  398. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  399. if(window==top) {
  400. allClassesLink.style.display = "block";
  401. }
  402. else {
  403. allClassesLink.style.display = "none";
  404. }
  405. //-->
  406. </script>
  407. </div>
  408. <div>
  409. <ul class="subNavList">
  410. <li>Summary:&nbsp;</li>
  411. <li>Nested&nbsp;|&nbsp;</li>
  412. <li>Field&nbsp;|&nbsp;</li>
  413. <li>Constr&nbsp;|&nbsp;</li>
  414. <li><a href="#method.summary">Method</a></li>
  415. </ul>
  416. <ul class="subNavList">
  417. <li>Detail:&nbsp;</li>
  418. <li>Field&nbsp;|&nbsp;</li>
  419. <li>Constr&nbsp;|&nbsp;</li>
  420. <li><a href="#method.detail">Method</a></li>
  421. </ul>
  422. </div>
  423. <a name="skip.navbar.bottom">
  424. <!-- -->
  425. </a></div>
  426. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  427. </body>
  428. </html>