Skip to content

Commit

Permalink
Add docs for vertical slice reconstruction
Browse files Browse the repository at this point in the history
  • Loading branch information
nghia-vo committed May 7, 2024
1 parent 1b66280 commit f314099
Show file tree
Hide file tree
Showing 111 changed files with 6,661 additions and 397 deletions.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/toc/api.doctree
Binary file not shown.
Binary file modified .doctrees/toc/api/algotom.io.converter.doctree
Binary file not shown.
Binary file modified .doctrees/toc/api/algotom.io.loadersaver.doctree
Binary file not shown.
Binary file modified .doctrees/toc/api/algotom.prep.calculation.doctree
Binary file not shown.
Binary file modified .doctrees/toc/api/algotom.rec.reconstruction.doctree
Binary file not shown.
Binary file added .doctrees/toc/api/algotom.rec.vertrec.doctree
Binary file not shown.
Binary file modified .doctrees/toc/section2.doctree
Binary file not shown.
Binary file modified .doctrees/toc/section3.doctree
Binary file not shown.
Binary file modified .doctrees/toc/section4/section4_5.doctree
Binary file not shown.
Binary file modified .doctrees/toc/section5.doctree
Binary file not shown.
Binary file added .doctrees/toc/section5/section5_2.doctree
Binary file not shown.
Binary file modified .doctrees/toc/section6.doctree
Binary file not shown.
82 changes: 47 additions & 35 deletions .idea/workspace.xml

Large diffs are not rendered by default.

Binary file added _images/fig_2_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/fig_2_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/fig_5_2_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/fig_5_2_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/fig_5_2_11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/fig_5_2_12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/fig_5_2_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/fig_5_2_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/fig_5_2_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/fig_5_2_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/fig_5_2_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/fig_5_2_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/fig_5_2_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/fig_5_2_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
408 changes: 217 additions & 191 deletions _modules/algotom/io/converter.html

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion _modules/algotom/io/loadersaver.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ <h1>Source code for algotom.io.loadersaver</h1><div class="highlight"><pre>
<span class="kn">import</span> <span class="nn">glob</span>
<span class="kn">import</span> <span class="nn">warnings</span>
<span class="kn">import</span> <span class="nn">multiprocessing</span> <span class="k">as</span> <span class="nn">mp</span>
<span class="kn">from</span> <span class="nn">joblib</span> <span class="kn">import</span> <span class="n">Parallel</span><span class="p">,</span> <span class="n">delayed</span><span class="p">,</span> <span class="n">parallel_backend</span>
<span class="kn">from</span> <span class="nn">joblib</span> <span class="kn">import</span> <span class="n">Parallel</span><span class="p">,</span> <span class="n">delayed</span>
<span class="kn">from</span> <span class="nn">collections</span> <span class="kn">import</span> <span class="n">OrderedDict</span><span class="p">,</span> <span class="n">deque</span>
<span class="kn">import</span> <span class="nn">h5py</span>
<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
Expand Down Expand Up @@ -1358,6 +1358,8 @@ <h1>Source code for algotom.io.loadersaver</h1><div class="highlight"><pre>
<span class="sd"> List of output paths or a folder path</span>
<span class="sd"> image_stack : array_like</span>
<span class="sd"> 3D array.</span>
<span class="sd"> axis : int</span>
<span class="sd"> Axis to slice data.</span>
<span class="sd"> overwrite : bool</span>
<span class="sd"> Overwrite an existing file if True.</span>
<span class="sd"> ncore : int or None</span>
Expand Down
2 changes: 1 addition & 1 deletion _modules/algotom/post/postprocessing.html
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ <h1>Source code for algotom.post.postprocessing</h1><div class="highlight"><pre>
<span class="n">data_tmp</span> <span class="o">=</span> <span class="n">ofile</span><span class="o">.</span><span class="n">create_dataset</span><span class="p">(</span><span class="n">out_key</span><span class="p">,</span>
<span class="p">(</span><span class="n">depth1</span><span class="p">,</span> <span class="n">height1</span><span class="p">,</span> <span class="n">width1</span><span class="p">),</span>
<span class="n">dtype</span><span class="o">=</span><span class="n">data_type</span><span class="p">,</span>
<span class="n">chunks</span> <span class="o">=</span> <span class="n">hdf_chunk</span><span class="p">)</span>
<span class="n">chunks</span><span class="o">=</span><span class="n">hdf_chunk</span><span class="p">)</span>
<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="n">np</span><span class="o">.</span><span class="n">arange</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="n">depth1</span> <span class="o">-</span> <span class="n">last_chunk</span><span class="p">,</span> <span class="n">chunk</span><span class="p">):</span>
<span class="k">if</span> <span class="n">show_progress</span><span class="p">:</span>
<span class="n">t1</span> <span class="o">=</span> <span class="n">timeit</span><span class="o">.</span><span class="n">default_timer</span><span class="p">()</span>
Expand Down
129 changes: 84 additions & 45 deletions _modules/algotom/prep/calculation.html

