Skip to content

Commit

Permalink
Deploying to gh-pages from @ fury-gl/fury@74fd1bc 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
skoudoro committed Feb 27, 2024
1 parent 98f6e2a commit 2a9e124
Show file tree
Hide file tree
Showing 300 changed files with 935 additions and 584 deletions.
2 changes: 1 addition & 1 deletion v0.9.x/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 886491205fcdd95a3a51ff97d0f0d323
config: a763c5b6b666bd71306fd0b0ab4cbfba
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified v0.9.x/.doctrees/community.doctree
Binary file not shown.
Binary file modified v0.9.x/.doctrees/environment.pickle
Binary file not shown.
Binary file modified v0.9.x/.doctrees/reference/fury.actor.doctree
Binary file not shown.
Binary file modified v0.9.x/.doctrees/reference/fury.actors.doctree
Binary file not shown.
Binary file modified v0.9.x/.doctrees/reference/fury.deprecator.doctree
Binary file not shown.
4 changes: 2 additions & 2 deletions v0.9.x/_modules/fury.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>fury &#8212; FURY 0.10.0.dev364+gc8aa25b6 documentation</title>
<title>fury &#8212; FURY 0.10.0.dev379+g74fd1bc7 documentation</title>



Expand Down Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="../_static/scripts/bootstrap.js?digest=796348d33e8b1d947c94">
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=796348d33e8b1d947c94">

<script src="../_static/documentation_options.js?v=01f462c8"></script>
<script src="../_static/documentation_options.js?v=1596a899"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/clipboard.min.js?v=a7894cd8"></script>
Expand Down
66 changes: 63 additions & 3 deletions v0.9.x/_modules/fury/actor.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>fury.actor &#8212; FURY 0.10.0.dev364+gc8aa25b6 documentation</title>
<title>fury.actor &#8212; FURY 0.10.0.dev379+g74fd1bc7 documentation</title>



Expand Down Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="../../_static/scripts/bootstrap.js?digest=796348d33e8b1d947c94">
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=796348d33e8b1d947c94">

<script src="../../_static/documentation_options.js?v=01f462c8"></script>
<script src="../../_static/documentation_options.js?v=1596a899"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
Expand Down Expand Up @@ -299,7 +299,8 @@ <h1>Source code for fury.actor</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">fury</span> <span class="kn">import</span> <span class="n">layout</span>
<span class="kn">from</span> <span class="nn">fury.actors.odf_slicer</span> <span class="kn">import</span> <span class="n">OdfSlicerActor</span>
<span class="kn">from</span> <span class="nn">fury.actors.peak</span> <span class="kn">import</span> <span class="n">PeakActor</span>
<span class="kn">from</span> <span class="nn">fury.actors.tensor</span> <span class="kn">import</span> <span class="n">tensor_ellipsoid</span>
<span class="kn">from</span> <span class="nn">fury.actors.tensor</span> <span class="kn">import</span> <span class="n">double_cone</span><span class="p">,</span> <span class="n">main_dir_uncertainty</span><span class="p">,</span> \
<span class="n">tensor_ellipsoid</span>
<span class="kn">from</span> <span class="nn">fury.colormap</span> <span class="kn">import</span> <span class="n">colormap_lookup_table</span>
<span class="kn">from</span> <span class="nn">fury.deprecator</span> <span class="kn">import</span> <span class="n">deprecate_with_version</span><span class="p">,</span> <span class="n">deprecated_params</span>
<span class="kn">from</span> <span class="nn">fury.io</span> <span class="kn">import</span> <span class="n">load_image</span>
Expand Down Expand Up @@ -4362,6 +4363,65 @@ <h1>Source code for fury.actor</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="n">tensor_ellipsoid</span><span class="p">(</span><span class="n">centers</span><span class="p">,</span> <span class="n">axes</span><span class="p">,</span> <span class="n">lengths</span><span class="p">,</span> <span class="n">colors</span><span class="p">,</span> <span class="n">scales</span><span class="p">,</span> <span class="n">opacity</span><span class="p">)</span></div>



