Skip to content

Commit

Permalink
Release 1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
decadenza committed Nov 4, 2023
1 parent b9f686c commit 40a4eb4
Show file tree
Hide file tree
Showing 23 changed files with 816 additions and 363 deletions.
19 changes: 9 additions & 10 deletions docs/_modules/index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@

<!DOCTYPE html>

<html lang="en">
<html lang="en" data-content_root="../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &#8212; SimpleStereo 1 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/nature.css" />
<link rel="stylesheet" type="text/css" href="../_static/custom.css" />
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/sphinx_highlight.js"></script>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=a746c00c" />
<link rel="stylesheet" type="text/css" href="../_static/nature.css?v=601dbdee" />
<link rel="stylesheet" type="text/css" href="../_static/custom.css?v=0d33fa41" />
<script src="../_static/documentation_options.js?v=29a6c3e3"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="icon" href="../_static/favicon.ico"/>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
Expand Down Expand Up @@ -79,8 +78,8 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2023, decadenza.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.3.
&#169; Copyright 2023, decadenza.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
</div>
</body>
</html>
127 changes: 93 additions & 34 deletions docs/_modules/simplestereo/_rigs.html

Large diffs are not rendered by default.

136 changes: 99 additions & 37 deletions docs/_modules/simplestereo/active.html

Large diffs are not rendered by default.

132 changes: 104 additions & 28 deletions docs/_modules/simplestereo/calibration.html

Large diffs are not rendered by default.

43 changes: 27 additions & 16 deletions docs/_modules/simplestereo/passive.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@

<!DOCTYPE html>

<html lang="en">
<html lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>simplestereo.passive &#8212; SimpleStereo 1 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/nature.css" />
<link rel="stylesheet" type="text/css" href="../../_static/custom.css" />
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
<script src="../../_static/doctools.js"></script>
<script src="../../_static/sphinx_highlight.js"></script>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=a746c00c" />
<link rel="stylesheet" type="text/css" href="../../_static/nature.css?v=601dbdee" />
<link rel="stylesheet" type="text/css" href="../../_static/custom.css?v=0d33fa41" />
<script src="../../_static/documentation_options.js?v=29a6c3e3"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="icon" href="../../_static/favicon.ico"/>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
Expand Down Expand Up @@ -52,7 +51,9 @@ <h1>Source code for simplestereo.passive</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">simplestereo</span> <span class="kn">import</span> <span class="n">_passive</span>


<div class="viewcode-block" id="StereoASW"><a class="viewcode-back" href="../../simplestereo.html#simplestereo.passive.StereoASW">[docs]</a><span class="k">class</span> <span class="nc">StereoASW</span><span class="p">():</span>
<div class="viewcode-block" id="StereoASW">
<a class="viewcode-back" href="../../simplestereo.html#simplestereo.passive.StereoASW">[docs]</a>
<span class="k">class</span> <span class="nc">StereoASW</span><span class="p">():</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Custom implementation of &quot;Adaptive Support-Weight Approach</span>
<span class="sd"> for Correspondence Search&quot;, K. Yoon, I. Kweon, 2006.</span>
Expand Down Expand Up @@ -108,7 +109,9 @@ <h1>Source code for simplestereo.passive</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">consistent</span> <span class="o">=</span> <span class="n">consistent</span>


<div class="viewcode-block" id="StereoASW.compute"><a class="viewcode-back" href="../../simplestereo.html#simplestereo.passive.StereoASW.compute">[docs]</a> <span class="k">def</span> <span class="nf">compute</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">img1</span><span class="p">,</span> <span class="n">img2</span><span class="p">):</span>
<div class="viewcode-block" id="StereoASW.compute">
<a class="viewcode-back" href="../../simplestereo.html#simplestereo.passive.StereoASW.compute">[docs]</a>
<span class="k">def</span> <span class="nf">compute</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">img1</span><span class="p">,</span> <span class="n">img2</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Compute disparity map for BGR images.</span>
<span class="sd"> </span>
Expand All @@ -128,14 +131,18 @@ <h1>Source code for simplestereo.passive</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">maxDisparity</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">minDisparity</span><span class="p">,</span>
<span class="bp">self</span><span class="o">.</span><span class="n">gammaC</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">gammaP</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">consistent</span><span class="p">)</span>

<span class="k">return</span> <span class="n">disparityMap</span></div></div>
<span class="k">return</span> <span class="n">disparityMap</span></div>
</div>







