| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244 |
- <!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:25 UTC 2023 -->
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>StereoSGBM (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="StereoSGBM (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":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10};
- var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance 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/calib3d/StereoMatcher.html" title="class in org.opencv.calib3d"><span class="typeNameLink">Prev Class</span></a></li>
- <li><a href="../../../org/opencv/calib3d/UsacParams.html" title="class in org.opencv.calib3d"><span class="typeNameLink">Next Class</span></a></li>
- </ul>
- <ul class="navList">
- <li><a href="../../../index.html?org/opencv/calib3d/StereoSGBM.html" target="_top">Frames</a></li>
- <li><a href="StereoSGBM.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>Constr | </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>Constr | </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.calib3d</div>
- <h2 title="Class StereoSGBM" class="title">Class StereoSGBM</h2>
- </div>
- <div class="contentContainer">
- <ul class="inheritance">
- <li>java.lang.Object</li>
- <li>
- <ul class="inheritance">
- <li><a href="../../../org/opencv/core/Algorithm.html" title="class in org.opencv.core">org.opencv.core.Algorithm</a></li>
- <li>
- <ul class="inheritance">
- <li><a href="../../../org/opencv/calib3d/StereoMatcher.html" title="class in org.opencv.calib3d">org.opencv.calib3d.StereoMatcher</a></li>
- <li>
- <ul class="inheritance">
- <li>org.opencv.calib3d.StereoSGBM</li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- <div class="description">
- <ul class="blockList">
- <li class="blockList">
- <hr>
- <br>
- <pre>public class <span class="typeNameLabel">StereoSGBM</span>
- extends <a href="../../../org/opencv/calib3d/StereoMatcher.html" title="class in org.opencv.calib3d">StereoMatcher</a></pre>
- <div class="block">The class implements the modified H. Hirschmuller algorithm CITE: HH08 that differs from the original
- one as follows:
- <ul>
- <li>
- By default, the algorithm is single-pass, which means that you consider only 5 directions
- instead of 8. Set mode=StereoSGBM::MODE_HH in createStereoSGBM to run the full variant of the
- algorithm but beware that it may consume a lot of memory.
- </li>
- <li>
- The algorithm matches blocks, not individual pixels. Though, setting blockSize=1 reduces the
- blocks to single pixels.
- </li>
- <li>
- Mutual information cost function is not implemented. Instead, a simpler Birchfield-Tomasi
- sub-pixel metric from CITE: BT98 is used. Though, the color images are supported as well.
- </li>
- <li>
- Some pre- and post- processing steps from K. Konolige algorithm StereoBM are included, for
- example: pre-filtering (StereoBM::PREFILTER_XSOBEL type) and post-filtering (uniqueness
- check, quadratic interpolation and speckle filtering).
- </li>
- </ul>
- <b>Note:</b>
- <ul>
- <li>
- (Python) An example illustrating the use of the StereoSGBM matching algorithm can be found
- at opencv_source_code/samples/python/stereo_match.py
- </li>
- </ul></div>
- </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/calib3d/StereoSGBM.html#MODE_HH">MODE_HH</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/calib3d/StereoSGBM.html#MODE_HH4">MODE_HH4</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/calib3d/StereoSGBM.html#MODE_SGBM">MODE_SGBM</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/calib3d/StereoSGBM.html#MODE_SGBM_3WAY">MODE_SGBM_3WAY</a></span></code> </td>
- </tr>
- </table>
- <ul class="blockList">
- <li class="blockList"><a name="fields.inherited.from.class.org.opencv.calib3d.StereoMatcher">
- <!-- -->
- </a>
- <h3>Fields inherited from class org.opencv.calib3d.<a href="../../../org/opencv/calib3d/StereoMatcher.html" title="class in org.opencv.calib3d">StereoMatcher</a></h3>
- <code><a href="../../../org/opencv/calib3d/StereoMatcher.html#DISP_SCALE">DISP_SCALE</a>, <a href="../../../org/opencv/calib3d/StereoMatcher.html#DISP_SHIFT">DISP_SHIFT</a></code></li>
- </ul>
- </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="t2" class="tableTab"><span><a href="javascript:show(2);">Instance 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 <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#Z:Z__fromPtr__-long-">__fromPtr__</a></span>(long addr)</code> </td>
- </tr>
- <tr id="i1" class="rowColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#create--">create</a></span>()</code>
- <div class="block">Creates StereoSGBM object
- rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.</div>
- </td>
- </tr>
- <tr id="i2" class="altColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#create-int-">create</a></span>(int minDisparity)</code>
- <div class="block">Creates StereoSGBM object</div>
- </td>
- </tr>
- <tr id="i3" class="rowColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#create-int-int-">create</a></span>(int minDisparity,
- int numDisparities)</code>
- <div class="block">Creates StereoSGBM object</div>
- </td>
- </tr>
- <tr id="i4" class="altColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#create-int-int-int-">create</a></span>(int minDisparity,
- int numDisparities,
- int blockSize)</code>
- <div class="block">Creates StereoSGBM object</div>
- </td>
- </tr>
- <tr id="i5" class="rowColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#create-int-int-int-int-">create</a></span>(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1)</code>
- <div class="block">Creates StereoSGBM object</div>
- </td>
- </tr>
- <tr id="i6" class="altColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#create-int-int-int-int-int-">create</a></span>(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1,
- int P2)</code>
- <div class="block">Creates StereoSGBM object</div>
- </td>
- </tr>
- <tr id="i7" class="rowColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#create-int-int-int-int-int-int-">create</a></span>(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1,
- int P2,
- int disp12MaxDiff)</code>
- <div class="block">Creates StereoSGBM object</div>
- </td>
- </tr>
- <tr id="i8" class="altColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#create-int-int-int-int-int-int-int-">create</a></span>(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1,
- int P2,
- int disp12MaxDiff,
- int preFilterCap)</code>
- <div class="block">Creates StereoSGBM object</div>
- </td>
- </tr>
- <tr id="i9" class="rowColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#create-int-int-int-int-int-int-int-int-">create</a></span>(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1,
- int P2,
- int disp12MaxDiff,
- int preFilterCap,
- int uniquenessRatio)</code>
- <div class="block">Creates StereoSGBM object</div>
- </td>
- </tr>
- <tr id="i10" class="altColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#create-int-int-int-int-int-int-int-int-int-">create</a></span>(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1,
- int P2,
- int disp12MaxDiff,
- int preFilterCap,
- int uniquenessRatio,
- int speckleWindowSize)</code>
- <div class="block">Creates StereoSGBM object</div>
- </td>
- </tr>
- <tr id="i11" class="rowColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#create-int-int-int-int-int-int-int-int-int-int-">create</a></span>(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1,
- int P2,
- int disp12MaxDiff,
- int preFilterCap,
- int uniquenessRatio,
- int speckleWindowSize,
- int speckleRange)</code>
- <div class="block">Creates StereoSGBM object</div>
- </td>
- </tr>
- <tr id="i12" class="altColor">
- <td class="colFirst"><code>static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#create-int-int-int-int-int-int-int-int-int-int-int-">create</a></span>(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1,
- int P2,
- int disp12MaxDiff,
- int preFilterCap,
- int uniquenessRatio,
- int speckleWindowSize,
- int speckleRange,
- int mode)</code>
- <div class="block">Creates StereoSGBM object</div>
- </td>
- </tr>
- <tr id="i13" class="rowColor">
- <td class="colFirst"><code>int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#getMode--">getMode</a></span>()</code> </td>
- </tr>
- <tr id="i14" class="altColor">
- <td class="colFirst"><code>int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#getP1--">getP1</a></span>()</code> </td>
- </tr>
- <tr id="i15" class="rowColor">
- <td class="colFirst"><code>int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#getP2--">getP2</a></span>()</code> </td>
- </tr>
- <tr id="i16" class="altColor">
- <td class="colFirst"><code>int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#getPreFilterCap--">getPreFilterCap</a></span>()</code> </td>
- </tr>
- <tr id="i17" class="rowColor">
- <td class="colFirst"><code>int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#getUniquenessRatio--">getUniquenessRatio</a></span>()</code> </td>
- </tr>
- <tr id="i18" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#setMode-int-">setMode</a></span>(int mode)</code> </td>
- </tr>
- <tr id="i19" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#setP1-int-">setP1</a></span>(int P1)</code> </td>
- </tr>
- <tr id="i20" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#setP2-int-">setP2</a></span>(int P2)</code> </td>
- </tr>
- <tr id="i21" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#setPreFilterCap-int-">setPreFilterCap</a></span>(int preFilterCap)</code> </td>
- </tr>
- <tr id="i22" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/calib3d/StereoSGBM.html#setUniquenessRatio-int-">setUniquenessRatio</a></span>(int uniquenessRatio)</code> </td>
- </tr>
- </table>
- <ul class="blockList">
- <li class="blockList"><a name="methods.inherited.from.class.org.opencv.calib3d.StereoMatcher">
- <!-- -->
- </a>
- <h3>Methods inherited from class org.opencv.calib3d.<a href="../../../org/opencv/calib3d/StereoMatcher.html" title="class in org.opencv.calib3d">StereoMatcher</a></h3>
- <code><a href="../../../org/opencv/calib3d/StereoMatcher.html#compute-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-">compute</a>, <a href="../../../org/opencv/calib3d/StereoMatcher.html#getBlockSize--">getBlockSize</a>, <a href="../../../org/opencv/calib3d/StereoMatcher.html#getDisp12MaxDiff--">getDisp12MaxDiff</a>, <a href="../../../org/opencv/calib3d/StereoMatcher.html#getMinDisparity--">getMinDisparity</a>, <a href="../../../org/opencv/calib3d/StereoMatcher.html#getNumDisparities--">getNumDisparities</a>, <a href="../../../org/opencv/calib3d/StereoMatcher.html#getSpeckleRange--">getSpeckleRange</a>, <a href="../../../org/opencv/calib3d/StereoMatcher.html#getSpeckleWindowSize--">getSpeckleWindowSize</a>, <a href="../../../org/opencv/calib3d/StereoMatcher.html#setBlockSize-int-">setBlockSize</a>, <a href="../../../org/opencv/calib3d/StereoMatcher.html#setDisp12MaxDiff-int-">setDisp12MaxDiff</a>, <a href="../../../org/opencv/calib3d/StereoMatcher.html#setMinDisparity-int-">setMinDisparity</a>, <a href="../../../org/opencv/calib3d/StereoMatcher.html#setNumDisparities-int-">setNumDisparities</a>, <a href="../../../org/opencv/calib3d/StereoMatcher.html#setSpeckleRange-int-">setSpeckleRange</a>, <a href="../../../org/opencv/calib3d/StereoMatcher.html#setSpeckleWindowSize-int-">setSpeckleWindowSize</a></code></li>
- </ul>
- <ul class="blockList">
- <li class="blockList"><a name="methods.inherited.from.class.org.opencv.core.Algorithm">
- <!-- -->
- </a>
- <h3>Methods inherited from class org.opencv.core.<a href="../../../org/opencv/core/Algorithm.html" title="class in org.opencv.core">Algorithm</a></h3>
- <code><a href="../../../org/opencv/core/Algorithm.html#clear--">clear</a>, <a href="../../../org/opencv/core/Algorithm.html#empty--">empty</a>, <a href="../../../org/opencv/core/Algorithm.html#getDefaultName--">getDefaultName</a>, <a href="../../../org/opencv/core/Algorithm.html#getNativeObjAddr--">getNativeObjAddr</a>, <a href="../../../org/opencv/core/Algorithm.html#save-java.lang.String-">save</a></code></li>
- </ul>
- <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="MODE_HH">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>MODE_HH</h4>
- <pre>public static final int MODE_HH</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.calib3d.StereoSGBM.MODE_HH">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="MODE_HH4">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>MODE_HH4</h4>
- <pre>public static final int MODE_HH4</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.calib3d.StereoSGBM.MODE_HH4">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="MODE_SGBM">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>MODE_SGBM</h4>
- <pre>public static final int MODE_SGBM</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.calib3d.StereoSGBM.MODE_SGBM">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="MODE_SGBM_3WAY">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>MODE_SGBM_3WAY</h4>
- <pre>public static final int MODE_SGBM_3WAY</pre>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../constant-values.html#org.opencv.calib3d.StereoSGBM.MODE_SGBM_3WAY">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- </li>
- </ul>
- <!-- ============ METHOD DETAIL ========== -->
- <ul class="blockList">
- <li class="blockList"><a name="method.detail">
- <!-- -->
- </a>
- <h3>Method Detail</h3>
- <a name="Z:Z__fromPtr__-long-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>__fromPtr__</h4>
- <pre>public static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a> __fromPtr__(long addr)</pre>
- </li>
- </ul>
- <a name="create--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>create</h4>
- <pre>public static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a> create()</pre>
- <div class="block">Creates StereoSGBM object
- rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.
- zero. In the current implementation, this parameter must be divisible by 16.
- somewhere in the 3..11 range.
- the smoother the disparity is. P1 is the penalty on the disparity change by plus or minus 1
- between neighbor pixels. P2 is the penalty on the disparity change by more than 1 between neighbor
- pixels. The algorithm requires P2 > P1 . See stereo_match.cpp sample where some reasonably good
- P1 and P2 values are shown (like 8\*number_of_image_channels\*blockSize\*blockSize and
- 32\*number_of_image_channels\*blockSize\*blockSize , respectively).
- disparity check. Set it to a non-positive value to disable the check.
- computes x-derivative at each pixel and clips its value by [-preFilterCap, preFilterCap] interval.
- The result values are passed to the Birchfield-Tomasi pixel cost function.
- value should "win" the second best value to consider the found match correct. Normally, a value
- within the 5-15 range is good enough.
- and invalidate. Set it to 0 to disable speckle filtering. Otherwise, set it somewhere in the
- 50-200 range.
- filtering, set the parameter to a positive value, it will be implicitly multiplied by 16.
- Normally, 1 or 2 is good enough.
- algorithm. It will consume O(W\*H\*numDisparities) bytes, which is large for 640x480 stereo and
- huge for HD-size pictures. By default, it is set to false .
- The first constructor initializes StereoSGBM with all the default parameters. So, you only have to
- set StereoSGBM::numDisparities at minimum. The second constructor enables you to set each parameter
- to a custom value.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="create-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>create</h4>
- <pre>public static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a> create(int minDisparity)</pre>
- <div class="block">Creates StereoSGBM object</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>minDisparity</code> - Minimum possible disparity value. Normally, it is zero but sometimes
- rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.
- zero. In the current implementation, this parameter must be divisible by 16.
- somewhere in the 3..11 range.
- the smoother the disparity is. P1 is the penalty on the disparity change by plus or minus 1
- between neighbor pixels. P2 is the penalty on the disparity change by more than 1 between neighbor
- pixels. The algorithm requires P2 > P1 . See stereo_match.cpp sample where some reasonably good
- P1 and P2 values are shown (like 8\*number_of_image_channels\*blockSize\*blockSize and
- 32\*number_of_image_channels\*blockSize\*blockSize , respectively).
- disparity check. Set it to a non-positive value to disable the check.
- computes x-derivative at each pixel and clips its value by [-preFilterCap, preFilterCap] interval.
- The result values are passed to the Birchfield-Tomasi pixel cost function.
- value should "win" the second best value to consider the found match correct. Normally, a value
- within the 5-15 range is good enough.
- and invalidate. Set it to 0 to disable speckle filtering. Otherwise, set it somewhere in the
- 50-200 range.
- filtering, set the parameter to a positive value, it will be implicitly multiplied by 16.
- Normally, 1 or 2 is good enough.
- algorithm. It will consume O(W\*H\*numDisparities) bytes, which is large for 640x480 stereo and
- huge for HD-size pictures. By default, it is set to false .
- The first constructor initializes StereoSGBM with all the default parameters. So, you only have to
- set StereoSGBM::numDisparities at minimum. The second constructor enables you to set each parameter
- to a custom value.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="create-int-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>create</h4>
- <pre>public static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a> create(int minDisparity,
- int numDisparities)</pre>
- <div class="block">Creates StereoSGBM object</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>minDisparity</code> - Minimum possible disparity value. Normally, it is zero but sometimes
- rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.</dd>
- <dd><code>numDisparities</code> - Maximum disparity minus minimum disparity. The value is always greater than
- zero. In the current implementation, this parameter must be divisible by 16.
- somewhere in the 3..11 range.
- the smoother the disparity is. P1 is the penalty on the disparity change by plus or minus 1
- between neighbor pixels. P2 is the penalty on the disparity change by more than 1 between neighbor
- pixels. The algorithm requires P2 > P1 . See stereo_match.cpp sample where some reasonably good
- P1 and P2 values are shown (like 8\*number_of_image_channels\*blockSize\*blockSize and
- 32\*number_of_image_channels\*blockSize\*blockSize , respectively).
- disparity check. Set it to a non-positive value to disable the check.
- computes x-derivative at each pixel and clips its value by [-preFilterCap, preFilterCap] interval.
- The result values are passed to the Birchfield-Tomasi pixel cost function.
- value should "win" the second best value to consider the found match correct. Normally, a value
- within the 5-15 range is good enough.
- and invalidate. Set it to 0 to disable speckle filtering. Otherwise, set it somewhere in the
- 50-200 range.
- filtering, set the parameter to a positive value, it will be implicitly multiplied by 16.
- Normally, 1 or 2 is good enough.
- algorithm. It will consume O(W\*H\*numDisparities) bytes, which is large for 640x480 stereo and
- huge for HD-size pictures. By default, it is set to false .
- The first constructor initializes StereoSGBM with all the default parameters. So, you only have to
- set StereoSGBM::numDisparities at minimum. The second constructor enables you to set each parameter
- to a custom value.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="create-int-int-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>create</h4>
- <pre>public static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a> create(int minDisparity,
- int numDisparities,
- int blockSize)</pre>
- <div class="block">Creates StereoSGBM object</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>minDisparity</code> - Minimum possible disparity value. Normally, it is zero but sometimes
- rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.</dd>
- <dd><code>numDisparities</code> - Maximum disparity minus minimum disparity. The value is always greater than
- zero. In the current implementation, this parameter must be divisible by 16.</dd>
- <dd><code>blockSize</code> - Matched block size. It must be an odd number >=1 . Normally, it should be
- somewhere in the 3..11 range.
- the smoother the disparity is. P1 is the penalty on the disparity change by plus or minus 1
- between neighbor pixels. P2 is the penalty on the disparity change by more than 1 between neighbor
- pixels. The algorithm requires P2 > P1 . See stereo_match.cpp sample where some reasonably good
- P1 and P2 values are shown (like 8\*number_of_image_channels\*blockSize\*blockSize and
- 32\*number_of_image_channels\*blockSize\*blockSize , respectively).
- disparity check. Set it to a non-positive value to disable the check.
- computes x-derivative at each pixel and clips its value by [-preFilterCap, preFilterCap] interval.
- The result values are passed to the Birchfield-Tomasi pixel cost function.
- value should "win" the second best value to consider the found match correct. Normally, a value
- within the 5-15 range is good enough.
- and invalidate. Set it to 0 to disable speckle filtering. Otherwise, set it somewhere in the
- 50-200 range.
- filtering, set the parameter to a positive value, it will be implicitly multiplied by 16.
- Normally, 1 or 2 is good enough.
- algorithm. It will consume O(W\*H\*numDisparities) bytes, which is large for 640x480 stereo and
- huge for HD-size pictures. By default, it is set to false .
- The first constructor initializes StereoSGBM with all the default parameters. So, you only have to
- set StereoSGBM::numDisparities at minimum. The second constructor enables you to set each parameter
- to a custom value.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="create-int-int-int-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>create</h4>
- <pre>public static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a> create(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1)</pre>
- <div class="block">Creates StereoSGBM object</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>minDisparity</code> - Minimum possible disparity value. Normally, it is zero but sometimes
- rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.</dd>
- <dd><code>numDisparities</code> - Maximum disparity minus minimum disparity. The value is always greater than
- zero. In the current implementation, this parameter must be divisible by 16.</dd>
- <dd><code>blockSize</code> - Matched block size. It must be an odd number >=1 . Normally, it should be
- somewhere in the 3..11 range.</dd>
- <dd><code>P1</code> - The first parameter controlling the disparity smoothness. See below.
- the smoother the disparity is. P1 is the penalty on the disparity change by plus or minus 1
- between neighbor pixels. P2 is the penalty on the disparity change by more than 1 between neighbor
- pixels. The algorithm requires P2 > P1 . See stereo_match.cpp sample where some reasonably good
- P1 and P2 values are shown (like 8\*number_of_image_channels\*blockSize\*blockSize and
- 32\*number_of_image_channels\*blockSize\*blockSize , respectively).
- disparity check. Set it to a non-positive value to disable the check.
- computes x-derivative at each pixel and clips its value by [-preFilterCap, preFilterCap] interval.
- The result values are passed to the Birchfield-Tomasi pixel cost function.
- value should "win" the second best value to consider the found match correct. Normally, a value
- within the 5-15 range is good enough.
- and invalidate. Set it to 0 to disable speckle filtering. Otherwise, set it somewhere in the
- 50-200 range.
- filtering, set the parameter to a positive value, it will be implicitly multiplied by 16.
- Normally, 1 or 2 is good enough.
- algorithm. It will consume O(W\*H\*numDisparities) bytes, which is large for 640x480 stereo and
- huge for HD-size pictures. By default, it is set to false .
- The first constructor initializes StereoSGBM with all the default parameters. So, you only have to
- set StereoSGBM::numDisparities at minimum. The second constructor enables you to set each parameter
- to a custom value.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="create-int-int-int-int-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>create</h4>
- <pre>public static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a> create(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1,
- int P2)</pre>
- <div class="block">Creates StereoSGBM object</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>minDisparity</code> - Minimum possible disparity value. Normally, it is zero but sometimes
- rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.</dd>
- <dd><code>numDisparities</code> - Maximum disparity minus minimum disparity. The value is always greater than
- zero. In the current implementation, this parameter must be divisible by 16.</dd>
- <dd><code>blockSize</code> - Matched block size. It must be an odd number >=1 . Normally, it should be
- somewhere in the 3..11 range.</dd>
- <dd><code>P1</code> - The first parameter controlling the disparity smoothness. See below.</dd>
- <dd><code>P2</code> - The second parameter controlling the disparity smoothness. The larger the values are,
- the smoother the disparity is. P1 is the penalty on the disparity change by plus or minus 1
- between neighbor pixels. P2 is the penalty on the disparity change by more than 1 between neighbor
- pixels. The algorithm requires P2 > P1 . See stereo_match.cpp sample where some reasonably good
- P1 and P2 values are shown (like 8\*number_of_image_channels\*blockSize\*blockSize and
- 32\*number_of_image_channels\*blockSize\*blockSize , respectively).
- disparity check. Set it to a non-positive value to disable the check.
- computes x-derivative at each pixel and clips its value by [-preFilterCap, preFilterCap] interval.
- The result values are passed to the Birchfield-Tomasi pixel cost function.
- value should "win" the second best value to consider the found match correct. Normally, a value
- within the 5-15 range is good enough.
- and invalidate. Set it to 0 to disable speckle filtering. Otherwise, set it somewhere in the
- 50-200 range.
- filtering, set the parameter to a positive value, it will be implicitly multiplied by 16.
- Normally, 1 or 2 is good enough.
- algorithm. It will consume O(W\*H\*numDisparities) bytes, which is large for 640x480 stereo and
- huge for HD-size pictures. By default, it is set to false .
- The first constructor initializes StereoSGBM with all the default parameters. So, you only have to
- set StereoSGBM::numDisparities at minimum. The second constructor enables you to set each parameter
- to a custom value.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="create-int-int-int-int-int-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>create</h4>
- <pre>public static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a> create(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1,
- int P2,
- int disp12MaxDiff)</pre>
- <div class="block">Creates StereoSGBM object</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>minDisparity</code> - Minimum possible disparity value. Normally, it is zero but sometimes
- rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.</dd>
- <dd><code>numDisparities</code> - Maximum disparity minus minimum disparity. The value is always greater than
- zero. In the current implementation, this parameter must be divisible by 16.</dd>
- <dd><code>blockSize</code> - Matched block size. It must be an odd number >=1 . Normally, it should be
- somewhere in the 3..11 range.</dd>
- <dd><code>P1</code> - The first parameter controlling the disparity smoothness. See below.</dd>
- <dd><code>P2</code> - The second parameter controlling the disparity smoothness. The larger the values are,
- the smoother the disparity is. P1 is the penalty on the disparity change by plus or minus 1
- between neighbor pixels. P2 is the penalty on the disparity change by more than 1 between neighbor
- pixels. The algorithm requires P2 > P1 . See stereo_match.cpp sample where some reasonably good
- P1 and P2 values are shown (like 8\*number_of_image_channels\*blockSize\*blockSize and
- 32\*number_of_image_channels\*blockSize\*blockSize , respectively).</dd>
- <dd><code>disp12MaxDiff</code> - Maximum allowed difference (in integer pixel units) in the left-right
- disparity check. Set it to a non-positive value to disable the check.
- computes x-derivative at each pixel and clips its value by [-preFilterCap, preFilterCap] interval.
- The result values are passed to the Birchfield-Tomasi pixel cost function.
- value should "win" the second best value to consider the found match correct. Normally, a value
- within the 5-15 range is good enough.
- and invalidate. Set it to 0 to disable speckle filtering. Otherwise, set it somewhere in the
- 50-200 range.
- filtering, set the parameter to a positive value, it will be implicitly multiplied by 16.
- Normally, 1 or 2 is good enough.
- algorithm. It will consume O(W\*H\*numDisparities) bytes, which is large for 640x480 stereo and
- huge for HD-size pictures. By default, it is set to false .
- The first constructor initializes StereoSGBM with all the default parameters. So, you only have to
- set StereoSGBM::numDisparities at minimum. The second constructor enables you to set each parameter
- to a custom value.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="create-int-int-int-int-int-int-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>create</h4>
- <pre>public static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a> create(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1,
- int P2,
- int disp12MaxDiff,
- int preFilterCap)</pre>
- <div class="block">Creates StereoSGBM object</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>minDisparity</code> - Minimum possible disparity value. Normally, it is zero but sometimes
- rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.</dd>
- <dd><code>numDisparities</code> - Maximum disparity minus minimum disparity. The value is always greater than
- zero. In the current implementation, this parameter must be divisible by 16.</dd>
- <dd><code>blockSize</code> - Matched block size. It must be an odd number >=1 . Normally, it should be
- somewhere in the 3..11 range.</dd>
- <dd><code>P1</code> - The first parameter controlling the disparity smoothness. See below.</dd>
- <dd><code>P2</code> - The second parameter controlling the disparity smoothness. The larger the values are,
- the smoother the disparity is. P1 is the penalty on the disparity change by plus or minus 1
- between neighbor pixels. P2 is the penalty on the disparity change by more than 1 between neighbor
- pixels. The algorithm requires P2 > P1 . See stereo_match.cpp sample where some reasonably good
- P1 and P2 values are shown (like 8\*number_of_image_channels\*blockSize\*blockSize and
- 32\*number_of_image_channels\*blockSize\*blockSize , respectively).</dd>
- <dd><code>disp12MaxDiff</code> - Maximum allowed difference (in integer pixel units) in the left-right
- disparity check. Set it to a non-positive value to disable the check.</dd>
- <dd><code>preFilterCap</code> - Truncation value for the prefiltered image pixels. The algorithm first
- computes x-derivative at each pixel and clips its value by [-preFilterCap, preFilterCap] interval.
- The result values are passed to the Birchfield-Tomasi pixel cost function.
- value should "win" the second best value to consider the found match correct. Normally, a value
- within the 5-15 range is good enough.
- and invalidate. Set it to 0 to disable speckle filtering. Otherwise, set it somewhere in the
- 50-200 range.
- filtering, set the parameter to a positive value, it will be implicitly multiplied by 16.
- Normally, 1 or 2 is good enough.
- algorithm. It will consume O(W\*H\*numDisparities) bytes, which is large for 640x480 stereo and
- huge for HD-size pictures. By default, it is set to false .
- The first constructor initializes StereoSGBM with all the default parameters. So, you only have to
- set StereoSGBM::numDisparities at minimum. The second constructor enables you to set each parameter
- to a custom value.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="create-int-int-int-int-int-int-int-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>create</h4>
- <pre>public static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a> create(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1,
- int P2,
- int disp12MaxDiff,
- int preFilterCap,
- int uniquenessRatio)</pre>
- <div class="block">Creates StereoSGBM object</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>minDisparity</code> - Minimum possible disparity value. Normally, it is zero but sometimes
- rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.</dd>
- <dd><code>numDisparities</code> - Maximum disparity minus minimum disparity. The value is always greater than
- zero. In the current implementation, this parameter must be divisible by 16.</dd>
- <dd><code>blockSize</code> - Matched block size. It must be an odd number >=1 . Normally, it should be
- somewhere in the 3..11 range.</dd>
- <dd><code>P1</code> - The first parameter controlling the disparity smoothness. See below.</dd>
- <dd><code>P2</code> - The second parameter controlling the disparity smoothness. The larger the values are,
- the smoother the disparity is. P1 is the penalty on the disparity change by plus or minus 1
- between neighbor pixels. P2 is the penalty on the disparity change by more than 1 between neighbor
- pixels. The algorithm requires P2 > P1 . See stereo_match.cpp sample where some reasonably good
- P1 and P2 values are shown (like 8\*number_of_image_channels\*blockSize\*blockSize and
- 32\*number_of_image_channels\*blockSize\*blockSize , respectively).</dd>
- <dd><code>disp12MaxDiff</code> - Maximum allowed difference (in integer pixel units) in the left-right
- disparity check. Set it to a non-positive value to disable the check.</dd>
- <dd><code>preFilterCap</code> - Truncation value for the prefiltered image pixels. The algorithm first
- computes x-derivative at each pixel and clips its value by [-preFilterCap, preFilterCap] interval.
- The result values are passed to the Birchfield-Tomasi pixel cost function.</dd>
- <dd><code>uniquenessRatio</code> - Margin in percentage by which the best (minimum) computed cost function
- value should "win" the second best value to consider the found match correct. Normally, a value
- within the 5-15 range is good enough.
- and invalidate. Set it to 0 to disable speckle filtering. Otherwise, set it somewhere in the
- 50-200 range.
- filtering, set the parameter to a positive value, it will be implicitly multiplied by 16.
- Normally, 1 or 2 is good enough.
- algorithm. It will consume O(W\*H\*numDisparities) bytes, which is large for 640x480 stereo and
- huge for HD-size pictures. By default, it is set to false .
- The first constructor initializes StereoSGBM with all the default parameters. So, you only have to
- set StereoSGBM::numDisparities at minimum. The second constructor enables you to set each parameter
- to a custom value.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="create-int-int-int-int-int-int-int-int-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>create</h4>
- <pre>public static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a> create(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1,
- int P2,
- int disp12MaxDiff,
- int preFilterCap,
- int uniquenessRatio,
- int speckleWindowSize)</pre>
- <div class="block">Creates StereoSGBM object</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>minDisparity</code> - Minimum possible disparity value. Normally, it is zero but sometimes
- rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.</dd>
- <dd><code>numDisparities</code> - Maximum disparity minus minimum disparity. The value is always greater than
- zero. In the current implementation, this parameter must be divisible by 16.</dd>
- <dd><code>blockSize</code> - Matched block size. It must be an odd number >=1 . Normally, it should be
- somewhere in the 3..11 range.</dd>
- <dd><code>P1</code> - The first parameter controlling the disparity smoothness. See below.</dd>
- <dd><code>P2</code> - The second parameter controlling the disparity smoothness. The larger the values are,
- the smoother the disparity is. P1 is the penalty on the disparity change by plus or minus 1
- between neighbor pixels. P2 is the penalty on the disparity change by more than 1 between neighbor
- pixels. The algorithm requires P2 > P1 . See stereo_match.cpp sample where some reasonably good
- P1 and P2 values are shown (like 8\*number_of_image_channels\*blockSize\*blockSize and
- 32\*number_of_image_channels\*blockSize\*blockSize , respectively).</dd>
- <dd><code>disp12MaxDiff</code> - Maximum allowed difference (in integer pixel units) in the left-right
- disparity check. Set it to a non-positive value to disable the check.</dd>
- <dd><code>preFilterCap</code> - Truncation value for the prefiltered image pixels. The algorithm first
- computes x-derivative at each pixel and clips its value by [-preFilterCap, preFilterCap] interval.
- The result values are passed to the Birchfield-Tomasi pixel cost function.</dd>
- <dd><code>uniquenessRatio</code> - Margin in percentage by which the best (minimum) computed cost function
- value should "win" the second best value to consider the found match correct. Normally, a value
- within the 5-15 range is good enough.</dd>
- <dd><code>speckleWindowSize</code> - Maximum size of smooth disparity regions to consider their noise speckles
- and invalidate. Set it to 0 to disable speckle filtering. Otherwise, set it somewhere in the
- 50-200 range.
- filtering, set the parameter to a positive value, it will be implicitly multiplied by 16.
- Normally, 1 or 2 is good enough.
- algorithm. It will consume O(W\*H\*numDisparities) bytes, which is large for 640x480 stereo and
- huge for HD-size pictures. By default, it is set to false .
- The first constructor initializes StereoSGBM with all the default parameters. So, you only have to
- set StereoSGBM::numDisparities at minimum. The second constructor enables you to set each parameter
- to a custom value.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="create-int-int-int-int-int-int-int-int-int-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>create</h4>
- <pre>public static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a> create(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1,
- int P2,
- int disp12MaxDiff,
- int preFilterCap,
- int uniquenessRatio,
- int speckleWindowSize,
- int speckleRange)</pre>
- <div class="block">Creates StereoSGBM object</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>minDisparity</code> - Minimum possible disparity value. Normally, it is zero but sometimes
- rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.</dd>
- <dd><code>numDisparities</code> - Maximum disparity minus minimum disparity. The value is always greater than
- zero. In the current implementation, this parameter must be divisible by 16.</dd>
- <dd><code>blockSize</code> - Matched block size. It must be an odd number >=1 . Normally, it should be
- somewhere in the 3..11 range.</dd>
- <dd><code>P1</code> - The first parameter controlling the disparity smoothness. See below.</dd>
- <dd><code>P2</code> - The second parameter controlling the disparity smoothness. The larger the values are,
- the smoother the disparity is. P1 is the penalty on the disparity change by plus or minus 1
- between neighbor pixels. P2 is the penalty on the disparity change by more than 1 between neighbor
- pixels. The algorithm requires P2 > P1 . See stereo_match.cpp sample where some reasonably good
- P1 and P2 values are shown (like 8\*number_of_image_channels\*blockSize\*blockSize and
- 32\*number_of_image_channels\*blockSize\*blockSize , respectively).</dd>
- <dd><code>disp12MaxDiff</code> - Maximum allowed difference (in integer pixel units) in the left-right
- disparity check. Set it to a non-positive value to disable the check.</dd>
- <dd><code>preFilterCap</code> - Truncation value for the prefiltered image pixels. The algorithm first
- computes x-derivative at each pixel and clips its value by [-preFilterCap, preFilterCap] interval.
- The result values are passed to the Birchfield-Tomasi pixel cost function.</dd>
- <dd><code>uniquenessRatio</code> - Margin in percentage by which the best (minimum) computed cost function
- value should "win" the second best value to consider the found match correct. Normally, a value
- within the 5-15 range is good enough.</dd>
- <dd><code>speckleWindowSize</code> - Maximum size of smooth disparity regions to consider their noise speckles
- and invalidate. Set it to 0 to disable speckle filtering. Otherwise, set it somewhere in the
- 50-200 range.</dd>
- <dd><code>speckleRange</code> - Maximum disparity variation within each connected component. If you do speckle
- filtering, set the parameter to a positive value, it will be implicitly multiplied by 16.
- Normally, 1 or 2 is good enough.
- algorithm. It will consume O(W\*H\*numDisparities) bytes, which is large for 640x480 stereo and
- huge for HD-size pictures. By default, it is set to false .
- The first constructor initializes StereoSGBM with all the default parameters. So, you only have to
- set StereoSGBM::numDisparities at minimum. The second constructor enables you to set each parameter
- to a custom value.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="create-int-int-int-int-int-int-int-int-int-int-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>create</h4>
- <pre>public static <a href="../../../org/opencv/calib3d/StereoSGBM.html" title="class in org.opencv.calib3d">StereoSGBM</a> create(int minDisparity,
- int numDisparities,
- int blockSize,
- int P1,
- int P2,
- int disp12MaxDiff,
- int preFilterCap,
- int uniquenessRatio,
- int speckleWindowSize,
- int speckleRange,
- int mode)</pre>
- <div class="block">Creates StereoSGBM object</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>minDisparity</code> - Minimum possible disparity value. Normally, it is zero but sometimes
- rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.</dd>
- <dd><code>numDisparities</code> - Maximum disparity minus minimum disparity. The value is always greater than
- zero. In the current implementation, this parameter must be divisible by 16.</dd>
- <dd><code>blockSize</code> - Matched block size. It must be an odd number >=1 . Normally, it should be
- somewhere in the 3..11 range.</dd>
- <dd><code>P1</code> - The first parameter controlling the disparity smoothness. See below.</dd>
- <dd><code>P2</code> - The second parameter controlling the disparity smoothness. The larger the values are,
- the smoother the disparity is. P1 is the penalty on the disparity change by plus or minus 1
- between neighbor pixels. P2 is the penalty on the disparity change by more than 1 between neighbor
- pixels. The algorithm requires P2 > P1 . See stereo_match.cpp sample where some reasonably good
- P1 and P2 values are shown (like 8\*number_of_image_channels\*blockSize\*blockSize and
- 32\*number_of_image_channels\*blockSize\*blockSize , respectively).</dd>
- <dd><code>disp12MaxDiff</code> - Maximum allowed difference (in integer pixel units) in the left-right
- disparity check. Set it to a non-positive value to disable the check.</dd>
- <dd><code>preFilterCap</code> - Truncation value for the prefiltered image pixels. The algorithm first
- computes x-derivative at each pixel and clips its value by [-preFilterCap, preFilterCap] interval.
- The result values are passed to the Birchfield-Tomasi pixel cost function.</dd>
- <dd><code>uniquenessRatio</code> - Margin in percentage by which the best (minimum) computed cost function
- value should "win" the second best value to consider the found match correct. Normally, a value
- within the 5-15 range is good enough.</dd>
- <dd><code>speckleWindowSize</code> - Maximum size of smooth disparity regions to consider their noise speckles
- and invalidate. Set it to 0 to disable speckle filtering. Otherwise, set it somewhere in the
- 50-200 range.</dd>
- <dd><code>speckleRange</code> - Maximum disparity variation within each connected component. If you do speckle
- filtering, set the parameter to a positive value, it will be implicitly multiplied by 16.
- Normally, 1 or 2 is good enough.</dd>
- <dd><code>mode</code> - Set it to StereoSGBM::MODE_HH to run the full-scale two-pass dynamic programming
- algorithm. It will consume O(W\*H\*numDisparities) bytes, which is large for 640x480 stereo and
- huge for HD-size pictures. By default, it is set to false .
- The first constructor initializes StereoSGBM with all the default parameters. So, you only have to
- set StereoSGBM::numDisparities at minimum. The second constructor enables you to set each parameter
- to a custom value.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>automatically generated</dd>
- </dl>
- </li>
- </ul>
- <a name="getMode--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getMode</h4>
- <pre>public int getMode()</pre>
- </li>
- </ul>
- <a name="getP1--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getP1</h4>
- <pre>public int getP1()</pre>
- </li>
- </ul>
- <a name="getP2--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getP2</h4>
- <pre>public int getP2()</pre>
- </li>
- </ul>
- <a name="getPreFilterCap--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getPreFilterCap</h4>
- <pre>public int getPreFilterCap()</pre>
- </li>
- </ul>
- <a name="getUniquenessRatio--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getUniquenessRatio</h4>
- <pre>public int getUniquenessRatio()</pre>
- </li>
- </ul>
- <a name="setMode-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>setMode</h4>
- <pre>public void setMode(int mode)</pre>
- </li>
- </ul>
- <a name="setP1-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>setP1</h4>
- <pre>public void setP1(int P1)</pre>
- </li>
- </ul>
- <a name="setP2-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>setP2</h4>
- <pre>public void setP2(int P2)</pre>
- </li>
- </ul>
- <a name="setPreFilterCap-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>setPreFilterCap</h4>
- <pre>public void setPreFilterCap(int preFilterCap)</pre>
- </li>
- </ul>
- <a name="setUniquenessRatio-int-">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>setUniquenessRatio</h4>
- <pre>public void setUniquenessRatio(int uniquenessRatio)</pre>
- </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/calib3d/StereoMatcher.html" title="class in org.opencv.calib3d"><span class="typeNameLink">Prev Class</span></a></li>
- <li><a href="../../../org/opencv/calib3d/UsacParams.html" title="class in org.opencv.calib3d"><span class="typeNameLink">Next Class</span></a></li>
- </ul>
- <ul class="navList">
- <li><a href="../../../index.html?org/opencv/calib3d/StereoSGBM.html" target="_top">Frames</a></li>
- <li><a href="StereoSGBM.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>Constr | </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>Constr | </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>
|