Large diffs are not rendered by default.

25 changes: 14 additions & 11 deletions _modules/algotom/rec/reconstruction.html

Large diffs are not rendered by default.

1,713 changes: 1,713 additions & 0 deletions _modules/algotom/rec/vertrec.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ <h1>All modules for which code is available</h1>
<li><a href="algotom/prep/phase.html">algotom.prep.phase</a></li>
<li><a href="algotom/prep/removal.html">algotom.prep.removal</a></li>
<li><a href="algotom/rec/reconstruction.html">algotom.rec.reconstruction</a></li>
<li><a href="algotom/rec/vertrec.html">algotom.rec.vertrec</a></li>
<li><a href="algotom/util/calibration.html">algotom.util.calibration</a></li>
<li><a href="algotom/util/correlation.html">algotom.util.correlation</a></li>
<li><a href="algotom/util/simulation.html">algotom.util.simulation</a></li>
Expand Down
1 change: 1 addition & 0 deletions _sources/toc/api.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Reconstruction
:maxdepth: 1

api/algotom.rec.reconstruction
api/algotom.rec.vertrec

Post-processing
---------------
Expand Down
24 changes: 24 additions & 0 deletions _sources/toc/api/algotom.rec.vertrec.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
:mod:`algotom.rec.vertrec`
=================================

.. _vertrec_module:

.. automodule:: algotom.rec.vertrec
:members:
:show-inheritance:
:undoc-members:

.. rubric:: **Functions:**

.. autosummary::

vertical_back_projection_cpu
vertical_back_projection_cpu_chunk
vertical_back_projection_gpu
vertical_back_projection_gpu_chunk
vertical_reconstruction
vertical_reconstruction_multiple
vertical_reconstruction_different_angles
find_center_vertical_slice
find_center_visual_vertical_slices

23 changes: 19 additions & 4 deletions _sources/toc/section2.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,28 @@ Some featuring methods in Algotom are as follows:
:name: fig_2_7
:align: center

- Direct vertical reconstruction for single slice, multiple slices, and multiple slices at
different orientations.

.. image:: section2/figs/fig_2_8.png
:width: 100%
:name: fig_2_8
:align: center

|
.. image:: section2/figs/fig_2_9.png
:width: 100%
:name: fig_2_9
:align: center

Development principles
----------------------

- While Algotom offers a comprehensive range of tools for tomographic data processing
covering raw-data reading, pre-processing, reconstruction, post-processing, and data
saving; its development primarily focuses on pre-processing techniques. This distinction
makes it a prominent feature among other tomographic software.
- While Algotom offers a complete set of tools for tomographic data processing covering
pre-processing, reconstruction, post-processing, data simulation, and calibration techniques;
its development strongly focuses on pre-processing techniques. This distinction makes it a
prominent feature among other tomographic software.

- To ensure that the software can work across platforms and is easy-to-install; dependencies
are minimized, and only well-maintained `Python libraries <https://github.com/algotom/algotom/blob/master/requirements.txt>`__
Expand Down
10 changes: 5 additions & 5 deletions _sources/toc/section3.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Installation
============

Algotom is installable across operating systems (Windows, Linux, Mac) and
works with Python >=3.7. It is a Python library not an app. Users have to
works with Python >=3.8. It is a Python library not an app. Users have to
write Python codes to process their data. For beginners, a quick way to get started with Python
programming is to install `Anaconda <https://www.anaconda.com/products/individual>`__,
then follow instructions `here <https://docs.anaconda.com/anaconda/user-guide/getting-started/>`__.
Expand Down Expand Up @@ -45,13 +45,13 @@ If install to an existing environment::

conda install -c conda-forge algotom

or::
or:

conda install -c algotom algotom

If install to a new environment::

conda create -n algotom python>=3.7
conda create -n algotom python=3.10
conda activate algotom
conda install -c conda-forge algotom

Expand All @@ -68,7 +68,7 @@ If install to an existing environment::

If install to a new environment::

conda create -n algotom python>=3.7
conda create -n algotom python=3.10
conda activate algotom
pip install algotom

Expand All @@ -83,7 +83,7 @@ Download and install `Miniconda <https://docs.conda.io/en/latest/miniconda.html

Open Linux terminal or Miniconda/Anaconda Powershell prompt and run the following commands::

conda create -n algotom python>=3.7
conda create -n algotom python=3.10
conda activate algotom
cd algotom
python setup.py install
Expand Down
2 changes: 2 additions & 0 deletions _sources/toc/section4/section4_5.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ higher resolution scans. This can be achieved by following these steps:
out_file = output_base + "/rec_" + ("00000" + str(idx))[-5:] + ".tif"
losa.save_image(out_file, rec_img)
.. _find_center:

Finding the center of rotation
------------------------------

Expand Down
1 change: 1 addition & 0 deletions _sources/toc/section5.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Technical notes
.. toctree::

section5/section5_1
section5/section5_2
Loading

0 comments on commit f314099

Please sign in to comment.