<div class="viewcode-block" id="StereoGSW"><a class="viewcode-back" href="../../simplestereo.html#simplestereo.passive.StereoGSW">[docs]</a><span class="k">class</span> <span class="nc">StereoGSW</span><span class="p">():</span>
<div class="viewcode-block" id="StereoGSW">
<a class="viewcode-back" href="../../simplestereo.html#simplestereo.passive.StereoGSW">[docs]</a>
<span class="k">class</span> <span class="nc">StereoGSW</span><span class="p">():</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> *Incomplete* implementation of &quot;Local stereo matching using geodesic support weights&quot;,</span>
<span class="sd"> Asmaa Hosni, Michael Bleyer, Margrit Gelautz and Christoph Rhemann (2009).</span>
Expand Down Expand Up @@ -183,7 +190,9 @@ <h1>Source code for simplestereo.passive</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">iterations</span> <span class="o">=</span> <span class="n">iterations</span>
<span class="bp">self</span><span class="o">.</span><span class="n">bins</span> <span class="o">=</span> <span class="n">bins</span>

<div class="viewcode-block" id="StereoGSW.compute"><a class="viewcode-back" href="../../simplestereo.html#simplestereo.passive.StereoGSW.compute">[docs]</a> <span class="k">def</span> <span class="nf">compute</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">img1</span><span class="p">,</span> <span class="n">img2</span><span class="p">):</span>
<div class="viewcode-block" id="StereoGSW.compute">
<a class="viewcode-back" href="../../simplestereo.html#simplestereo.passive.StereoGSW.compute">[docs]</a>
<span class="k">def</span> <span class="nf">compute</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">img1</span><span class="p">,</span> <span class="n">img2</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Compute disparity map for 3-color channel images.</span>
<span class="sd"> &quot;&quot;&quot;</span>
Expand All @@ -194,7 +203,9 @@ <h1>Source code for simplestereo.passive</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">gamma</span><span class="p">,</span><span class="bp">self</span><span class="o">.</span><span class="n">fMax</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">iterations</span><span class="p">,</span>
<span class="bp">self</span><span class="o">.</span><span class="n">bins</span><span class="p">)</span>

<span class="k">return</span> <span class="n">disparityMap</span></div></div>
<span class="k">return</span> <span class="n">disparityMap</span></div>
</div>


</pre></div>

Expand Down Expand Up @@ -233,8 +244,8 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2023, decadenza.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.3.
&#169; Copyright 2023, decadenza.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
</div>
</body>
</html>
39 changes: 25 additions & 14 deletions docs/_modules/simplestereo/points.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@

<!DOCTYPE html>

<html lang="en">
<html lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>simplestereo.points &#8212; SimpleStereo 1 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/nature.css" />
<link rel="stylesheet" type="text/css" href="../../_static/custom.css" />
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
<script src="../../_static/doctools.js"></script>
<script src="../../_static/sphinx_highlight.js"></script>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=a746c00c" />
<link rel="stylesheet" type="text/css" href="../../_static/nature.css?v=601dbdee" />
<link rel="stylesheet" type="text/css" href="../../_static/custom.css?v=0d33fa41" />
<script src="../../_static/documentation_options.js?v=29a6c3e3"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="icon" href="../../_static/favicon.ico"/>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
Expand Down Expand Up @@ -46,7 +45,9 @@ <h1>Source code for simplestereo.points</h1><div class="highlight"><pre>
<span class="kn">import</span> <span class="nn">cv2</span>


<div class="viewcode-block" id="exportPLY"><a class="viewcode-back" href="../../simplestereo.html#simplestereo.points.exportPLY">[docs]</a><span class="k">def</span> <span class="nf">exportPLY</span><span class="p">(</span><span class="n">points3D</span><span class="p">,</span> <span class="n">filepath</span><span class="p">,</span> <span class="n">referenceImage</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">precision</span><span class="o">=</span><span class="mi">6</span><span class="p">):</span>
<div class="viewcode-block" id="exportPLY">
<a class="viewcode-back" href="../../simplestereo.html#simplestereo.points.exportPLY">[docs]</a>
<span class="k">def</span> <span class="nf">exportPLY</span><span class="p">(</span><span class="n">points3D</span><span class="p">,</span> <span class="n">filepath</span><span class="p">,</span> <span class="n">referenceImage</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">precision</span><span class="o">=</span><span class="mi">6</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Export raw point cloud to PLY file (ASCII).</span>
<span class="sd"> </span>
Expand Down Expand Up @@ -118,7 +119,10 @@ <h1>Source code for simplestereo.points</h1><div class="highlight"><pre>
<span class="n">points3D</span><span class="p">[</span><span class="n">i</span><span class="p">,</span><span class="mi">0</span><span class="p">],</span> <span class="n">points3D</span><span class="p">[</span><span class="n">i</span><span class="p">,</span><span class="mi">1</span><span class="p">],</span> <span class="n">points3D</span><span class="p">[</span><span class="n">i</span><span class="p">,</span><span class="mi">2</span><span class="p">],</span>
<span class="n">referenceImage</span><span class="p">[</span><span class="n">i</span><span class="p">],</span> <span class="n">p</span><span class="o">=</span><span class="n">precision</span><span class="p">))</span> <span class="c1"># Grayscale</span></div>

