diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-11-12 13:44:42 -0800 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-11-12 13:44:42 -0800 |
commit | 5d6b15ebf1b7265169af7f31077d7ffc2080b447 (patch) | |
tree | cbe24c1a11ca0ec14e8b6e2a453badb9b91269b7 /docs | |
parent | d801b3037e2f461e6094098a088f24a94f01c5fe (diff) | |
download | ufo-filters-5d6b15ebf1b7265169af7f31077d7ffc2080b447.tar.gz ufo-filters-5d6b15ebf1b7265169af7f31077d7ffc2080b447.tar.bz2 ufo-filters-5d6b15ebf1b7265169af7f31077d7ffc2080b447.tar.xz ufo-filters-5d6b15ebf1b7265169af7f31077d7ffc2080b447.zip |
docs: use bash code blocks
Diffstat (limited to 'docs')
-rw-r--r-- | docs/examples.rst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/examples.rst b/docs/examples.rst index cc7c44d..0f6bb26 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -11,7 +11,9 @@ Filtered backprojection To reconstruct from sinograms using the analytical filtered backproject method [KaSl01]_, you have to feed the sinograms into :gobj:class:`fft` → :gobj:class:`filter` → :gobj:class:`ifft` → :gobj:class:`backproject` to obtain -slices one by one:: +slices one by one: + +.. code-block:: bash ufo-launch \ dummy-data width=$DETECTOR_WIDTH height=$N_PROJECTIONS number=$N_SLICES ! \ @@ -29,7 +31,9 @@ In this example we use the Fourier slice theorem to obtain slices directly from projection data [KaSl01]_ and use a sinc kernel to interpolate in the Fourier space. To reconstruct, you have to feed the sinograms into :gobj:class:`zeropad` → :gobj:class:`fft` → :gobj:class:`dfi-sinc` → :gobj:class:`swap-quadrants` → -:gobj:class:`ifft` → :gobj:class:`swap-quadrants`:: +:gobj:class:`ifft` → :gobj:class:`swap-quadrants` + +.. code-block:: bash ufo-launch \ dummy-data width=$DETECTOR_WIDTH height=$N_PROJECTIONS number=$N_SLICES ! \ |