<div class="viewcode-block" id="uncertainty_cone">
<a class="viewcode-back" href="../../reference/fury.actor.html#fury.actor.uncertainty_cone">[docs]</a>
<span class="k">def</span> <span class="nf">uncertainty_cone</span><span class="p">(</span>
<span class="n">evals</span><span class="p">,</span>
<span class="n">evecs</span><span class="p">,</span>
<span class="n">signal</span><span class="p">,</span>
<span class="n">sigma</span><span class="p">,</span>
<span class="n">b_matrix</span><span class="p">,</span>
<span class="n">scales</span><span class="o">=</span><span class="mf">.6</span><span class="p">,</span>
<span class="n">opacity</span><span class="o">=</span><span class="mf">1.0</span>
<span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> VTK actor for visualizing the cone of uncertainty representing the</span>
<span class="sd"> variance of the main direction of diffusion.</span>

<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> evals : ndarray (3, ) or (N, 3)</span>
<span class="sd"> Eigenvalues.</span>
<span class="sd"> evecs : ndarray (3, 3) or (N, 3, 3)</span>
<span class="sd"> Eigenvectors.</span>
<span class="sd"> signal : 3D or 4D ndarray</span>
<span class="sd"> Predicted signal.</span>
<span class="sd"> sigma : ndarray</span>
<span class="sd"> Standard deviation of the noise.</span>
<span class="sd"> b_matrix : array (N, 7)</span>
<span class="sd"> Design matrix for DTI.</span>
<span class="sd"> scales : float or ndarray (N, ), optional</span>
<span class="sd"> Cones of uncertainty size.</span>
<span class="sd"> opacity : float, optional</span>
<span class="sd"> Takes values from 0 (fully transparent) to 1 (opaque), default(1.0).</span>

<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> double_cone: Actor</span>

<span class="sd"> &quot;&quot;&quot;</span>

<span class="n">valid_mask</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">abs</span><span class="p">(</span><span class="n">evecs</span><span class="p">)</span><span class="o">.</span><span class="n">max</span><span class="p">(</span><span class="n">axis</span><span class="o">=</span><span class="p">(</span><span class="o">-</span><span class="mi">2</span><span class="p">,</span> <span class="o">-</span><span class="mi">1</span><span class="p">))</span> <span class="o">&gt;</span> <span class="mi">0</span>
<span class="n">indices</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">nonzero</span><span class="p">(</span><span class="n">valid_mask</span><span class="p">)</span>

<span class="n">evecs</span> <span class="o">=</span> <span class="n">evecs</span><span class="p">[</span><span class="n">indices</span><span class="p">]</span>
<span class="n">evals</span> <span class="o">=</span> <span class="n">evals</span><span class="p">[</span><span class="n">indices</span><span class="p">]</span>
<span class="n">signal</span> <span class="o">=</span> <span class="n">signal</span><span class="p">[</span><span class="n">indices</span><span class="p">]</span>

<span class="n">centers</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">asarray</span><span class="p">(</span><span class="n">indices</span><span class="p">)</span><span class="o">.</span><span class="n">T</span>
<span class="n">colors</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">([</span><span class="mi">107</span><span class="p">,</span> <span class="mi">107</span><span class="p">,</span> <span class="mi">107</span><span class="p">])</span>

<span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">,</span> <span class="n">z</span> <span class="o">=</span> <span class="n">evecs</span><span class="o">.</span><span class="n">shape</span>
<span class="k">if</span> <span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">scales</span><span class="p">,</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">):</span>
<span class="n">scales</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">scales</span><span class="p">)</span>
<span class="k">if</span> <span class="n">scales</span><span class="o">.</span><span class="n">size</span> <span class="o">==</span> <span class="mi">1</span><span class="p">:</span>
<span class="n">scales</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">repeat</span><span class="p">(</span><span class="n">scales</span><span class="p">,</span> <span class="n">x</span><span class="p">)</span>

<span class="n">angles</span> <span class="o">=</span> <span class="n">main_dir_uncertainty</span><span class="p">(</span><span class="n">evals</span><span class="p">,</span> <span class="n">evecs</span><span class="p">,</span> <span class="n">signal</span><span class="p">,</span> <span class="n">sigma</span><span class="p">,</span> <span class="n">b_matrix</span><span class="p">)</span>

<span class="k">return</span> <span class="n">double_cone</span><span class="p">(</span><span class="n">centers</span><span class="p">,</span> <span class="n">evecs</span><span class="p">,</span> <span class="n">angles</span><span class="p">,</span> <span class="n">colors</span><span class="p">,</span> <span class="n">scales</span><span class="p">,</span> <span class="n">opacity</span><span class="p">)</span></div>

</pre></div>
<div class="section ablog__blog_comments">

Expand Down
4 changes: 2 additions & 2 deletions v0.9.x/_modules/fury/actors/odf_slicer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>fury.actors.odf_slicer &#8212; FURY 0.10.0.dev364+gc8aa25b6 documentation</title>
<title>fury.actors.odf_slicer &#8212; FURY 0.10.0.dev379+g74fd1bc7 documentation</title>



Expand Down Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="../../../_static/scripts/bootstrap.js?digest=796348d33e8b1d947c94">
<link rel="preload" as="script" href="../../../_static/scripts/pydata-sphinx-theme.js?digest=796348d33e8b1d947c94">

<script src="../../../_static/documentation_options.js?v=01f462c8"></script>
<script src="../../../_static/documentation_options.js?v=1596a899"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/clipboard.min.js?v=a7894cd8"></script>
Expand Down
4 changes: 2 additions & 2 deletions v0.9.x/_modules/fury/actors/peak.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>fury.actors.peak &#8212; FURY 0.10.0.dev364+gc8aa25b6 documentation</title>
<title>fury.actors.peak &#8212; FURY 0.10.0.dev379+g74fd1bc7 documentation</title>



Expand Down Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="../../../_static/scripts/bootstrap.js?digest=796348d33e8b1d947c94">
<link rel="preload" as="script" href="../../../_static/scripts/pydata-sphinx-theme.js?digest=796348d33e8b1d947c94">

<script src="../../../_static/documentation_options.js?v=01f462c8"></script>
<script src="../../../_static/documentation_options.js?v=1596a899"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/clipboard.min.js?v=a7894cd8"></script>
Expand Down
Loading

0 comments on commit 2a9e124

Please sign in to comment.