<div class="viewcode-block" id="importPLY"><a class="viewcode-back" href="../../simplestereo.html#simplestereo.points.importPLY">[docs]</a><span class="k">def</span> <span class="nf">importPLY</span><span class="p">(</span><span class="n">filename</span><span class="p">,</span> <span class="o">*</span><span class="n">properties</span><span class="p">):</span>

<div class="viewcode-block" id="importPLY">
<a class="viewcode-back" href="../../simplestereo.html#simplestereo.points.importPLY">[docs]</a>
<span class="k">def</span> <span class="nf">importPLY</span><span class="p">(</span><span class="n">filename</span><span class="p">,</span> <span class="o">*</span><span class="n">properties</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Import 3D coordinates from PLY file.</span>
<span class="sd"> </span>
Expand Down Expand Up @@ -160,7 +164,10 @@ <h1>Source code for simplestereo.points</h1><div class="highlight"><pre>



<div class="viewcode-block" id="getAdimensional3DPoints"><a class="viewcode-back" href="../../simplestereo.html#simplestereo.points.getAdimensional3DPoints">[docs]</a><span class="k">def</span> <span class="nf">getAdimensional3DPoints</span><span class="p">(</span><span class="n">disparityMap</span><span class="p">):</span>

<div class="viewcode-block" id="getAdimensional3DPoints">
<a class="viewcode-back" href="../../simplestereo.html#simplestereo.points.getAdimensional3DPoints">[docs]</a>
<span class="k">def</span> <span class="nf">getAdimensional3DPoints</span><span class="p">(</span><span class="n">disparityMap</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Get adimensional 3D points from the disparity map.</span>
<span class="sd"> </span>
Expand Down Expand Up @@ -215,7 +222,10 @@ <h1>Source code for simplestereo.points</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="n">cv2</span><span class="o">.</span><span class="n">reprojectImageTo3D</span><span class="p">(</span><span class="n">disparityMap</span><span class="p">,</span> <span class="n">Q</span><span class="p">)</span></div>


<div class="viewcode-block" id="distortPoints"><a class="viewcode-back" href="../../simplestereo.html#simplestereo.points.distortPoints">[docs]</a><span class="k">def</span> <span class="nf">distortPoints</span><span class="p">(</span><span class="n">points</span><span class="p">,</span> <span class="n">distCoeff</span><span class="p">):</span>

<div class="viewcode-block" id="distortPoints">
<a class="viewcode-back" href="../../simplestereo.html#simplestereo.points.distortPoints">[docs]</a>
<span class="k">def</span> <span class="nf">distortPoints</span><span class="p">(</span><span class="n">points</span><span class="p">,</span> <span class="n">distCoeff</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&#39;&#39;&#39;</span>
<span class="sd"> Undistort relative coordinate points.</span>
<span class="sd"> </span>
Expand Down Expand Up @@ -257,6 +267,7 @@ <h1>Source code for simplestereo.points</h1><div class="highlight"><pre>
<span class="n">distPoints</span><span class="o">.</span><span class="n">append</span><span class="p">([(</span><span class="n">xd</span><span class="p">,</span><span class="n">yd</span><span class="p">)])</span>

<span class="k">return</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">distPoints</span><span class="p">)</span></div>

</pre></div>

<div class="clearer"></div>
Expand Down Expand Up @@ -294,8 +305,8 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2023, decadenza.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.3.
&#169; Copyright 2023, decadenza.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
</div>
</body>
</html>
Loading

0 comments on commit 40a4eb4

Please sign in to comment.