| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <!-- NewPage -->
- <html lang="en">
- <head>
- <!-- Generated by javadoc (1.8.0_312) on Wed Jun 28 12:47:24 UTC 2023 -->
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>Video (OpenCV 4.8.0 Java documentation)</title>
- <meta name="date" content="2023-06-28">
- <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
- <script type="text/javascript" src="../../../script.js"></script>
- </head>
- <body>
- <script type="text/javascript"><!--
- try {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="Video (OpenCV 4.8.0 Java documentation)";
- }
- }
- catch(err) {
- }
- //-->
- var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9};
- var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
- var altColor = "altColor";
- var rowColor = "rowColor";
- var tableTab = "tableTab";
- var activeTableTab = "activeTableTab";
- </script>
- <noscript>
- <div>JavaScript is disabled on your browser.</div>
- </noscript>
- <!-- ========= START OF TOP NAVBAR ======= -->
- <div class="topNav"><a name="navbar.top">
- <!-- -->
- </a>
- <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
- <a name="navbar.top.firstrow">
- <!-- -->
- </a>
- <ul class="navList" title="Navigation">
- <li><a href="../../../overview-summary.html">Overview</a></li>
- <li><a href="package-summary.html">Package</a></li>
- <li class="navBarCell1Rev">Class</li>
- <li><a href="package-tree.html">Tree</a></li>
- <li><a href="../../../index-all.html">Index</a></li>
- <li><a href="../../../help-doc.html">Help</a></li>
- </ul>
- <div class="aboutLanguage">
- <script>
- var url = window.location.href;
- var pos = url.lastIndexOf('/javadoc/');
- url = pos >= 0 ? (url.substring(0, pos) + '/javadoc/mymath.js') : (window.location.origin + '/mymath.js');
- var script = document.createElement('script');
- script.src = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML,' + url;
- document.getElementsByTagName('head')[0].appendChild(script);
- </script>
- </div>
- </div>
- <div class="subNav">
- <ul class="navList">
- <li><a href="../../../org/opencv/video/VariationalRefinement.html" title="class in org.opencv.video"><span class="typeNameLink">Prev Class</span></a></li>
- <li>Next Class</li>
- </ul>
- <ul class="navList">
- <li><a href="../../../index.html?org/opencv/video/Video.html" target="_top">Frames</a></li>
- <li><a href="Video.html" target="_top">No Frames</a></li>
- </ul>
- <ul class="navList" id="allclasses_navbar_top">
- <li><a href="../../../allclasses-noframe.html">All Classes</a></li>
- </ul>
- <div>
- <script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_top");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
- </script>
- </div>
- <div>
- <ul class="subNavList">
- <li>Summary: </li>
- <li>Nested | </li>
- <li><a href="#field.summary">Field</a> | </li>
- <li><a href="#constructor.summary">Constr</a> | </li>
- <li><a href="#method.summary">Method</a></li>
- </ul>
- <ul class="subNavList">
- <li>Detail: </li>
- <li><a href="#field.detail">Field</a> | </li>
- <li><a href="#constructor.detail">Constr</a> | </li>
- <li><a href="#method.detail">Method</a></li>
- </ul>
- </div>
- <a name="skip.navbar.top">
- <!-- -->
- </a></div>
- <!-- ========= END OF TOP NAVBAR ========= -->
- <!-- ======== START OF CLASS DATA ======== -->
- <div class="header">
- <div class="subTitle">org.opencv.video</div>
- <h2 title="Class Video" class="title">Class Video</h2>
- </div>
- <div class="contentContainer">
- <ul class="inheritance">
- <li>java.lang.Object</li>
- <li>
- <ul class="inheritance">
- <li>org.opencv.video.Video</li>
- </ul>
- </li>
- </ul>
- <div class="description">
- <ul class="blockList">
- <li class="blockList">
- <hr>
- <br>
- <pre>public class <span class="typeNameLabel">Video</span>
- extends java.lang.Object</pre>
- </li>
- </ul>
- </div>
- <div class="summary">
- <ul class="blockList">
- <li class="blockList">
- <!-- =========== FIELD SUMMARY =========== -->
- <ul class="blockList">
- <li class="blockList"><a name="field.summary">
- <!-- -->
- </a>
- <h3>Field Summary</h3>
- <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
- <caption><span>Fields</span><span class="tabEnd"> </span></caption>
- <tr>
- <th class="colFirst" scope="col">Modifier and Type</th>
- <th class="colLast" scope="col">Field and Description</th>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#MOTION_AFFINE">MOTION_AFFINE</a></span></code> </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#MOTION_EUCLIDEAN">MOTION_EUCLIDEAN</a></span></code> </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#MOTION_HOMOGRAPHY">MOTION_HOMOGRAPHY</a></span></code> </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#MOTION_TRANSLATION">MOTION_TRANSLATION</a></span></code> </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#OPTFLOW_FARNEBACK_GAUSSIAN">OPTFLOW_FARNEBACK_GAUSSIAN</a></span></code> </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#OPTFLOW_LK_GET_MIN_EIGENVALS">OPTFLOW_LK_GET_MIN_EIGENVALS</a></span></code> </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#OPTFLOW_USE_INITIAL_FLOW">OPTFLOW_USE_INITIAL_FLOW</a></span></code> </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#TrackerSamplerCSC_MODE_DETECT">TrackerSamplerCSC_MODE_DETECT</a></span></code> </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#TrackerSamplerCSC_MODE_INIT_NEG">TrackerSamplerCSC_MODE_INIT_NEG</a></span></code> </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#TrackerSamplerCSC_MODE_INIT_POS">TrackerSamplerCSC_MODE_INIT_POS</a></span></code> </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#TrackerSamplerCSC_MODE_TRACK_NEG">TrackerSamplerCSC_MODE_TRACK_NEG</a></span></code> </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#TrackerSamplerCSC_MODE_TRACK_POS">TrackerSamplerCSC_MODE_TRACK_POS</a></span></code> </td>
- </tr>
- </table>
- </li>
- </ul>
- <!-- ======== CONSTRUCTOR SUMMARY ======== -->
- <ul class="blockList">
- <li class="blockList"><a name="constructor.summary">
- <!-- -->
- </a>
- <h3>Constructor Summary</h3>
- <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
- <caption><span>Constructors</span><span class="tabEnd"> </span></caption>
- <tr>
- <th class="colOne" scope="col">Constructor and Description</th>
- </tr>
- <tr class="altColor">
- <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#Video--">Video</a></span>()</code> </td>
- </tr>
- </table>
- </li>
- </ul>
- <!-- ========== METHOD SUMMARY =========== -->
- <ul class="blockList">
- <li class="blockList"><a name="method.summary">
- <!-- -->
- </a>
- <h3>Method Summary</h3>
- <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
- <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
- <tr>
- <th class="colFirst" scope="col">Modifier and Type</th>
- <th class="colLast" scope="col">Method and Description</th>
- </tr>
- <tr id="i0" class="altColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#buildOpticalFlowPyramid-org.opencv.core.Mat-java.util.List-org.opencv.core.Size-int-">buildOpticalFlowPyramid</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> img,
- java.util.List<<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>> pyramid,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel)</code>
- <div class="block">Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.</div>
- </td>
- </tr>
- <tr id="i1" class="rowColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#buildOpticalFlowPyramid-org.opencv.core.Mat-java.util.List-org.opencv.core.Size-int-boolean-">buildOpticalFlowPyramid</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> img,
- java.util.List<<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>> pyramid,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel,
- boolean withDerivatives)</code>
- <div class="block">Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.</div>
- </td>
- </tr>
- <tr id="i2" class="altColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#buildOpticalFlowPyramid-org.opencv.core.Mat-java.util.List-org.opencv.core.Size-int-boolean-int-">buildOpticalFlowPyramid</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> img,
- java.util.List<<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>> pyramid,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel,
- boolean withDerivatives,
- int pyrBorder)</code>
- <div class="block">Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.</div>
- </td>
- </tr>
- <tr id="i3" class="rowColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#buildOpticalFlowPyramid-org.opencv.core.Mat-java.util.List-org.opencv.core.Size-int-boolean-int-int-">buildOpticalFlowPyramid</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> img,
- java.util.List<<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>> pyramid,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel,
- boolean withDerivatives,
- int pyrBorder,
- int derivBorder)</code>
- <div class="block">Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.</div>
- </td>
- </tr>
- <tr id="i4" class="altColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#buildOpticalFlowPyramid-org.opencv.core.Mat-java.util.List-org.opencv.core.Size-int-boolean-int-int-boolean-">buildOpticalFlowPyramid</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> img,
- java.util.List<<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>> pyramid,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel,
- boolean withDerivatives,
- int pyrBorder,
- int derivBorder,
- boolean tryReuseInputImage)</code>
- <div class="block">Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.</div>
- </td>
- </tr>
- <tr id="i5" class="rowColor">
- <td class="colFirst"><code>static void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#calcOpticalFlowFarneback-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-double-int-int-int-int-double-int-">calcOpticalFlowFarneback</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> prev,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> next,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> flow,
- double pyr_scale,
- int levels,
- int winsize,
- int iterations,
- int poly_n,
- double poly_sigma,
- int flags)</code>
- <div class="block">Computes a dense optical flow using the Gunnar Farneback's algorithm.</div>
- </td>
- </tr>
- <tr id="i6" class="altColor">
- <td class="colFirst"><code>static void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#calcOpticalFlowPyrLK-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfByte-org.opencv.core.MatOfFloat-">calcOpticalFlowPyrLK</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> prevImg,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> nextImg,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> prevPts,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> nextPts,
- <a href="../../../org/opencv/core/MatOfByte.html" title="class in org.opencv.core">MatOfByte</a> status,
- <a href="../../../org/opencv/core/MatOfFloat.html" title="class in org.opencv.core">MatOfFloat</a> err)</code>
- <div class="block">Calculates an optical flow for a sparse feature set using the iterative Lucas-Kanade method with
- pyramids.</div>
- </td>
- </tr>
- <tr id="i7" class="rowColor">
- <td class="colFirst"><code>static void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#calcOpticalFlowPyrLK-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfByte-org.opencv.core.MatOfFloat-org.opencv.core.Size-">calcOpticalFlowPyrLK</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> prevImg,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> nextImg,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> prevPts,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> nextPts,
- <a href="../../../org/opencv/core/MatOfByte.html" title="class in org.opencv.core">MatOfByte</a> status,
- <a href="../../../org/opencv/core/MatOfFloat.html" title="class in org.opencv.core">MatOfFloat</a> err,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize)</code>
- <div class="block">Calculates an optical flow for a sparse feature set using the iterative Lucas-Kanade method with
- pyramids.</div>
- </td>
- </tr>
- <tr id="i8" class="altColor">
- <td class="colFirst"><code>static void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#calcOpticalFlowPyrLK-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfByte-org.opencv.core.MatOfFloat-org.opencv.core.Size-int-">calcOpticalFlowPyrLK</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> prevImg,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> nextImg,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> prevPts,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> nextPts,
- <a href="../../../org/opencv/core/MatOfByte.html" title="class in org.opencv.core">MatOfByte</a> status,
- <a href="../../../org/opencv/core/MatOfFloat.html" title="class in org.opencv.core">MatOfFloat</a> err,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel)</code>
- <div class="block">Calculates an optical flow for a sparse feature set using the iterative Lucas-Kanade method with
- pyramids.</div>
- </td>
- </tr>
- <tr id="i9" class="rowColor">
- <td class="colFirst"><code>static void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#calcOpticalFlowPyrLK-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfByte-org.opencv.core.MatOfFloat-org.opencv.core.Size-int-org.opencv.core.TermCriteria-">calcOpticalFlowPyrLK</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> prevImg,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> nextImg,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> prevPts,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> nextPts,
- <a href="../../../org/opencv/core/MatOfByte.html" title="class in org.opencv.core">MatOfByte</a> status,
- <a href="../../../org/opencv/core/MatOfFloat.html" title="class in org.opencv.core">MatOfFloat</a> err,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria)</code>
- <div class="block">Calculates an optical flow for a sparse feature set using the iterative Lucas-Kanade method with
- pyramids.</div>
- </td>
- </tr>
- <tr id="i10" class="altColor">
- <td class="colFirst"><code>static void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#calcOpticalFlowPyrLK-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfByte-org.opencv.core.MatOfFloat-org.opencv.core.Size-int-org.opencv.core.TermCriteria-int-">calcOpticalFlowPyrLK</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> prevImg,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> nextImg,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> prevPts,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> nextPts,
- <a href="../../../org/opencv/core/MatOfByte.html" title="class in org.opencv.core">MatOfByte</a> status,
- <a href="../../../org/opencv/core/MatOfFloat.html" title="class in org.opencv.core">MatOfFloat</a> err,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria,
- int flags)</code>
- <div class="block">Calculates an optical flow for a sparse feature set using the iterative Lucas-Kanade method with
- pyramids.</div>
- </td>
- </tr>
- <tr id="i11" class="rowColor">
- <td class="colFirst"><code>static void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#calcOpticalFlowPyrLK-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfByte-org.opencv.core.MatOfFloat-org.opencv.core.Size-int-org.opencv.core.TermCriteria-int-double-">calcOpticalFlowPyrLK</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> prevImg,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> nextImg,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> prevPts,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> nextPts,
- <a href="../../../org/opencv/core/MatOfByte.html" title="class in org.opencv.core">MatOfByte</a> status,
- <a href="../../../org/opencv/core/MatOfFloat.html" title="class in org.opencv.core">MatOfFloat</a> err,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria,
- int flags,
- double minEigThreshold)</code>
- <div class="block">Calculates an optical flow for a sparse feature set using the iterative Lucas-Kanade method with
- pyramids.</div>
- </td>
- </tr>
- <tr id="i12" class="altColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/core/RotatedRect.html" title="class in org.opencv.core">RotatedRect</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#CamShift-org.opencv.core.Mat-org.opencv.core.Rect-org.opencv.core.TermCriteria-">CamShift</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> probImage,
- <a href="../../../org/opencv/core/Rect.html" title="class in org.opencv.core">Rect</a> window,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria)</code>
- <div class="block">Finds an object center, size, and orientation.</div>
- </td>
- </tr>
- <tr id="i13" class="rowColor">
- <td class="colFirst"><code>static double</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#computeECC-org.opencv.core.Mat-org.opencv.core.Mat-">computeECC</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> templateImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputImage)</code>
- <div class="block">Computes the Enhanced Correlation Coefficient value between two images CITE: EP08 .</div>
- </td>
- </tr>
- <tr id="i14" class="altColor">
- <td class="colFirst"><code>static double</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#computeECC-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-">computeECC</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> templateImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputMask)</code>
- <div class="block">Computes the Enhanced Correlation Coefficient value between two images CITE: EP08 .</div>
- </td>
- </tr>
- <tr id="i15" class="rowColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/video/BackgroundSubtractorKNN.html" title="class in org.opencv.video">BackgroundSubtractorKNN</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#createBackgroundSubtractorKNN--">createBackgroundSubtractorKNN</a></span>()</code>
- <div class="block">Creates KNN Background Subtractor
- whether a pixel is close to that sample.</div>
- </td>
- </tr>
- <tr id="i16" class="altColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/video/BackgroundSubtractorKNN.html" title="class in org.opencv.video">BackgroundSubtractorKNN</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#createBackgroundSubtractorKNN-int-">createBackgroundSubtractorKNN</a></span>(int history)</code>
- <div class="block">Creates KNN Background Subtractor</div>
- </td>
- </tr>
- <tr id="i17" class="rowColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/video/BackgroundSubtractorKNN.html" title="class in org.opencv.video">BackgroundSubtractorKNN</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#createBackgroundSubtractorKNN-int-double-">createBackgroundSubtractorKNN</a></span>(int history,
- double dist2Threshold)</code>
- <div class="block">Creates KNN Background Subtractor</div>
- </td>
- </tr>
- <tr id="i18" class="altColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/video/BackgroundSubtractorKNN.html" title="class in org.opencv.video">BackgroundSubtractorKNN</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#createBackgroundSubtractorKNN-int-double-boolean-">createBackgroundSubtractorKNN</a></span>(int history,
- double dist2Threshold,
- boolean detectShadows)</code>
- <div class="block">Creates KNN Background Subtractor</div>
- </td>
- </tr>
- <tr id="i19" class="rowColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/video/BackgroundSubtractorMOG2.html" title="class in org.opencv.video">BackgroundSubtractorMOG2</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#createBackgroundSubtractorMOG2--">createBackgroundSubtractorMOG2</a></span>()</code>
- <div class="block">Creates MOG2 Background Subtractor
- to decide whether a pixel is well described by the background model.</div>
- </td>
- </tr>
- <tr id="i20" class="altColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/video/BackgroundSubtractorMOG2.html" title="class in org.opencv.video">BackgroundSubtractorMOG2</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#createBackgroundSubtractorMOG2-int-">createBackgroundSubtractorMOG2</a></span>(int history)</code>
- <div class="block">Creates MOG2 Background Subtractor</div>
- </td>
- </tr>
- <tr id="i21" class="rowColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/video/BackgroundSubtractorMOG2.html" title="class in org.opencv.video">BackgroundSubtractorMOG2</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#createBackgroundSubtractorMOG2-int-double-">createBackgroundSubtractorMOG2</a></span>(int history,
- double varThreshold)</code>
- <div class="block">Creates MOG2 Background Subtractor</div>
- </td>
- </tr>
- <tr id="i22" class="altColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/video/BackgroundSubtractorMOG2.html" title="class in org.opencv.video">BackgroundSubtractorMOG2</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#createBackgroundSubtractorMOG2-int-double-boolean-">createBackgroundSubtractorMOG2</a></span>(int history,
- double varThreshold,
- boolean detectShadows)</code>
- <div class="block">Creates MOG2 Background Subtractor</div>
- </td>
- </tr>
- <tr id="i23" class="rowColor">
- <td class="colFirst"><code>static double</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#findTransformECC-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-">findTransformECC</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> templateImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> warpMatrix)</code> </td>
- </tr>
- <tr id="i24" class="altColor">
- <td class="colFirst"><code>static double</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#findTransformECC-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-int-">findTransformECC</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> templateImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> warpMatrix,
- int motionType)</code> </td>
- </tr>
- <tr id="i25" class="rowColor">
- <td class="colFirst"><code>static double</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#findTransformECC-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-int-org.opencv.core.TermCriteria-">findTransformECC</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> templateImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> warpMatrix,
- int motionType,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria)</code> </td>
- </tr>
- <tr id="i26" class="altColor">
- <td class="colFirst"><code>static double</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#findTransformECC-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-int-org.opencv.core.TermCriteria-org.opencv.core.Mat-">findTransformECC</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> templateImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> warpMatrix,
- int motionType,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputMask)</code> </td>
- </tr>
- <tr id="i27" class="rowColor">
- <td class="colFirst"><code>static double</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#findTransformECC-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-int-org.opencv.core.TermCriteria-org.opencv.core.Mat-int-">findTransformECC</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> templateImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> warpMatrix,
- int motionType,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputMask,
- int gaussFiltSize)</code>
- <div class="block">Finds the geometric transform (warp) between two images in terms of the ECC criterion CITE: EP08 .</div>
- </td>
- </tr>
- <tr id="i28" class="altColor">
- <td class="colFirst"><code>static int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#meanShift-org.opencv.core.Mat-org.opencv.core.Rect-org.opencv.core.TermCriteria-">meanShift</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> probImage,
- <a href="../../../org/opencv/core/Rect.html" title="class in org.opencv.core">Rect</a> window,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria)</code>
- <div class="block">Finds an object on a back projection image.</div>
- </td>
- </tr>
- <tr id="i29" class="rowColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#readOpticalFlow-java.lang.String-">readOpticalFlow</a></span>(java.lang.String path)</code>
- <div class="block">Read a .flo file</div>
- </td>
- </tr>
- <tr id="i30" class="altColor">
- <td class="colFirst"><code>static boolean</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/video/Video.html#writeOpticalFlow-java.lang.String-org.opencv.core.Mat-">writeOpticalFlow</a></span>(java.lang.String path,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> flow)</code>
- <div class="block">Write a .flo to disk</div>
- </td>
- </tr>
- </table>
- <ul class="blockList">
- <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
- <!-- -->
- </a>
- <h3>Methods inherited from class java.lang.Object</h3>
- <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- <div class="details">
- <ul class="blockList">
- <li class="blockList">
- <!-- ============ FIELD DETAIL =========== -->
- <ul class="blockList">
- <li class="blockList"><a name="field.detail">
- <!-- -->
- </a>
- <h3>Field Detail</h3>
- <a name="MOTION_AFFINE">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>MOTION_AFFINE</h4>
- <pre>public static final int MOTION_AFFINE</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.video.Video.MOTION_AFFINE">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="MOTION_EUCLIDEAN">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>MOTION_EUCLIDEAN</h4>
- <pre>public static final int MOTION_EUCLIDEAN</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.video.Video.MOTION_EUCLIDEAN">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="MOTION_HOMOGRAPHY">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>MOTION_HOMOGRAPHY</h4>
- <pre>public static final int MOTION_HOMOGRAPHY</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.video.Video.MOTION_HOMOGRAPHY">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="MOTION_TRANSLATION">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>MOTION_TRANSLATION</h4>
- <pre>public static final int MOTION_TRANSLATION</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.video.Video.MOTION_TRANSLATION">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="OPTFLOW_FARNEBACK_GAUSSIAN">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>OPTFLOW_FARNEBACK_GAUSSIAN</h4>
- <pre>public static final int OPTFLOW_FARNEBACK_GAUSSIAN</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.video.Video.OPTFLOW_FARNEBACK_GAUSSIAN">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="OPTFLOW_LK_GET_MIN_EIGENVALS">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>OPTFLOW_LK_GET_MIN_EIGENVALS</h4>
- <pre>public static final int OPTFLOW_LK_GET_MIN_EIGENVALS</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.video.Video.OPTFLOW_LK_GET_MIN_EIGENVALS">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="OPTFLOW_USE_INITIAL_FLOW">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>OPTFLOW_USE_INITIAL_FLOW</h4>
- <pre>public static final int OPTFLOW_USE_INITIAL_FLOW</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.video.Video.OPTFLOW_USE_INITIAL_FLOW">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="TrackerSamplerCSC_MODE_DETECT">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>TrackerSamplerCSC_MODE_DETECT</h4>
- <pre>public static final int TrackerSamplerCSC_MODE_DETECT</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.video.Video.TrackerSamplerCSC_MODE_DETECT">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="TrackerSamplerCSC_MODE_INIT_NEG">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>TrackerSamplerCSC_MODE_INIT_NEG</h4>
- <pre>public static final int TrackerSamplerCSC_MODE_INIT_NEG</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.video.Video.TrackerSamplerCSC_MODE_INIT_NEG">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="TrackerSamplerCSC_MODE_INIT_POS">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>TrackerSamplerCSC_MODE_INIT_POS</h4>
- <pre>public static final int TrackerSamplerCSC_MODE_INIT_POS</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.video.Video.TrackerSamplerCSC_MODE_INIT_POS">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="TrackerSamplerCSC_MODE_TRACK_NEG">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>TrackerSamplerCSC_MODE_TRACK_NEG</h4>
- <pre>public static final int TrackerSamplerCSC_MODE_TRACK_NEG</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.video.Video.TrackerSamplerCSC_MODE_TRACK_NEG">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="TrackerSamplerCSC_MODE_TRACK_POS">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>TrackerSamplerCSC_MODE_TRACK_POS</h4>
- <pre>public static final int TrackerSamplerCSC_MODE_TRACK_POS</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.video.Video.TrackerSamplerCSC_MODE_TRACK_POS">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- </li>
- </ul>
- <!-- ========= CONSTRUCTOR DETAIL ======== -->
- <ul class="blockList">
- <li class="blockList"><a name="constructor.detail">
- <!-- -->
- </a>
- <h3>Constructor Detail</h3>
- <a name="Video--">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>Video</h4>
- <pre>public Video()</pre>
- </li>
- </ul>
- </li>
- </ul>
- <!-- ============ METHOD DETAIL ========== -->
- <ul class="blockList">
- <li class="blockList"><a name="method.detail">
- <!-- -->
- </a>
- <h3>Method Detail</h3>
- <a name="buildOpticalFlowPyramid-org.opencv.core.Mat-java.util.List-org.opencv.core.Size-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>buildOpticalFlowPyramid</h4>
- <pre>public static int buildOpticalFlowPyramid(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> img,
- java.util.List<<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>> pyramid,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel)</pre>
- <div class="block">Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>img</code> - 8-bit input image.</dd>
- <dd><code>pyramid</code> - output pyramid.</dd>
- <dd><code>winSize</code> - window size of optical flow algorithm. Must be not less than winSize argument of
- calcOpticalFlowPyrLK. It is needed to calculate required padding for pyramid levels.</dd>
- <dd><code>maxLevel</code> - 0-based maximal pyramid level number.
- constructed without the gradients then calcOpticalFlowPyrLK will calculate them internally.
- to force data copying.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>number of levels in constructed pyramid. Can be less than maxLevel.</dd>
- </dl>
- </li>
- </ul>
- <a name="buildOpticalFlowPyramid-org.opencv.core.Mat-java.util.List-org.opencv.core.Size-int-boolean-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>buildOpticalFlowPyramid</h4>
- <pre>public static int buildOpticalFlowPyramid(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> img,
- java.util.List<<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>> pyramid,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel,
- boolean withDerivatives)</pre>
- <div class="block">Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>img</code> - 8-bit input image.</dd>
- <dd><code>pyramid</code> - output pyramid.</dd>
- <dd><code>winSize</code> - window size of optical flow algorithm. Must be not less than winSize argument of
- calcOpticalFlowPyrLK. It is needed to calculate required padding for pyramid levels.</dd>
- <dd><code>maxLevel</code> - 0-based maximal pyramid level number.</dd>
- <dd><code>withDerivatives</code> - set to precompute gradients for the every pyramid level. If pyramid is
- constructed without the gradients then calcOpticalFlowPyrLK will calculate them internally.
- to force data copying.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>number of levels in constructed pyramid. Can be less than maxLevel.</dd>
- </dl>
- </li>
- </ul>
- <a name="buildOpticalFlowPyramid-org.opencv.core.Mat-java.util.List-org.opencv.core.Size-int-boolean-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>buildOpticalFlowPyramid</h4>
- <pre>public static int buildOpticalFlowPyramid(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> img,
- java.util.List<<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>> pyramid,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel,
- boolean withDerivatives,
- int pyrBorder)</pre>
- <div class="block">Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>img</code> - 8-bit input image.</dd>
- <dd><code>pyramid</code> - output pyramid.</dd>
- <dd><code>winSize</code> - window size of optical flow algorithm. Must be not less than winSize argument of
- calcOpticalFlowPyrLK. It is needed to calculate required padding for pyramid levels.</dd>
- <dd><code>maxLevel</code> - 0-based maximal pyramid level number.</dd>
- <dd><code>withDerivatives</code> - set to precompute gradients for the every pyramid level. If pyramid is
- constructed without the gradients then calcOpticalFlowPyrLK will calculate them internally.</dd>
- <dd><code>pyrBorder</code> - the border mode for pyramid layers.
- to force data copying.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>number of levels in constructed pyramid. Can be less than maxLevel.</dd>
- </dl>
- </li>
- </ul>
- <a name="buildOpticalFlowPyramid-org.opencv.core.Mat-java.util.List-org.opencv.core.Size-int-boolean-int-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>buildOpticalFlowPyramid</h4>
- <pre>public static int buildOpticalFlowPyramid(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> img,
- java.util.List<<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>> pyramid,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel,
- boolean withDerivatives,
- int pyrBorder,
- int derivBorder)</pre>
- <div class="block">Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>img</code> - 8-bit input image.</dd>
- <dd><code>pyramid</code> - output pyramid.</dd>
- <dd><code>winSize</code> - window size of optical flow algorithm. Must be not less than winSize argument of
- calcOpticalFlowPyrLK. It is needed to calculate required padding for pyramid levels.</dd>
- <dd><code>maxLevel</code> - 0-based maximal pyramid level number.</dd>
- <dd><code>withDerivatives</code> - set to precompute gradients for the every pyramid level. If pyramid is
- constructed without the gradients then calcOpticalFlowPyrLK will calculate them internally.</dd>
- <dd><code>pyrBorder</code> - the border mode for pyramid layers.</dd>
- <dd><code>derivBorder</code> - the border mode for gradients.
- to force data copying.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>number of levels in constructed pyramid. Can be less than maxLevel.</dd>
- </dl>
- </li>
- </ul>
- <a name="buildOpticalFlowPyramid-org.opencv.core.Mat-java.util.List-org.opencv.core.Size-int-boolean-int-int-boolean-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>buildOpticalFlowPyramid</h4>
- <pre>public static int buildOpticalFlowPyramid(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> img,
- java.util.List<<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>> pyramid,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel,
- boolean withDerivatives,
- int pyrBorder,
- int derivBorder,
- boolean tryReuseInputImage)</pre>
- <div class="block">Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>img</code> - 8-bit input image.</dd>
- <dd><code>pyramid</code> - output pyramid.</dd>
- <dd><code>winSize</code> - window size of optical flow algorithm. Must be not less than winSize argument of
- calcOpticalFlowPyrLK. It is needed to calculate required padding for pyramid levels.</dd>
- <dd><code>maxLevel</code> - 0-based maximal pyramid level number.</dd>
- <dd><code>withDerivatives</code> - set to precompute gradients for the every pyramid level. If pyramid is
- constructed without the gradients then calcOpticalFlowPyrLK will calculate them internally.</dd>
- <dd><code>pyrBorder</code> - the border mode for pyramid layers.</dd>
- <dd><code>derivBorder</code> - the border mode for gradients.</dd>
- <dd><code>tryReuseInputImage</code> - put ROI of input image into the pyramid if possible. You can pass false
- to force data copying.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>number of levels in constructed pyramid. Can be less than maxLevel.</dd>
- </dl>
- </li>
- </ul>
- <a name="calcOpticalFlowFarneback-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-double-int-int-int-int-double-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>calcOpticalFlowFarneback</h4>
- <pre>public static void calcOpticalFlowFarneback(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> prev,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> next,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> flow,
- double pyr_scale,
- int levels,
- int winsize,
- int iterations,
- int poly_n,
- double poly_sigma,
- int flags)</pre>
- <div class="block">Computes a dense optical flow using the Gunnar Farneback's algorithm.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>prev</code> - first 8-bit single-channel input image.</dd>
- <dd><code>next</code> - second input image of the same size and the same type as prev.</dd>
- <dd><code>flow</code> - computed flow image that has the same size as prev and type CV_32FC2.</dd>
- <dd><code>pyr_scale</code> - parameter, specifying the image scale (<1) to build pyramids for each image;
- pyr_scale=0.5 means a classical pyramid, where each next layer is twice smaller than the previous
- one.</dd>
- <dd><code>levels</code> - number of pyramid layers including the initial image; levels=1 means that no extra
- layers are created and only the original images are used.</dd>
- <dd><code>winsize</code> - averaging window size; larger values increase the algorithm robustness to image
- noise and give more chances for fast motion detection, but yield more blurred motion field.</dd>
- <dd><code>iterations</code> - number of iterations the algorithm does at each pyramid level.</dd>
- <dd><code>poly_n</code> - size of the pixel neighborhood used to find polynomial expansion in each pixel;
- larger values mean that the image will be approximated with smoother surfaces, yielding more
- robust algorithm and more blurred motion field, typically poly_n =5 or 7.</dd>
- <dd><code>poly_sigma</code> - standard deviation of the Gaussian that is used to smooth derivatives used as a
- basis for the polynomial expansion; for poly_n=5, you can set poly_sigma=1.1, for poly_n=7, a
- good value would be poly_sigma=1.5.</dd>
- <dd><code>flags</code> - operation flags that can be a combination of the following:
- <ul>
- <li>
- <b>OPTFLOW_USE_INITIAL_FLOW</b> uses the input flow as an initial flow approximation.
- </li>
- <li>
- <b>OPTFLOW_FARNEBACK_GAUSSIAN</b> uses the Gaussian \(\texttt{winsize}\times\texttt{winsize}\)
- filter instead of a box filter of the same size for optical flow estimation; usually, this
- option gives z more accurate flow than with a box filter, at the cost of lower speed;
- normally, winsize for a Gaussian window should be set to a larger value to achieve the same
- level of robustness.
- </li>
- </ul>
- The function finds an optical flow for each prev pixel using the CITE: Farneback2003 algorithm so that
- \(\texttt{prev} (y,x) \sim \texttt{next} ( y + \texttt{flow} (y,x)[1], x + \texttt{flow} (y,x)[0])\)
- <b>Note:</b>
- <ul>
- <li>
- An example using the optical flow algorithm described by Gunnar Farneback can be found at
- opencv_source_code/samples/cpp/fback.cpp
- </li>
- <li>
- (Python) An example using the optical flow algorithm described by Gunnar Farneback can be
- found at opencv_source_code/samples/python/opt_flow.py
- </li>
- </ul></dd>
- </dl>
- </li>
- </ul>
- <a name="calcOpticalFlowPyrLK-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfByte-org.opencv.core.MatOfFloat-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>calcOpticalFlowPyrLK</h4>
- <pre>public static void calcOpticalFlowPyrLK(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> prevImg,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> nextImg,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> prevPts,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> nextPts,
- <a href="../../../org/opencv/core/MatOfByte.html" title="class in org.opencv.core">MatOfByte</a> status,
- <a href="../../../org/opencv/core/MatOfFloat.html" title="class in org.opencv.core">MatOfFloat</a> err)</pre>
- <div class="block">Calculates an optical flow for a sparse feature set using the iterative Lucas-Kanade method with
- pyramids.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>prevImg</code> - first 8-bit input image or pyramid constructed by buildOpticalFlowPyramid.</dd>
- <dd><code>nextImg</code> - second input image or pyramid of the same size and the same type as prevImg.</dd>
- <dd><code>prevPts</code> - vector of 2D points for which the flow needs to be found; point coordinates must be
- single-precision floating-point numbers.</dd>
- <dd><code>nextPts</code> - output vector of 2D points (with single-precision floating-point coordinates)
- containing the calculated new positions of input features in the second image; when
- OPTFLOW_USE_INITIAL_FLOW flag is passed, the vector must have the same size as in the input.</dd>
- <dd><code>status</code> - output status vector (of unsigned chars); each element of the vector is set to 1 if
- the flow for the corresponding features has been found, otherwise, it is set to 0.</dd>
- <dd><code>err</code> - output vector of errors; each element of the vector is set to an error for the
- corresponding feature, type of the error measure can be set in flags parameter; if the flow wasn't
- found then the error is not defined (use the status parameter to find such cases).
- level), if set to 1, two levels are used, and so on; if pyramids are passed to input then
- algorithm will use as many levels as pyramids have but no more than maxLevel.
- (after the specified maximum number of iterations criteria.maxCount or when the search window
- moves by less than criteria.epsilon.
- <ul>
- <li>
- <b>OPTFLOW_USE_INITIAL_FLOW</b> uses initial estimations, stored in nextPts; if the flag is
- not set, then prevPts is copied to nextPts and is considered the initial estimate.
- </li>
- <li>
- <b>OPTFLOW_LK_GET_MIN_EIGENVALS</b> use minimum eigen values as an error measure (see
- minEigThreshold description); if the flag is not set, then L1 distance between patches
- around the original and a moved point, divided by number of pixels in a window, is used as a
- error measure.
- </li>
- </ul>
- optical flow equations (this matrix is called a spatial gradient matrix in CITE: Bouguet00), divided
- by number of pixels in a window; if this value is less than minEigThreshold, then a corresponding
- feature is filtered out and its flow is not processed, so it allows to remove bad points and get a
- performance boost.
- The function implements a sparse iterative version of the Lucas-Kanade optical flow in pyramids. See
- CITE: Bouguet00 . The function is parallelized with the TBB library.
- <b>Note:</b>
- <ul>
- <li>
- An example using the Lucas-Kanade optical flow algorithm can be found at
- opencv_source_code/samples/cpp/lkdemo.cpp
- </li>
- <li>
- (Python) An example using the Lucas-Kanade optical flow algorithm can be found at
- opencv_source_code/samples/python/lk_track.py
- </li>
- <li>
- (Python) An example using the Lucas-Kanade tracker for homography matching can be found at
- opencv_source_code/samples/python/lk_homography.py
- </li>
- </ul></dd>
- </dl>
- </li>
- </ul>
- <a name="calcOpticalFlowPyrLK-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfByte-org.opencv.core.MatOfFloat-org.opencv.core.Size-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>calcOpticalFlowPyrLK</h4>
- <pre>public static void calcOpticalFlowPyrLK(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> prevImg,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> nextImg,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> prevPts,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> nextPts,
- <a href="../../../org/opencv/core/MatOfByte.html" title="class in org.opencv.core">MatOfByte</a> status,
- <a href="../../../org/opencv/core/MatOfFloat.html" title="class in org.opencv.core">MatOfFloat</a> err,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize)</pre>
- <div class="block">Calculates an optical flow for a sparse feature set using the iterative Lucas-Kanade method with
- pyramids.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>prevImg</code> - first 8-bit input image or pyramid constructed by buildOpticalFlowPyramid.</dd>
- <dd><code>nextImg</code> - second input image or pyramid of the same size and the same type as prevImg.</dd>
- <dd><code>prevPts</code> - vector of 2D points for which the flow needs to be found; point coordinates must be
- single-precision floating-point numbers.</dd>
- <dd><code>nextPts</code> - output vector of 2D points (with single-precision floating-point coordinates)
- containing the calculated new positions of input features in the second image; when
- OPTFLOW_USE_INITIAL_FLOW flag is passed, the vector must have the same size as in the input.</dd>
- <dd><code>status</code> - output status vector (of unsigned chars); each element of the vector is set to 1 if
- the flow for the corresponding features has been found, otherwise, it is set to 0.</dd>
- <dd><code>err</code> - output vector of errors; each element of the vector is set to an error for the
- corresponding feature, type of the error measure can be set in flags parameter; if the flow wasn't
- found then the error is not defined (use the status parameter to find such cases).</dd>
- <dd><code>winSize</code> - size of the search window at each pyramid level.
- level), if set to 1, two levels are used, and so on; if pyramids are passed to input then
- algorithm will use as many levels as pyramids have but no more than maxLevel.
- (after the specified maximum number of iterations criteria.maxCount or when the search window
- moves by less than criteria.epsilon.
- <ul>
- <li>
- <b>OPTFLOW_USE_INITIAL_FLOW</b> uses initial estimations, stored in nextPts; if the flag is
- not set, then prevPts is copied to nextPts and is considered the initial estimate.
- </li>
- <li>
- <b>OPTFLOW_LK_GET_MIN_EIGENVALS</b> use minimum eigen values as an error measure (see
- minEigThreshold description); if the flag is not set, then L1 distance between patches
- around the original and a moved point, divided by number of pixels in a window, is used as a
- error measure.
- </li>
- </ul>
- optical flow equations (this matrix is called a spatial gradient matrix in CITE: Bouguet00), divided
- by number of pixels in a window; if this value is less than minEigThreshold, then a corresponding
- feature is filtered out and its flow is not processed, so it allows to remove bad points and get a
- performance boost.
- The function implements a sparse iterative version of the Lucas-Kanade optical flow in pyramids. See
- CITE: Bouguet00 . The function is parallelized with the TBB library.
- <b>Note:</b>
- <ul>
- <li>
- An example using the Lucas-Kanade optical flow algorithm can be found at
- opencv_source_code/samples/cpp/lkdemo.cpp
- </li>
- <li>
- (Python) An example using the Lucas-Kanade optical flow algorithm can be found at
- opencv_source_code/samples/python/lk_track.py
- </li>
- <li>
- (Python) An example using the Lucas-Kanade tracker for homography matching can be found at
- opencv_source_code/samples/python/lk_homography.py
- </li>
- </ul></dd>
- </dl>
- </li>
- </ul>
- <a name="calcOpticalFlowPyrLK-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfByte-org.opencv.core.MatOfFloat-org.opencv.core.Size-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>calcOpticalFlowPyrLK</h4>
- <pre>public static void calcOpticalFlowPyrLK(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> prevImg,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> nextImg,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> prevPts,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> nextPts,
- <a href="../../../org/opencv/core/MatOfByte.html" title="class in org.opencv.core">MatOfByte</a> status,
- <a href="../../../org/opencv/core/MatOfFloat.html" title="class in org.opencv.core">MatOfFloat</a> err,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel)</pre>
- <div class="block">Calculates an optical flow for a sparse feature set using the iterative Lucas-Kanade method with
- pyramids.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>prevImg</code> - first 8-bit input image or pyramid constructed by buildOpticalFlowPyramid.</dd>
- <dd><code>nextImg</code> - second input image or pyramid of the same size and the same type as prevImg.</dd>
- <dd><code>prevPts</code> - vector of 2D points for which the flow needs to be found; point coordinates must be
- single-precision floating-point numbers.</dd>
- <dd><code>nextPts</code> - output vector of 2D points (with single-precision floating-point coordinates)
- containing the calculated new positions of input features in the second image; when
- OPTFLOW_USE_INITIAL_FLOW flag is passed, the vector must have the same size as in the input.</dd>
- <dd><code>status</code> - output status vector (of unsigned chars); each element of the vector is set to 1 if
- the flow for the corresponding features has been found, otherwise, it is set to 0.</dd>
- <dd><code>err</code> - output vector of errors; each element of the vector is set to an error for the
- corresponding feature, type of the error measure can be set in flags parameter; if the flow wasn't
- found then the error is not defined (use the status parameter to find such cases).</dd>
- <dd><code>winSize</code> - size of the search window at each pyramid level.</dd>
- <dd><code>maxLevel</code> - 0-based maximal pyramid level number; if set to 0, pyramids are not used (single
- level), if set to 1, two levels are used, and so on; if pyramids are passed to input then
- algorithm will use as many levels as pyramids have but no more than maxLevel.
- (after the specified maximum number of iterations criteria.maxCount or when the search window
- moves by less than criteria.epsilon.
- <ul>
- <li>
- <b>OPTFLOW_USE_INITIAL_FLOW</b> uses initial estimations, stored in nextPts; if the flag is
- not set, then prevPts is copied to nextPts and is considered the initial estimate.
- </li>
- <li>
- <b>OPTFLOW_LK_GET_MIN_EIGENVALS</b> use minimum eigen values as an error measure (see
- minEigThreshold description); if the flag is not set, then L1 distance between patches
- around the original and a moved point, divided by number of pixels in a window, is used as a
- error measure.
- </li>
- </ul>
- optical flow equations (this matrix is called a spatial gradient matrix in CITE: Bouguet00), divided
- by number of pixels in a window; if this value is less than minEigThreshold, then a corresponding
- feature is filtered out and its flow is not processed, so it allows to remove bad points and get a
- performance boost.
- The function implements a sparse iterative version of the Lucas-Kanade optical flow in pyramids. See
- CITE: Bouguet00 . The function is parallelized with the TBB library.
- <b>Note:</b>
- <ul>
- <li>
- An example using the Lucas-Kanade optical flow algorithm can be found at
- opencv_source_code/samples/cpp/lkdemo.cpp
- </li>
- <li>
- (Python) An example using the Lucas-Kanade optical flow algorithm can be found at
- opencv_source_code/samples/python/lk_track.py
- </li>
- <li>
- (Python) An example using the Lucas-Kanade tracker for homography matching can be found at
- opencv_source_code/samples/python/lk_homography.py
- </li>
- </ul></dd>
- </dl>
- </li>
- </ul>
- <a name="calcOpticalFlowPyrLK-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfByte-org.opencv.core.MatOfFloat-org.opencv.core.Size-int-org.opencv.core.TermCriteria-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>calcOpticalFlowPyrLK</h4>
- <pre>public static void calcOpticalFlowPyrLK(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> prevImg,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> nextImg,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> prevPts,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> nextPts,
- <a href="../../../org/opencv/core/MatOfByte.html" title="class in org.opencv.core">MatOfByte</a> status,
- <a href="../../../org/opencv/core/MatOfFloat.html" title="class in org.opencv.core">MatOfFloat</a> err,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria)</pre>
- <div class="block">Calculates an optical flow for a sparse feature set using the iterative Lucas-Kanade method with
- pyramids.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>prevImg</code> - first 8-bit input image or pyramid constructed by buildOpticalFlowPyramid.</dd>
- <dd><code>nextImg</code> - second input image or pyramid of the same size and the same type as prevImg.</dd>
- <dd><code>prevPts</code> - vector of 2D points for which the flow needs to be found; point coordinates must be
- single-precision floating-point numbers.</dd>
- <dd><code>nextPts</code> - output vector of 2D points (with single-precision floating-point coordinates)
- containing the calculated new positions of input features in the second image; when
- OPTFLOW_USE_INITIAL_FLOW flag is passed, the vector must have the same size as in the input.</dd>
- <dd><code>status</code> - output status vector (of unsigned chars); each element of the vector is set to 1 if
- the flow for the corresponding features has been found, otherwise, it is set to 0.</dd>
- <dd><code>err</code> - output vector of errors; each element of the vector is set to an error for the
- corresponding feature, type of the error measure can be set in flags parameter; if the flow wasn't
- found then the error is not defined (use the status parameter to find such cases).</dd>
- <dd><code>winSize</code> - size of the search window at each pyramid level.</dd>
- <dd><code>maxLevel</code> - 0-based maximal pyramid level number; if set to 0, pyramids are not used (single
- level), if set to 1, two levels are used, and so on; if pyramids are passed to input then
- algorithm will use as many levels as pyramids have but no more than maxLevel.</dd>
- <dd><code>criteria</code> - parameter, specifying the termination criteria of the iterative search algorithm
- (after the specified maximum number of iterations criteria.maxCount or when the search window
- moves by less than criteria.epsilon.
- <ul>
- <li>
- <b>OPTFLOW_USE_INITIAL_FLOW</b> uses initial estimations, stored in nextPts; if the flag is
- not set, then prevPts is copied to nextPts and is considered the initial estimate.
- </li>
- <li>
- <b>OPTFLOW_LK_GET_MIN_EIGENVALS</b> use minimum eigen values as an error measure (see
- minEigThreshold description); if the flag is not set, then L1 distance between patches
- around the original and a moved point, divided by number of pixels in a window, is used as a
- error measure.
- </li>
- </ul>
- optical flow equations (this matrix is called a spatial gradient matrix in CITE: Bouguet00), divided
- by number of pixels in a window; if this value is less than minEigThreshold, then a corresponding
- feature is filtered out and its flow is not processed, so it allows to remove bad points and get a
- performance boost.
- The function implements a sparse iterative version of the Lucas-Kanade optical flow in pyramids. See
- CITE: Bouguet00 . The function is parallelized with the TBB library.
- <b>Note:</b>
- <ul>
- <li>
- An example using the Lucas-Kanade optical flow algorithm can be found at
- opencv_source_code/samples/cpp/lkdemo.cpp
- </li>
- <li>
- (Python) An example using the Lucas-Kanade optical flow algorithm can be found at
- opencv_source_code/samples/python/lk_track.py
- </li>
- <li>
- (Python) An example using the Lucas-Kanade tracker for homography matching can be found at
- opencv_source_code/samples/python/lk_homography.py
- </li>
- </ul></dd>
- </dl>
- </li>
- </ul>
- <a name="calcOpticalFlowPyrLK-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfByte-org.opencv.core.MatOfFloat-org.opencv.core.Size-int-org.opencv.core.TermCriteria-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>calcOpticalFlowPyrLK</h4>
- <pre>public static void calcOpticalFlowPyrLK(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> prevImg,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> nextImg,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> prevPts,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> nextPts,
- <a href="../../../org/opencv/core/MatOfByte.html" title="class in org.opencv.core">MatOfByte</a> status,
- <a href="../../../org/opencv/core/MatOfFloat.html" title="class in org.opencv.core">MatOfFloat</a> err,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria,
- int flags)</pre>
- <div class="block">Calculates an optical flow for a sparse feature set using the iterative Lucas-Kanade method with
- pyramids.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>prevImg</code> - first 8-bit input image or pyramid constructed by buildOpticalFlowPyramid.</dd>
- <dd><code>nextImg</code> - second input image or pyramid of the same size and the same type as prevImg.</dd>
- <dd><code>prevPts</code> - vector of 2D points for which the flow needs to be found; point coordinates must be
- single-precision floating-point numbers.</dd>
- <dd><code>nextPts</code> - output vector of 2D points (with single-precision floating-point coordinates)
- containing the calculated new positions of input features in the second image; when
- OPTFLOW_USE_INITIAL_FLOW flag is passed, the vector must have the same size as in the input.</dd>
- <dd><code>status</code> - output status vector (of unsigned chars); each element of the vector is set to 1 if
- the flow for the corresponding features has been found, otherwise, it is set to 0.</dd>
- <dd><code>err</code> - output vector of errors; each element of the vector is set to an error for the
- corresponding feature, type of the error measure can be set in flags parameter; if the flow wasn't
- found then the error is not defined (use the status parameter to find such cases).</dd>
- <dd><code>winSize</code> - size of the search window at each pyramid level.</dd>
- <dd><code>maxLevel</code> - 0-based maximal pyramid level number; if set to 0, pyramids are not used (single
- level), if set to 1, two levels are used, and so on; if pyramids are passed to input then
- algorithm will use as many levels as pyramids have but no more than maxLevel.</dd>
- <dd><code>criteria</code> - parameter, specifying the termination criteria of the iterative search algorithm
- (after the specified maximum number of iterations criteria.maxCount or when the search window
- moves by less than criteria.epsilon.</dd>
- <dd><code>flags</code> - operation flags:
- <ul>
- <li>
- <b>OPTFLOW_USE_INITIAL_FLOW</b> uses initial estimations, stored in nextPts; if the flag is
- not set, then prevPts is copied to nextPts and is considered the initial estimate.
- </li>
- <li>
- <b>OPTFLOW_LK_GET_MIN_EIGENVALS</b> use minimum eigen values as an error measure (see
- minEigThreshold description); if the flag is not set, then L1 distance between patches
- around the original and a moved point, divided by number of pixels in a window, is used as a
- error measure.
- </li>
- </ul>
- optical flow equations (this matrix is called a spatial gradient matrix in CITE: Bouguet00), divided
- by number of pixels in a window; if this value is less than minEigThreshold, then a corresponding
- feature is filtered out and its flow is not processed, so it allows to remove bad points and get a
- performance boost.
- The function implements a sparse iterative version of the Lucas-Kanade optical flow in pyramids. See
- CITE: Bouguet00 . The function is parallelized with the TBB library.
- <b>Note:</b>
- <ul>
- <li>
- An example using the Lucas-Kanade optical flow algorithm can be found at
- opencv_source_code/samples/cpp/lkdemo.cpp
- </li>
- <li>
- (Python) An example using the Lucas-Kanade optical flow algorithm can be found at
- opencv_source_code/samples/python/lk_track.py
- </li>
- <li>
- (Python) An example using the Lucas-Kanade tracker for homography matching can be found at
- opencv_source_code/samples/python/lk_homography.py
- </li>
- </ul></dd>
- </dl>
- </li>
- </ul>
- <a name="calcOpticalFlowPyrLK-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfPoint2f-org.opencv.core.MatOfByte-org.opencv.core.MatOfFloat-org.opencv.core.Size-int-org.opencv.core.TermCriteria-int-double-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>calcOpticalFlowPyrLK</h4>
- <pre>public static void calcOpticalFlowPyrLK(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> prevImg,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> nextImg,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> prevPts,
- <a href="../../../org/opencv/core/MatOfPoint2f.html" title="class in org.opencv.core">MatOfPoint2f</a> nextPts,
- <a href="../../../org/opencv/core/MatOfByte.html" title="class in org.opencv.core">MatOfByte</a> status,
- <a href="../../../org/opencv/core/MatOfFloat.html" title="class in org.opencv.core">MatOfFloat</a> err,
- <a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a> winSize,
- int maxLevel,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria,
- int flags,
- double minEigThreshold)</pre>
- <div class="block">Calculates an optical flow for a sparse feature set using the iterative Lucas-Kanade method with
- pyramids.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>prevImg</code> - first 8-bit input image or pyramid constructed by buildOpticalFlowPyramid.</dd>
- <dd><code>nextImg</code> - second input image or pyramid of the same size and the same type as prevImg.</dd>
- <dd><code>prevPts</code> - vector of 2D points for which the flow needs to be found; point coordinates must be
- single-precision floating-point numbers.</dd>
- <dd><code>nextPts</code> - output vector of 2D points (with single-precision floating-point coordinates)
- containing the calculated new positions of input features in the second image; when
- OPTFLOW_USE_INITIAL_FLOW flag is passed, the vector must have the same size as in the input.</dd>
- <dd><code>status</code> - output status vector (of unsigned chars); each element of the vector is set to 1 if
- the flow for the corresponding features has been found, otherwise, it is set to 0.</dd>
- <dd><code>err</code> - output vector of errors; each element of the vector is set to an error for the
- corresponding feature, type of the error measure can be set in flags parameter; if the flow wasn't
- found then the error is not defined (use the status parameter to find such cases).</dd>
- <dd><code>winSize</code> - size of the search window at each pyramid level.</dd>
- <dd><code>maxLevel</code> - 0-based maximal pyramid level number; if set to 0, pyramids are not used (single
- level), if set to 1, two levels are used, and so on; if pyramids are passed to input then
- algorithm will use as many levels as pyramids have but no more than maxLevel.</dd>
- <dd><code>criteria</code> - parameter, specifying the termination criteria of the iterative search algorithm
- (after the specified maximum number of iterations criteria.maxCount or when the search window
- moves by less than criteria.epsilon.</dd>
- <dd><code>flags</code> - operation flags:
- <ul>
- <li>
- <b>OPTFLOW_USE_INITIAL_FLOW</b> uses initial estimations, stored in nextPts; if the flag is
- not set, then prevPts is copied to nextPts and is considered the initial estimate.
- </li>
- <li>
- <b>OPTFLOW_LK_GET_MIN_EIGENVALS</b> use minimum eigen values as an error measure (see
- minEigThreshold description); if the flag is not set, then L1 distance between patches
- around the original and a moved point, divided by number of pixels in a window, is used as a
- error measure.
- </li>
- </ul></dd>
- <dd><code>minEigThreshold</code> - the algorithm calculates the minimum eigen value of a 2x2 normal matrix of
- optical flow equations (this matrix is called a spatial gradient matrix in CITE: Bouguet00), divided
- by number of pixels in a window; if this value is less than minEigThreshold, then a corresponding
- feature is filtered out and its flow is not processed, so it allows to remove bad points and get a
- performance boost.
- The function implements a sparse iterative version of the Lucas-Kanade optical flow in pyramids. See
- CITE: Bouguet00 . The function is parallelized with the TBB library.
- <b>Note:</b>
- <ul>
- <li>
- An example using the Lucas-Kanade optical flow algorithm can be found at
- opencv_source_code/samples/cpp/lkdemo.cpp
- </li>
- <li>
- (Python) An example using the Lucas-Kanade optical flow algorithm can be found at
- opencv_source_code/samples/python/lk_track.py
- </li>
- <li>
- (Python) An example using the Lucas-Kanade tracker for homography matching can be found at
- opencv_source_code/samples/python/lk_homography.py
- </li>
- </ul></dd>
- </dl>
- </li>
- </ul>
- <a name="CamShift-org.opencv.core.Mat-org.opencv.core.Rect-org.opencv.core.TermCriteria-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>CamShift</h4>
- <pre>public static <a href="../../../org/opencv/core/RotatedRect.html" title="class in org.opencv.core">RotatedRect</a> CamShift(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> probImage,
- <a href="../../../org/opencv/core/Rect.html" title="class in org.opencv.core">Rect</a> window,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria)</pre>
- <div class="block">Finds an object center, size, and orientation.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>probImage</code> - Back projection of the object histogram. See calcBackProject.</dd>
- <dd><code>window</code> - Initial search window.</dd>
- <dd><code>criteria</code> - Stop criteria for the underlying meanShift.
- returns
- (in old interfaces) Number of iterations CAMSHIFT took to converge
- The function implements the CAMSHIFT object tracking algorithm CITE: Bradski98 . First, it finds an
- object center using meanShift and then adjusts the window size and finds the optimal rotation. The
- function returns the rotated rectangle structure that includes the object position, size, and
- orientation. The next position of the search window can be obtained with RotatedRect::boundingRect()
- See the OpenCV sample camshiftdemo.c that tracks colored objects.
- <b>Note:</b>
- <ul>
- <li>
- (Python) A sample explaining the camshift tracking algorithm can be found at
- opencv_source_code/samples/python/camshift.py
- </li>
- </ul></dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="computeECC-org.opencv.core.Mat-org.opencv.core.Mat-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>computeECC</h4>
- <pre>public static double computeECC(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> templateImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputImage)</pre>
- <div class="block">Computes the Enhanced Correlation Coefficient value between two images CITE: EP08 .</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>templateImage</code> - single-channel template image; CV_8U or CV_32F array.</dd>
- <dd><code>inputImage</code> - single-channel input image to be warped to provide an image similar to
- templateImage, same type as templateImage.
- SEE:
- findTransformECC</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="computeECC-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>computeECC</h4>
- <pre>public static double computeECC(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> templateImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputMask)</pre>
- <div class="block">Computes the Enhanced Correlation Coefficient value between two images CITE: EP08 .</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>templateImage</code> - single-channel template image; CV_8U or CV_32F array.</dd>
- <dd><code>inputImage</code> - single-channel input image to be warped to provide an image similar to
- templateImage, same type as templateImage.</dd>
- <dd><code>inputMask</code> - An optional mask to indicate valid values of inputImage.
- SEE:
- findTransformECC</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="createBackgroundSubtractorKNN--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>createBackgroundSubtractorKNN</h4>
- <pre>public static <a href="../../../org/opencv/video/BackgroundSubtractorKNN.html" title="class in org.opencv.video">BackgroundSubtractorKNN</a> createBackgroundSubtractorKNN()</pre>
- <div class="block">Creates KNN Background Subtractor
- whether a pixel is close to that sample. This parameter does not affect the background update.
- speed a bit, so if you do not need this feature, set the parameter to false.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="createBackgroundSubtractorKNN-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>createBackgroundSubtractorKNN</h4>
- <pre>public static <a href="../../../org/opencv/video/BackgroundSubtractorKNN.html" title="class in org.opencv.video">BackgroundSubtractorKNN</a> createBackgroundSubtractorKNN(int history)</pre>
- <div class="block">Creates KNN Background Subtractor</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>history</code> - Length of the history.
- whether a pixel is close to that sample. This parameter does not affect the background update.
- speed a bit, so if you do not need this feature, set the parameter to false.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="createBackgroundSubtractorKNN-int-double-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>createBackgroundSubtractorKNN</h4>
- <pre>public static <a href="../../../org/opencv/video/BackgroundSubtractorKNN.html" title="class in org.opencv.video">BackgroundSubtractorKNN</a> createBackgroundSubtractorKNN(int history,
- double dist2Threshold)</pre>
- <div class="block">Creates KNN Background Subtractor</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>history</code> - Length of the history.</dd>
- <dd><code>dist2Threshold</code> - Threshold on the squared distance between the pixel and the sample to decide
- whether a pixel is close to that sample. This parameter does not affect the background update.
- speed a bit, so if you do not need this feature, set the parameter to false.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="createBackgroundSubtractorKNN-int-double-boolean-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>createBackgroundSubtractorKNN</h4>
- <pre>public static <a href="../../../org/opencv/video/BackgroundSubtractorKNN.html" title="class in org.opencv.video">BackgroundSubtractorKNN</a> createBackgroundSubtractorKNN(int history,
- double dist2Threshold,
- boolean detectShadows)</pre>
- <div class="block">Creates KNN Background Subtractor</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>history</code> - Length of the history.</dd>
- <dd><code>dist2Threshold</code> - Threshold on the squared distance between the pixel and the sample to decide
- whether a pixel is close to that sample. This parameter does not affect the background update.</dd>
- <dd><code>detectShadows</code> - If true, the algorithm will detect shadows and mark them. It decreases the
- speed a bit, so if you do not need this feature, set the parameter to false.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="createBackgroundSubtractorMOG2--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>createBackgroundSubtractorMOG2</h4>
- <pre>public static <a href="../../../org/opencv/video/BackgroundSubtractorMOG2.html" title="class in org.opencv.video">BackgroundSubtractorMOG2</a> createBackgroundSubtractorMOG2()</pre>
- <div class="block">Creates MOG2 Background Subtractor
- to decide whether a pixel is well described by the background model. This parameter does not
- affect the background update.
- speed a bit, so if you do not need this feature, set the parameter to false.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="createBackgroundSubtractorMOG2-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>createBackgroundSubtractorMOG2</h4>
- <pre>public static <a href="../../../org/opencv/video/BackgroundSubtractorMOG2.html" title="class in org.opencv.video">BackgroundSubtractorMOG2</a> createBackgroundSubtractorMOG2(int history)</pre>
- <div class="block">Creates MOG2 Background Subtractor</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>history</code> - Length of the history.
- to decide whether a pixel is well described by the background model. This parameter does not
- affect the background update.
- speed a bit, so if you do not need this feature, set the parameter to false.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="createBackgroundSubtractorMOG2-int-double-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>createBackgroundSubtractorMOG2</h4>
- <pre>public static <a href="../../../org/opencv/video/BackgroundSubtractorMOG2.html" title="class in org.opencv.video">BackgroundSubtractorMOG2</a> createBackgroundSubtractorMOG2(int history,
- double varThreshold)</pre>
- <div class="block">Creates MOG2 Background Subtractor</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>history</code> - Length of the history.</dd>
- <dd><code>varThreshold</code> - Threshold on the squared Mahalanobis distance between the pixel and the model
- to decide whether a pixel is well described by the background model. This parameter does not
- affect the background update.
- speed a bit, so if you do not need this feature, set the parameter to false.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="createBackgroundSubtractorMOG2-int-double-boolean-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>createBackgroundSubtractorMOG2</h4>
- <pre>public static <a href="../../../org/opencv/video/BackgroundSubtractorMOG2.html" title="class in org.opencv.video">BackgroundSubtractorMOG2</a> createBackgroundSubtractorMOG2(int history,
- double varThreshold,
- boolean detectShadows)</pre>
- <div class="block">Creates MOG2 Background Subtractor</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>history</code> - Length of the history.</dd>
- <dd><code>varThreshold</code> - Threshold on the squared Mahalanobis distance between the pixel and the model
- to decide whether a pixel is well described by the background model. This parameter does not
- affect the background update.</dd>
- <dd><code>detectShadows</code> - If true, the algorithm will detect shadows and mark them. It decreases the
- speed a bit, so if you do not need this feature, set the parameter to false.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="findTransformECC-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>findTransformECC</h4>
- <pre>public static double findTransformECC(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> templateImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> warpMatrix)</pre>
- </li>
- </ul>
- <a name="findTransformECC-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>findTransformECC</h4>
- <pre>public static double findTransformECC(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> templateImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> warpMatrix,
- int motionType)</pre>
- </li>
- </ul>
- <a name="findTransformECC-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-int-org.opencv.core.TermCriteria-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>findTransformECC</h4>
- <pre>public static double findTransformECC(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> templateImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> warpMatrix,
- int motionType,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria)</pre>
- </li>
- </ul>
- <a name="findTransformECC-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-int-org.opencv.core.TermCriteria-org.opencv.core.Mat-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>findTransformECC</h4>
- <pre>public static double findTransformECC(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> templateImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> warpMatrix,
- int motionType,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputMask)</pre>
- </li>
- </ul>
- <a name="findTransformECC-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-int-org.opencv.core.TermCriteria-org.opencv.core.Mat-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>findTransformECC</h4>
- <pre>public static double findTransformECC(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> templateImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputImage,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> warpMatrix,
- int motionType,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> inputMask,
- int gaussFiltSize)</pre>
- <div class="block">Finds the geometric transform (warp) between two images in terms of the ECC criterion CITE: EP08 .</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>templateImage</code> - single-channel template image; CV_8U or CV_32F array.</dd>
- <dd><code>inputImage</code> - single-channel input image which should be warped with the final warpMatrix in
- order to provide an image similar to templateImage, same type as templateImage.</dd>
- <dd><code>warpMatrix</code> - floating-point \(2\times 3\) or \(3\times 3\) mapping matrix (warp).</dd>
- <dd><code>motionType</code> - parameter, specifying the type of motion:
- <ul>
- <li>
- <b>MOTION_TRANSLATION</b> sets a translational motion model; warpMatrix is \(2\times 3\) with
- the first \(2\times 2\) part being the unity matrix and the rest two parameters being
- estimated.
- </li>
- <li>
- <b>MOTION_EUCLIDEAN</b> sets a Euclidean (rigid) transformation as motion model; three
- parameters are estimated; warpMatrix is \(2\times 3\).
- </li>
- <li>
- <b>MOTION_AFFINE</b> sets an affine motion model (DEFAULT); six parameters are estimated;
- warpMatrix is \(2\times 3\).
- </li>
- <li>
- <b>MOTION_HOMOGRAPHY</b> sets a homography as a motion model; eight parameters are
- estimated;\<code>warpMatrix\</code> is \(3\times 3\).
- </li>
- </ul></dd>
- <dd><code>criteria</code> - parameter, specifying the termination criteria of the ECC algorithm;
- criteria.epsilon defines the threshold of the increment in the correlation coefficient between two
- iterations (a negative criteria.epsilon makes criteria.maxcount the only termination criterion).
- Default values are shown in the declaration above.</dd>
- <dd><code>inputMask</code> - An optional mask to indicate valid values of inputImage.</dd>
- <dd><code>gaussFiltSize</code> - An optional value indicating size of gaussian blur filter; (DEFAULT: 5)
- The function estimates the optimum transformation (warpMatrix) with respect to ECC criterion
- (CITE: EP08), that is
- \(\texttt{warpMatrix} = \arg\max_{W} \texttt{ECC}(\texttt{templateImage}(x,y),\texttt{inputImage}(x',y'))\)
- where
- \(\begin{bmatrix} x' \\ y' \end{bmatrix} = W \cdot \begin{bmatrix} x \\ y \\ 1 \end{bmatrix}\)
- (the equation holds with homogeneous coordinates for homography). It returns the final enhanced
- correlation coefficient, that is the correlation coefficient between the template image and the
- final warped input image. When a \(3\times 3\) matrix is given with motionType =0, 1 or 2, the third
- row is ignored.
- Unlike findHomography and estimateRigidTransform, the function findTransformECC implements an
- area-based alignment that builds on intensity similarities. In essence, the function updates the
- initial transformation that roughly aligns the images. If this information is missing, the identity
- warp (unity matrix) is used as an initialization. Note that if images undergo strong
- displacements/rotations, an initial transformation that roughly aligns the images is necessary
- (e.g., a simple euclidean/similarity transform that allows for the images showing the same image
- content approximately). Use inverse warping in the second image to take an image close to the first
- one, i.e. use the flag WARP_INVERSE_MAP with warpAffine or warpPerspective. See also the OpenCV
- sample image_alignment.cpp that demonstrates the use of the function. Note that the function throws
- an exception if algorithm does not converges.
- SEE:
- computeECC, estimateAffine2D, estimateAffinePartial2D, findHomography</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="meanShift-org.opencv.core.Mat-org.opencv.core.Rect-org.opencv.core.TermCriteria-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>meanShift</h4>
- <pre>public static int meanShift(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> probImage,
- <a href="../../../org/opencv/core/Rect.html" title="class in org.opencv.core">Rect</a> window,
- <a href="../../../org/opencv/core/TermCriteria.html" title="class in org.opencv.core">TermCriteria</a> criteria)</pre>
- <div class="block">Finds an object on a back projection image.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>probImage</code> - Back projection of the object histogram. See calcBackProject for details.</dd>
- <dd><code>window</code> - Initial search window.</dd>
- <dd><code>criteria</code> - Stop criteria for the iterative search algorithm.
- returns
- : Number of iterations CAMSHIFT took to converge.
- The function implements the iterative object search algorithm. It takes the input back projection of
- an object and the initial position. The mass center in window of the back projection image is
- computed and the search window center shifts to the mass center. The procedure is repeated until the
- specified number of iterations criteria.maxCount is done or until the window center shifts by less
- than criteria.epsilon. The algorithm is used inside CamShift and, unlike CamShift , the search
- window size or orientation do not change during the search. You can simply pass the output of
- calcBackProject to this function. But better results can be obtained if you pre-filter the back
- projection and remove the noise. For example, you can do this by retrieving connected components
- with findContours , throwing away contours with small area ( contourArea ), and rendering the
- remaining contours with drawContours.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="readOpticalFlow-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>readOpticalFlow</h4>
- <pre>public static <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> readOpticalFlow(java.lang.String path)</pre>
- <div class="block">Read a .flo file</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>path</code> - Path to the file to be loaded
- The function readOpticalFlow loads a flow field from a file and returns it as a single matrix.
- Resulting Mat has a type CV_32FC2 - floating-point, 2-channel. First channel corresponds to the
- flow in the horizontal direction (u), second - vertical (v).</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="writeOpticalFlow-java.lang.String-org.opencv.core.Mat-">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>writeOpticalFlow</h4>
- <pre>public static boolean writeOpticalFlow(java.lang.String path,
- <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> flow)</pre>
- <div class="block">Write a .flo to disk</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>path</code> - Path to the file to be written</dd>
- <dd><code>flow</code> - Flow field to be stored
- The function stores a flow field in a file, returns true on success, false otherwise.
- The flow field must be a 2-channel, floating-point matrix (CV_32FC2). First channel corresponds
- to the flow in the horizontal direction (u), second - vertical (v).</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- </div>
- <!-- ========= END OF CLASS DATA ========= -->
- <!-- ======= START OF BOTTOM NAVBAR ====== -->
- <div class="bottomNav"><a name="navbar.bottom">
- <!-- -->
- </a>
- <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
- <a name="navbar.bottom.firstrow">
- <!-- -->
- </a>
- <ul class="navList" title="Navigation">
- <li><a href="../../../overview-summary.html">Overview</a></li>
- <li><a href="package-summary.html">Package</a></li>
- <li class="navBarCell1Rev">Class</li>
- <li><a href="package-tree.html">Tree</a></li>
- <li><a href="../../../index-all.html">Index</a></li>
- <li><a href="../../../help-doc.html">Help</a></li>
- </ul>
- <div class="aboutLanguage">
- <script>
- var url = window.location.href;
- var pos = url.lastIndexOf('/javadoc/');
- url = pos >= 0 ? (url.substring(0, pos) + '/javadoc/mymath.js') : (window.location.origin + '/mymath.js');
- var script = document.createElement('script');
- script.src = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML,' + url;
- document.getElementsByTagName('head')[0].appendChild(script);
- </script>
- </div>
- </div>
- <div class="subNav">
- <ul class="navList">
- <li><a href="../../../org/opencv/video/VariationalRefinement.html" title="class in org.opencv.video"><span class="typeNameLink">Prev Class</span></a></li>
- <li>Next Class</li>
- </ul>
- <ul class="navList">
- <li><a href="../../../index.html?org/opencv/video/Video.html" target="_top">Frames</a></li>
- <li><a href="Video.html" target="_top">No Frames</a></li>
- </ul>
- <ul class="navList" id="allclasses_navbar_bottom">
- <li><a href="../../../allclasses-noframe.html">All Classes</a></li>
- </ul>
- <div>
- <script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_bottom");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
- </script>
- </div>
- <div>
- <ul class="subNavList">
- <li>Summary: </li>
- <li>Nested | </li>
- <li><a href="#field.summary">Field</a> | </li>
- <li><a href="#constructor.summary">Constr</a> | </li>
- <li><a href="#method.summary">Method</a></li>
- </ul>
- <ul class="subNavList">
- <li>Detail: </li>
- <li><a href="#field.detail">Field</a> | </li>
- <li><a href="#constructor.detail">Constr</a> | </li>
- <li><a href="#method.detail">Method</a></li>
- </ul>
- </div>
- <a name="skip.navbar.bottom">
- <!-- -->
- </a></div>
- <!-- ======== END OF BOTTOM NAVBAR ======= -->
- <p class="legalCopy"><small>Generated on 2023-06-28 12:47:21 / OpenCV 4.8.0</small></p>
- </body>
- </html>
|