SVM.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899
  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>SVM</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="SVM";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":9,"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,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10};
  22. var tabs = {65535:["t0","All Methods"],1:["t1","Static 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/ml/StatModel.html" title="class in org.opencv.ml"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  52. <li><a href="../../../org/opencv/ml/TrainData.html" title="class in org.opencv.ml"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  53. </ul>
  54. <ul class="navList">
  55. <li><a href="../../../index.html?org/opencv/ml/SVM.html" target="_top">Frames</a></li>
  56. <li><a href="SVM.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>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><a href="#field.detail">Field</a>&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.ml</div>
  95. <h2 title="Class SVM" class="title">Class SVM</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/ml/StatModel.html" title="class in org.opencv.ml">org.opencv.ml.StatModel</a></li>
  106. <li>
  107. <ul class="inheritance">
  108. <li>org.opencv.ml.SVM</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">SVM</span>
  122. extends <a href="../../../org/opencv/ml/StatModel.html" title="class in org.opencv.ml">StatModel</a></pre>
  123. </li>
  124. </ul>
  125. </div>
  126. <div class="summary">
  127. <ul class="blockList">
  128. <li class="blockList">
  129. <!-- =========== FIELD SUMMARY =========== -->
  130. <ul class="blockList">
  131. <li class="blockList"><a name="field.summary">
  132. <!-- -->
  133. </a>
  134. <h3>Field Summary</h3>
  135. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  136. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  137. <tr>
  138. <th class="colFirst" scope="col">Modifier and Type</th>
  139. <th class="colLast" scope="col">Field and Description</th>
  140. </tr>
  141. <tr class="altColor">
  142. <td class="colFirst"><code>static int</code></td>
  143. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#C">C</a></span></code>&nbsp;</td>
  144. </tr>
  145. <tr class="rowColor">
  146. <td class="colFirst"><code>static int</code></td>
  147. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#C_SVC">C_SVC</a></span></code>&nbsp;</td>
  148. </tr>
  149. <tr class="altColor">
  150. <td class="colFirst"><code>static int</code></td>
  151. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#CHI2">CHI2</a></span></code>&nbsp;</td>
  152. </tr>
  153. <tr class="rowColor">
  154. <td class="colFirst"><code>static int</code></td>
  155. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#COEF">COEF</a></span></code>&nbsp;</td>
  156. </tr>
  157. <tr class="altColor">
  158. <td class="colFirst"><code>static int</code></td>
  159. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#CUSTOM">CUSTOM</a></span></code>&nbsp;</td>
  160. </tr>
  161. <tr class="rowColor">
  162. <td class="colFirst"><code>static int</code></td>
  163. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#DEGREE">DEGREE</a></span></code>&nbsp;</td>
  164. </tr>
  165. <tr class="altColor">
  166. <td class="colFirst"><code>static int</code></td>
  167. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#EPS_SVR">EPS_SVR</a></span></code>&nbsp;</td>
  168. </tr>
  169. <tr class="rowColor">
  170. <td class="colFirst"><code>static int</code></td>
  171. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#GAMMA">GAMMA</a></span></code>&nbsp;</td>
  172. </tr>
  173. <tr class="altColor">
  174. <td class="colFirst"><code>static int</code></td>
  175. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#INTER">INTER</a></span></code>&nbsp;</td>
  176. </tr>
  177. <tr class="rowColor">
  178. <td class="colFirst"><code>static int</code></td>
  179. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#LINEAR">LINEAR</a></span></code>&nbsp;</td>
  180. </tr>
  181. <tr class="altColor">
  182. <td class="colFirst"><code>static int</code></td>
  183. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#NU">NU</a></span></code>&nbsp;</td>
  184. </tr>
  185. <tr class="rowColor">
  186. <td class="colFirst"><code>static int</code></td>
  187. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#NU_SVC">NU_SVC</a></span></code>&nbsp;</td>
  188. </tr>
  189. <tr class="altColor">
  190. <td class="colFirst"><code>static int</code></td>
  191. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#NU_SVR">NU_SVR</a></span></code>&nbsp;</td>
  192. </tr>
  193. <tr class="rowColor">
  194. <td class="colFirst"><code>static int</code></td>
  195. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#ONE_CLASS">ONE_CLASS</a></span></code>&nbsp;</td>
  196. </tr>
  197. <tr class="altColor">
  198. <td class="colFirst"><code>static int</code></td>
  199. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#P">P</a></span></code>&nbsp;</td>
  200. </tr>
  201. <tr class="rowColor">
  202. <td class="colFirst"><code>static int</code></td>
  203. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#POLY">POLY</a></span></code>&nbsp;</td>
  204. </tr>
  205. <tr class="altColor">
  206. <td class="colFirst"><code>static int</code></td>
  207. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#RBF">RBF</a></span></code>&nbsp;</td>
  208. </tr>
  209. <tr class="rowColor">
  210. <td class="colFirst"><code>static int</code></td>
  211. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#SIGMOID">SIGMOID</a></span></code>&nbsp;</td>
  212. </tr>
  213. </table>
  214. <ul class="blockList">
  215. <li class="blockList"><a name="fields.inherited.from.class.org.opencv.ml.StatModel">
  216. <!-- -->
  217. </a>
  218. <h3>Fields inherited from class&nbsp;org.opencv.ml.<a href="../../../org/opencv/ml/StatModel.html" title="class in org.opencv.ml">StatModel</a></h3>
  219. <code><a href="../../../org/opencv/ml/StatModel.html#COMPRESSED_INPUT">COMPRESSED_INPUT</a>, <a href="../../../org/opencv/ml/StatModel.html#PREPROCESSED_INPUT">PREPROCESSED_INPUT</a>, <a href="../../../org/opencv/ml/StatModel.html#RAW_OUTPUT">RAW_OUTPUT</a>, <a href="../../../org/opencv/ml/StatModel.html#UPDATE_MODEL">UPDATE_MODEL</a></code></li>
  220. </ul>
  221. </li>
  222. </ul>
  223. <!-- ========== METHOD SUMMARY =========== -->
  224. <ul class="blockList">
  225. <li class="blockList"><a name="method.summary">
  226. <!-- -->
  227. </a>
  228. <h3>Method Summary</h3>
  229. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  230. <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>
  231. <tr>
  232. <th class="colFirst" scope="col">Modifier and Type</th>
  233. <th class="colLast" scope="col">Method and Description</th>
  234. </tr>
  235. <tr id="i0" class="altColor">
  236. <td class="colFirst"><code>static <a href="../../../org/opencv/ml/SVM.html" title="class in org.opencv.ml">SVM</a></code></td>
  237. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#create--">create</a></span>()</code>&nbsp;</td>
  238. </tr>
  239. <tr id="i1" class="rowColor">
  240. <td class="colFirst"><code>double</code></td>
  241. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#getC--">getC</a></span>()</code>&nbsp;</td>
  242. </tr>
  243. <tr id="i2" class="altColor">
  244. <td class="colFirst"><code><a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a></code></td>
  245. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#getClassWeights--">getClassWeights</a></span>()</code>&nbsp;</td>
  246. </tr>
  247. <tr id="i3" class="rowColor">
  248. <td class="colFirst"><code>double</code></td>
  249. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#getCoef0--">getCoef0</a></span>()</code>&nbsp;</td>
  250. </tr>
  251. <tr id="i4" class="altColor">
  252. <td class="colFirst"><code>double</code></td>
  253. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#getDecisionFunction-int-org.opencv.core.Mat-org.opencv.core.Mat-">getDecisionFunction</a></span>(int&nbsp;i,
  254. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;alpha,
  255. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;svidx)</code>&nbsp;</td>
  256. </tr>
  257. <tr id="i5" class="rowColor">
  258. <td class="colFirst"><code>double</code></td>
  259. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#getDegree--">getDegree</a></span>()</code>&nbsp;</td>
  260. </tr>
  261. <tr id="i6" class="altColor">
  262. <td class="colFirst"><code>double</code></td>
  263. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#getGamma--">getGamma</a></span>()</code>&nbsp;</td>
  264. </tr>
  265. <tr id="i7" class="rowColor">
  266. <td class="colFirst"><code>int</code></td>
  267. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#getKernelType--">getKernelType</a></span>()</code>&nbsp;</td>
  268. </tr>
  269. <tr id="i8" class="altColor">
  270. <td class="colFirst"><code>double</code></td>
  271. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#getNu--">getNu</a></span>()</code>&nbsp;</td>
  272. </tr>
  273. <tr id="i9" class="rowColor">
  274. <td class="colFirst"><code>double</code></td>
  275. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#getP--">getP</a></span>()</code>&nbsp;</td>
  276. </tr>
  277. <tr id="i10" class="altColor">
  278. <td class="colFirst"><code><a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a></code></td>
  279. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#getSupportVectors--">getSupportVectors</a></span>()</code>&nbsp;</td>
  280. </tr>
  281. <tr id="i11" class="rowColor">
  282. <td class="colFirst"><code><a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a></code></td>
  283. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#getTermCriteria--">getTermCriteria</a></span>()</code>&nbsp;</td>
  284. </tr>
  285. <tr id="i12" class="altColor">
  286. <td class="colFirst"><code>int</code></td>
  287. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#getType--">getType</a></span>()</code>&nbsp;</td>
  288. </tr>
  289. <tr id="i13" class="rowColor">
  290. <td class="colFirst"><code><a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a></code></td>
  291. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#getUncompressedSupportVectors--">getUncompressedSupportVectors</a></span>()</code>&nbsp;</td>
  292. </tr>
  293. <tr id="i14" class="altColor">
  294. <td class="colFirst"><code>void</code></td>
  295. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#setC-double-">setC</a></span>(double&nbsp;val)</code>&nbsp;</td>
  296. </tr>
  297. <tr id="i15" class="rowColor">
  298. <td class="colFirst"><code>void</code></td>
  299. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#setClassWeights-org.opencv.core.Mat-">setClassWeights</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;val)</code>&nbsp;</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/ml/SVM.html#setCoef0-double-">setCoef0</a></span>(double&nbsp;val)</code>&nbsp;</td>
  304. </tr>
  305. <tr id="i17" class="rowColor">
  306. <td class="colFirst"><code>void</code></td>
  307. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#setDegree-double-">setDegree</a></span>(double&nbsp;val)</code>&nbsp;</td>
  308. </tr>
  309. <tr id="i18" class="altColor">
  310. <td class="colFirst"><code>void</code></td>
  311. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#setGamma-double-">setGamma</a></span>(double&nbsp;val)</code>&nbsp;</td>
  312. </tr>
  313. <tr id="i19" class="rowColor">
  314. <td class="colFirst"><code>void</code></td>
  315. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#setKernel-int-">setKernel</a></span>(int&nbsp;kernelType)</code>&nbsp;</td>
  316. </tr>
  317. <tr id="i20" class="altColor">
  318. <td class="colFirst"><code>void</code></td>
  319. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#setNu-double-">setNu</a></span>(double&nbsp;val)</code>&nbsp;</td>
  320. </tr>
  321. <tr id="i21" class="rowColor">
  322. <td class="colFirst"><code>void</code></td>
  323. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#setP-double-">setP</a></span>(double&nbsp;val)</code>&nbsp;</td>
  324. </tr>
  325. <tr id="i22" class="altColor">
  326. <td class="colFirst"><code>void</code></td>
  327. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#setTermCriteria-org.opencv.core.TermCriteria-">setTermCriteria</a></span>(<a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a>&nbsp;val)</code>&nbsp;</td>
  328. </tr>
  329. <tr id="i23" class="rowColor">
  330. <td class="colFirst"><code>void</code></td>
  331. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/ml/SVM.html#setType-int-">setType</a></span>(int&nbsp;val)</code>&nbsp;</td>
  332. </tr>
  333. </table>
  334. <ul class="blockList">
  335. <li class="blockList"><a name="methods.inherited.from.class.org.opencv.ml.StatModel">
  336. <!-- -->
  337. </a>
  338. <h3>Methods inherited from class&nbsp;org.opencv.ml.<a href="../../../org/opencv/ml/StatModel.html" title="class in org.opencv.ml">StatModel</a></h3>
  339. <code><a href="../../../org/opencv/ml/StatModel.html#empty--">empty</a>, <a href="../../../org/opencv/ml/StatModel.html#getVarCount--">getVarCount</a>, <a href="../../../org/opencv/ml/StatModel.html#isClassifier--">isClassifier</a>, <a href="../../../org/opencv/ml/StatModel.html#isTrained--">isTrained</a>, <a href="../../../org/opencv/ml/StatModel.html#predict-org.opencv.core.Mat-">predict</a>, <a href="../../../org/opencv/ml/StatModel.html#predict-org.opencv.core.Mat-org.opencv.core.Mat-int-">predict</a>, <a href="../../../org/opencv/ml/StatModel.html#train-org.opencv.core.Mat-int-org.opencv.core.Mat-">train</a></code></li>
  340. </ul>
  341. <ul class="blockList">
  342. <li class="blockList"><a name="methods.inherited.from.class.org.opencv.core.Algorithm">
  343. <!-- -->
  344. </a>
  345. <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>
  346. <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>
  347. </ul>
  348. <ul class="blockList">
  349. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  350. <!-- -->
  351. </a>
  352. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  353. <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  354. </ul>
  355. </li>
  356. </ul>
  357. </li>
  358. </ul>
  359. </div>
  360. <div class="details">
  361. <ul class="blockList">
  362. <li class="blockList">
  363. <!-- ============ FIELD DETAIL =========== -->
  364. <ul class="blockList">
  365. <li class="blockList"><a name="field.detail">
  366. <!-- -->
  367. </a>
  368. <h3>Field Detail</h3>
  369. <a name="C">
  370. <!-- -->
  371. </a>
  372. <ul class="blockList">
  373. <li class="blockList">
  374. <h4>C</h4>
  375. <pre>public static final&nbsp;int C</pre>
  376. <dl>
  377. <dt><span class="seeLabel">See Also:</span></dt>
  378. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.C">Constant Field Values</a></dd>
  379. </dl>
  380. </li>
  381. </ul>
  382. <a name="C_SVC">
  383. <!-- -->
  384. </a>
  385. <ul class="blockList">
  386. <li class="blockList">
  387. <h4>C_SVC</h4>
  388. <pre>public static final&nbsp;int C_SVC</pre>
  389. <dl>
  390. <dt><span class="seeLabel">See Also:</span></dt>
  391. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.C_SVC">Constant Field Values</a></dd>
  392. </dl>
  393. </li>
  394. </ul>
  395. <a name="CHI2">
  396. <!-- -->
  397. </a>
  398. <ul class="blockList">
  399. <li class="blockList">
  400. <h4>CHI2</h4>
  401. <pre>public static final&nbsp;int CHI2</pre>
  402. <dl>
  403. <dt><span class="seeLabel">See Also:</span></dt>
  404. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.CHI2">Constant Field Values</a></dd>
  405. </dl>
  406. </li>
  407. </ul>
  408. <a name="COEF">
  409. <!-- -->
  410. </a>
  411. <ul class="blockList">
  412. <li class="blockList">
  413. <h4>COEF</h4>
  414. <pre>public static final&nbsp;int COEF</pre>
  415. <dl>
  416. <dt><span class="seeLabel">See Also:</span></dt>
  417. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.COEF">Constant Field Values</a></dd>
  418. </dl>
  419. </li>
  420. </ul>
  421. <a name="CUSTOM">
  422. <!-- -->
  423. </a>
  424. <ul class="blockList">
  425. <li class="blockList">
  426. <h4>CUSTOM</h4>
  427. <pre>public static final&nbsp;int CUSTOM</pre>
  428. <dl>
  429. <dt><span class="seeLabel">See Also:</span></dt>
  430. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.CUSTOM">Constant Field Values</a></dd>
  431. </dl>
  432. </li>
  433. </ul>
  434. <a name="DEGREE">
  435. <!-- -->
  436. </a>
  437. <ul class="blockList">
  438. <li class="blockList">
  439. <h4>DEGREE</h4>
  440. <pre>public static final&nbsp;int DEGREE</pre>
  441. <dl>
  442. <dt><span class="seeLabel">See Also:</span></dt>
  443. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.DEGREE">Constant Field Values</a></dd>
  444. </dl>
  445. </li>
  446. </ul>
  447. <a name="EPS_SVR">
  448. <!-- -->
  449. </a>
  450. <ul class="blockList">
  451. <li class="blockList">
  452. <h4>EPS_SVR</h4>
  453. <pre>public static final&nbsp;int EPS_SVR</pre>
  454. <dl>
  455. <dt><span class="seeLabel">See Also:</span></dt>
  456. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.EPS_SVR">Constant Field Values</a></dd>
  457. </dl>
  458. </li>
  459. </ul>
  460. <a name="GAMMA">
  461. <!-- -->
  462. </a>
  463. <ul class="blockList">
  464. <li class="blockList">
  465. <h4>GAMMA</h4>
  466. <pre>public static final&nbsp;int GAMMA</pre>
  467. <dl>
  468. <dt><span class="seeLabel">See Also:</span></dt>
  469. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.GAMMA">Constant Field Values</a></dd>
  470. </dl>
  471. </li>
  472. </ul>
  473. <a name="INTER">
  474. <!-- -->
  475. </a>
  476. <ul class="blockList">
  477. <li class="blockList">
  478. <h4>INTER</h4>
  479. <pre>public static final&nbsp;int INTER</pre>
  480. <dl>
  481. <dt><span class="seeLabel">See Also:</span></dt>
  482. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.INTER">Constant Field Values</a></dd>
  483. </dl>
  484. </li>
  485. </ul>
  486. <a name="LINEAR">
  487. <!-- -->
  488. </a>
  489. <ul class="blockList">
  490. <li class="blockList">
  491. <h4>LINEAR</h4>
  492. <pre>public static final&nbsp;int LINEAR</pre>
  493. <dl>
  494. <dt><span class="seeLabel">See Also:</span></dt>
  495. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.LINEAR">Constant Field Values</a></dd>
  496. </dl>
  497. </li>
  498. </ul>
  499. <a name="NU">
  500. <!-- -->
  501. </a>
  502. <ul class="blockList">
  503. <li class="blockList">
  504. <h4>NU</h4>
  505. <pre>public static final&nbsp;int NU</pre>
  506. <dl>
  507. <dt><span class="seeLabel">See Also:</span></dt>
  508. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.NU">Constant Field Values</a></dd>
  509. </dl>
  510. </li>
  511. </ul>
  512. <a name="NU_SVC">
  513. <!-- -->
  514. </a>
  515. <ul class="blockList">
  516. <li class="blockList">
  517. <h4>NU_SVC</h4>
  518. <pre>public static final&nbsp;int NU_SVC</pre>
  519. <dl>
  520. <dt><span class="seeLabel">See Also:</span></dt>
  521. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.NU_SVC">Constant Field Values</a></dd>
  522. </dl>
  523. </li>
  524. </ul>
  525. <a name="NU_SVR">
  526. <!-- -->
  527. </a>
  528. <ul class="blockList">
  529. <li class="blockList">
  530. <h4>NU_SVR</h4>
  531. <pre>public static final&nbsp;int NU_SVR</pre>
  532. <dl>
  533. <dt><span class="seeLabel">See Also:</span></dt>
  534. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.NU_SVR">Constant Field Values</a></dd>
  535. </dl>
  536. </li>
  537. </ul>
  538. <a name="ONE_CLASS">
  539. <!-- -->
  540. </a>
  541. <ul class="blockList">
  542. <li class="blockList">
  543. <h4>ONE_CLASS</h4>
  544. <pre>public static final&nbsp;int ONE_CLASS</pre>
  545. <dl>
  546. <dt><span class="seeLabel">See Also:</span></dt>
  547. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.ONE_CLASS">Constant Field Values</a></dd>
  548. </dl>
  549. </li>
  550. </ul>
  551. <a name="P">
  552. <!-- -->
  553. </a>
  554. <ul class="blockList">
  555. <li class="blockList">
  556. <h4>P</h4>
  557. <pre>public static final&nbsp;int P</pre>
  558. <dl>
  559. <dt><span class="seeLabel">See Also:</span></dt>
  560. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.P">Constant Field Values</a></dd>
  561. </dl>
  562. </li>
  563. </ul>
  564. <a name="POLY">
  565. <!-- -->
  566. </a>
  567. <ul class="blockList">
  568. <li class="blockList">
  569. <h4>POLY</h4>
  570. <pre>public static final&nbsp;int POLY</pre>
  571. <dl>
  572. <dt><span class="seeLabel">See Also:</span></dt>
  573. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.POLY">Constant Field Values</a></dd>
  574. </dl>
  575. </li>
  576. </ul>
  577. <a name="RBF">
  578. <!-- -->
  579. </a>
  580. <ul class="blockList">
  581. <li class="blockList">
  582. <h4>RBF</h4>
  583. <pre>public static final&nbsp;int RBF</pre>
  584. <dl>
  585. <dt><span class="seeLabel">See Also:</span></dt>
  586. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.RBF">Constant Field Values</a></dd>
  587. </dl>
  588. </li>
  589. </ul>
  590. <a name="SIGMOID">
  591. <!-- -->
  592. </a>
  593. <ul class="blockListLast">
  594. <li class="blockList">
  595. <h4>SIGMOID</h4>
  596. <pre>public static final&nbsp;int SIGMOID</pre>
  597. <dl>
  598. <dt><span class="seeLabel">See Also:</span></dt>
  599. <dd><a href="../../../constant-values.html#org.opencv.ml.SVM.SIGMOID">Constant Field Values</a></dd>
  600. </dl>
  601. </li>
  602. </ul>
  603. </li>
  604. </ul>
  605. <!-- ============ METHOD DETAIL ========== -->
  606. <ul class="blockList">
  607. <li class="blockList"><a name="method.detail">
  608. <!-- -->
  609. </a>
  610. <h3>Method Detail</h3>
  611. <a name="create--">
  612. <!-- -->
  613. </a>
  614. <ul class="blockList">
  615. <li class="blockList">
  616. <h4>create</h4>
  617. <pre>public static&nbsp;<a href="../../../org/opencv/ml/SVM.html" title="class in org.opencv.ml">SVM</a>&nbsp;create()</pre>
  618. </li>
  619. </ul>
  620. <a name="getC--">
  621. <!-- -->
  622. </a>
  623. <ul class="blockList">
  624. <li class="blockList">
  625. <h4>getC</h4>
  626. <pre>public&nbsp;double&nbsp;getC()</pre>
  627. </li>
  628. </ul>
  629. <a name="getClassWeights--">
  630. <!-- -->
  631. </a>
  632. <ul class="blockList">
  633. <li class="blockList">
  634. <h4>getClassWeights</h4>
  635. <pre>public&nbsp;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;getClassWeights()</pre>
  636. </li>
  637. </ul>
  638. <a name="getCoef0--">
  639. <!-- -->
  640. </a>
  641. <ul class="blockList">
  642. <li class="blockList">
  643. <h4>getCoef0</h4>
  644. <pre>public&nbsp;double&nbsp;getCoef0()</pre>
  645. </li>
  646. </ul>
  647. <a name="getDecisionFunction-int-org.opencv.core.Mat-org.opencv.core.Mat-">
  648. <!-- -->
  649. </a>
  650. <ul class="blockList">
  651. <li class="blockList">
  652. <h4>getDecisionFunction</h4>
  653. <pre>public&nbsp;double&nbsp;getDecisionFunction(int&nbsp;i,
  654. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;alpha,
  655. <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;svidx)</pre>
  656. </li>
  657. </ul>
  658. <a name="getDegree--">
  659. <!-- -->
  660. </a>
  661. <ul class="blockList">
  662. <li class="blockList">
  663. <h4>getDegree</h4>
  664. <pre>public&nbsp;double&nbsp;getDegree()</pre>
  665. </li>
  666. </ul>
  667. <a name="getGamma--">
  668. <!-- -->
  669. </a>
  670. <ul class="blockList">
  671. <li class="blockList">
  672. <h4>getGamma</h4>
  673. <pre>public&nbsp;double&nbsp;getGamma()</pre>
  674. </li>
  675. </ul>
  676. <a name="getKernelType--">
  677. <!-- -->
  678. </a>
  679. <ul class="blockList">
  680. <li class="blockList">
  681. <h4>getKernelType</h4>
  682. <pre>public&nbsp;int&nbsp;getKernelType()</pre>
  683. </li>
  684. </ul>
  685. <a name="getNu--">
  686. <!-- -->
  687. </a>
  688. <ul class="blockList">
  689. <li class="blockList">
  690. <h4>getNu</h4>
  691. <pre>public&nbsp;double&nbsp;getNu()</pre>
  692. </li>
  693. </ul>
  694. <a name="getP--">
  695. <!-- -->
  696. </a>
  697. <ul class="blockList">
  698. <li class="blockList">
  699. <h4>getP</h4>
  700. <pre>public&nbsp;double&nbsp;getP()</pre>
  701. </li>
  702. </ul>
  703. <a name="getSupportVectors--">
  704. <!-- -->
  705. </a>
  706. <ul class="blockList">
  707. <li class="blockList">
  708. <h4>getSupportVectors</h4>
  709. <pre>public&nbsp;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;getSupportVectors()</pre>
  710. </li>
  711. </ul>
  712. <a name="getTermCriteria--">
  713. <!-- -->
  714. </a>
  715. <ul class="blockList">
  716. <li class="blockList">
  717. <h4>getTermCriteria</h4>
  718. <pre>public&nbsp;<a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a>&nbsp;getTermCriteria()</pre>
  719. </li>
  720. </ul>
  721. <a name="getType--">
  722. <!-- -->
  723. </a>
  724. <ul class="blockList">
  725. <li class="blockList">
  726. <h4>getType</h4>
  727. <pre>public&nbsp;int&nbsp;getType()</pre>
  728. </li>
  729. </ul>
  730. <a name="getUncompressedSupportVectors--">
  731. <!-- -->
  732. </a>
  733. <ul class="blockList">
  734. <li class="blockList">
  735. <h4>getUncompressedSupportVectors</h4>
  736. <pre>public&nbsp;<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;getUncompressedSupportVectors()</pre>
  737. </li>
  738. </ul>
  739. <a name="setC-double-">
  740. <!-- -->
  741. </a>
  742. <ul class="blockList">
  743. <li class="blockList">
  744. <h4>setC</h4>
  745. <pre>public&nbsp;void&nbsp;setC(double&nbsp;val)</pre>
  746. </li>
  747. </ul>
  748. <a name="setClassWeights-org.opencv.core.Mat-">
  749. <!-- -->
  750. </a>
  751. <ul class="blockList">
  752. <li class="blockList">
  753. <h4>setClassWeights</h4>
  754. <pre>public&nbsp;void&nbsp;setClassWeights(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;val)</pre>
  755. </li>
  756. </ul>
  757. <a name="setCoef0-double-">
  758. <!-- -->
  759. </a>
  760. <ul class="blockList">
  761. <li class="blockList">
  762. <h4>setCoef0</h4>
  763. <pre>public&nbsp;void&nbsp;setCoef0(double&nbsp;val)</pre>
  764. </li>
  765. </ul>
  766. <a name="setDegree-double-">
  767. <!-- -->
  768. </a>
  769. <ul class="blockList">
  770. <li class="blockList">
  771. <h4>setDegree</h4>
  772. <pre>public&nbsp;void&nbsp;setDegree(double&nbsp;val)</pre>
  773. </li>
  774. </ul>
  775. <a name="setGamma-double-">
  776. <!-- -->
  777. </a>
  778. <ul class="blockList">
  779. <li class="blockList">
  780. <h4>setGamma</h4>
  781. <pre>public&nbsp;void&nbsp;setGamma(double&nbsp;val)</pre>
  782. </li>
  783. </ul>
  784. <a name="setKernel-int-">
  785. <!-- -->
  786. </a>
  787. <ul class="blockList">
  788. <li class="blockList">
  789. <h4>setKernel</h4>
  790. <pre>public&nbsp;void&nbsp;setKernel(int&nbsp;kernelType)</pre>
  791. </li>
  792. </ul>
  793. <a name="setNu-double-">
  794. <!-- -->
  795. </a>
  796. <ul class="blockList">
  797. <li class="blockList">
  798. <h4>setNu</h4>
  799. <pre>public&nbsp;void&nbsp;setNu(double&nbsp;val)</pre>
  800. </li>
  801. </ul>
  802. <a name="setP-double-">
  803. <!-- -->
  804. </a>
  805. <ul class="blockList">
  806. <li class="blockList">
  807. <h4>setP</h4>
  808. <pre>public&nbsp;void&nbsp;setP(double&nbsp;val)</pre>
  809. </li>
  810. </ul>
  811. <a name="setTermCriteria-org.opencv.core.TermCriteria-">
  812. <!-- -->
  813. </a>
  814. <ul class="blockList">
  815. <li class="blockList">
  816. <h4>setTermCriteria</h4>
  817. <pre>public&nbsp;void&nbsp;setTermCriteria(<a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a>&nbsp;val)</pre>
  818. </li>
  819. </ul>
  820. <a name="setType-int-">
  821. <!-- -->
  822. </a>
  823. <ul class="blockListLast">
  824. <li class="blockList">
  825. <h4>setType</h4>
  826. <pre>public&nbsp;void&nbsp;setType(int&nbsp;val)</pre>
  827. </li>
  828. </ul>
  829. </li>
  830. </ul>
  831. </li>
  832. </ul>
  833. </div>
  834. </div>
  835. <!-- ========= END OF CLASS DATA ========= -->
  836. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  837. <div class="bottomNav"><a name="navbar.bottom">
  838. <!-- -->
  839. </a>
  840. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  841. <a name="navbar.bottom.firstrow">
  842. <!-- -->
  843. </a>
  844. <ul class="navList" title="Navigation">
  845. <li><a href="../../../overview-summary.html">Overview</a></li>
  846. <li><a href="package-summary.html">Package</a></li>
  847. <li class="navBarCell1Rev">Class</li>
  848. <li><a href="package-tree.html">Tree</a></li>
  849. <li><a href="../../../index-all.html">Index</a></li>
  850. <li><a href="../../../help-doc.html">Help</a></li>
  851. </ul>
  852. <div class="aboutLanguage"><a href="http://docs.opencv.org">OpenCV 3.1.0 Documentation</a></div>
  853. </div>
  854. <div class="subNav">
  855. <ul class="navList">
  856. <li><a href="../../../org/opencv/ml/StatModel.html" title="class in org.opencv.ml"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  857. <li><a href="../../../org/opencv/ml/TrainData.html" title="class in org.opencv.ml"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  858. </ul>
  859. <ul class="navList">
  860. <li><a href="../../../index.html?org/opencv/ml/SVM.html" target="_top">Frames</a></li>
  861. <li><a href="SVM.html" target="_top">No&nbsp;Frames</a></li>
  862. </ul>
  863. <ul class="navList" id="allclasses_navbar_bottom">
  864. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  865. </ul>
  866. <div>
  867. <script type="text/javascript"><!--
  868. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  869. if(window==top) {
  870. allClassesLink.style.display = "block";
  871. }
  872. else {
  873. allClassesLink.style.display = "none";
  874. }
  875. //-->
  876. </script>
  877. </div>
  878. <div>
  879. <ul class="subNavList">
  880. <li>Summary:&nbsp;</li>
  881. <li>Nested&nbsp;|&nbsp;</li>
  882. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  883. <li>Constr&nbsp;|&nbsp;</li>
  884. <li><a href="#method.summary">Method</a></li>
  885. </ul>
  886. <ul class="subNavList">
  887. <li>Detail:&nbsp;</li>
  888. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  889. <li>Constr&nbsp;|&nbsp;</li>
  890. <li><a href="#method.detail">Method</a></li>
  891. </ul>
  892. </div>
  893. <a name="skip.navbar.bottom">
  894. <!-- -->
  895. </a></div>
  896. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  897. </body>
  898. </html>