Skip to content

Commit 5767520

Browse files
committed
fix rendering
1 parent d75e1e5 commit 5767520

7 files changed

+115
-99
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
_images/
3+
build/

conf.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@
124124

125125
# The name for this set of Sphinx documents. If None, it defaults to
126126
# "<project> v<release> documentation".
127-
#html_title =
127+
html_title = "OpenMEEG"
128128

129129
# A shorter title for the navigation bar. Default is the same as html_title.
130-
html_short_title = None
130+
html_short_title = "OpenMEEG"
131131

132132
# The name of an image file (relative to this directory) to place at the top
133133
# of the sidebar.
@@ -221,10 +221,10 @@
221221
# [howto/manual]).
222222
latex_documents = [
223223
('index', 'OpenMEEG_manual.tex', u'OpenMEEG Manual',
224-
u'OpenMEEG Contributors', 'manual'),
224+
u'OpenMEEG Contributors', 'howto'),
225225
]
226226

227-
latex_toplevel_sectioning = 'section'
227+
# latex_toplevel_sectioning = 'section'
228228

229229
# The name of an image file (relative to this directory) to place at the top of
230230
# the title page.

index.rst

+20-68
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,33 @@
1-
=============
2-
OpenMEEG Home
3-
=============
1+
.. only:: latex
42

5-
.. raw:: html
6-
7-
<div class="leadfield" style="float: right; margin: 10px 0 -10px 0;">
3+
OpenMEEG Home
4+
=============
85

9-
.. image:: _static/leadfield.png
10-
:width: 300px
6+
.. only:: html
117

12-
.. raw:: html
8+
.. raw:: html
139

14-
</div>
10+
<div class="leadfield" style="float: right; margin: 10px 0 -10px 0;">
1511

16-
What is OpenMEEG?
17-
-----------------
12+
.. image:: _static/leadfield.png
13+
:width: 300px
1814

19-
* The OpenMEEG software is developed within the `Athena project-team <https://team.inria.fr/athena/>`_ at INRIA Sophia-Antipolis.
20-
* It was initiated in 2006 by the Odyssee Project Team (INRIA/ENPC/ENS Ulm).
21-
* OpenMEEG solves forward problems related to Magneto- and Electro-encephalography (MEG and EEG).
22-
* The forward problem uses the symmetric Boundary Element Method (symmetric BEM), providing excellent accuracy (see :ref:`publications`).
15+
.. raw:: html
2316

24-
Using OpenMEEG
25-
--------------
26-
27-
* From Matlab using `Brainstorm <http://neuroimage.usc.edu/brainstorm/Tutorials/TutBem>`_ or `Fieldtrip <http://fieldtrip.fcdonders.nl>`_
28-
29-
* For general lead fields computation (EEG, MEG, EIT, Internal potential):
30-
31-
* From `Python <https://raw.github.com/openmeeg/openmeeg_sample_data/master/compute_leadfields.py>`_
32-
* From a `Bash <https://raw.github.com/openmeeg/openmeeg_sample_data/master/compute_leadfields.sh>`_ script on Unix systems (Linux/Mac).
33-
* From a `BAT <https://raw.github.com/openmeeg/openmeeg_sample_data/master/compute_leadfields.bat>`_ file on Windows.
34-
35-
.. raw:: html
36-
37-
Works with:
38-
<div class="logo" style="text-align: center; margin: -7px 0 -10px 0;">
39-
40-
.. image:: _static/logo_brainstorm.png
41-
:width: 200px
42-
:target: http://neuroimage.usc.edu/brainstorm
43-
44-
.. image:: _static/logo_fieldtrip.png
45-
:width: 130px
46-
:target: http://fieldtrip.fcdonders.nl
47-
48-
.. image:: _static/nutmeglogo.png
49-
:width: 130px
50-
:target: http://www.nitrc.org/plugins/mwiki/index.php/nutmeg:MainPage
51-
52-
.. image:: _static/pythonlogo.png
53-
:width: 170px
54-
:target: http://python.org
55-
56-
.. raw:: html
57-
58-
</div>
59-
60-
Cite OpenMEEG
61-
-------------
62-
63-
The references to be acknowledged are:
64-
65-
- Gramfort A., Papadopoulo T., Olivi E., Clerc M. `OpenMEEG: opensource
66-
software for quasistatic bioelectromagnetics <http://www.biomedical-engineering-online.com/content/9/1/45>`_,
67-
BioMedical Engineering OnLine 45:9, 2010
68-
69-
- Kybic J., Clerc M., Abboud T., Faugeras O., Keriven R., Papadopoulo T. `A common formalism for the integral formulations of the forward EEG problem <http://ieeexplore.ieee.org/xpls/abs_all.jsp?isnumber=30034&arnumber=1375158&count=10&index=1>`_. IEEE Transactions on Medical Imaging, 24:12-28, 2005. `[PDF] <ftp://ftp-sop.inria.fr/odyssee/Publications/2005/kybic-clerc-etal:05.pdf>`_
70-
71-
Table of contents
72-
-----------------
17+
</div>
7318

7419
.. toctree::
75-
:maxdepth: 1
20+
:hidden:
21+
:maxdepth: 2
7622

77-
contact
23+
overview
7824
why_openmeeg
79-
publications
8025
tutorial
8126
license
27+
contact
28+
29+
30+
.. only:: html
31+
32+
.. include:: overview.rst
33+

overview.rst

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
Overview
2+
========
3+
4+
5+
What is OpenMEEG?
6+
-----------------
7+
8+
* The OpenMEEG software is developed within the `Athena project-team <https://team.inria.fr/athena/>`_ at INRIA Sophia-Antipolis.
9+
* It was initiated in 2006 by the Odyssee Project Team (INRIA/ENPC/ENS Ulm).
10+
* OpenMEEG solves forward problems related to Magneto- and Electro-encephalography (MEG and EEG).
11+
* The forward problem uses the symmetric Boundary Element Method (symmetric BEM), providing excellent accuracy (see :ref:`publications`).
12+
13+
Using OpenMEEG
14+
-----------------
15+
16+
* From Matlab using `Brainstorm <http://neuroimage.usc.edu/brainstorm/Tutorials/TutBem>`_ or `Fieldtrip <http://fieldtrip.fcdonders.nl>`_
17+
18+
* For general lead fields computation (EEG, MEG, EIT, Internal potential):
19+
20+
* From `Python <https://raw.github.com/openmeeg/openmeeg_sample_data/master/compute_leadfields.py>`_
21+
* From a `Bash <https://raw.github.com/openmeeg/openmeeg_sample_data/master/compute_leadfields.sh>`_ script on Unix systems (Linux/Mac).
22+
* From a `BAT <https://raw.github.com/openmeeg/openmeeg_sample_data/master/compute_leadfields.bat>`_ file on Windows.
23+
24+
.. raw:: html
25+
26+
Works with:
27+
<div class="logo" style="text-align: center; margin: -7px 0 -10px 0;">
28+
29+
.. image:: _static/logo_brainstorm.png
30+
:width: 200px
31+
:target: http://neuroimage.usc.edu/brainstorm
32+
33+
.. image:: _static/logo_fieldtrip.png
34+
:width: 130px
35+
:target: http://fieldtrip.fcdonders.nl
36+
37+
.. image:: _static/nutmeglogo.png
38+
:width: 130px
39+
:target: http://www.nitrc.org/plugins/mwiki/index.php/nutmeg:MainPage
40+
41+
.. image:: _static/pythonlogo.png
42+
:width: 170px
43+
:target: http://python.org
44+
45+
.. raw:: html
46+
47+
</div>
48+
49+
Cite OpenMEEG
50+
-------------
51+
52+
The references to be acknowledged are:
53+
54+
- Gramfort A., Papadopoulo T., Olivi E., Clerc M. `OpenMEEG: opensource
55+
software for quasistatic bioelectromagnetics <http://www.biomedical-engineering-online.com/content/9/1/45>`_,
56+
BioMedical Engineering OnLine 45:9, 2010
57+
58+
- Kybic J., Clerc M., Abboud T., Faugeras O., Keriven R., Papadopoulo T. `A common formalism for the integral formulations of the forward EEG problem <http://ieeexplore.ieee.org/xpls/abs_all.jsp?isnumber=30034&arnumber=1375158&count=10&index=1>`_. IEEE Transactions on Medical Imaging, 24:12-28, 2005. `[PDF] <ftp://ftp-sop.inria.fr/odyssee/Publications/2005/kybic-clerc-etal:05.pdf>`_

publications.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
.. _publications:
22

3+
Publications
4+
------------
5+
36
Publications on OpenMEEG
4-
------------------------
7+
^^^^^^^^^^^^^^^^^^^^^^^^
58

69
- [1] Kybic J., Clerc M., Abboud T., Faugeras O., Keriven R., Papadopoulo T. `A common formalism for the integral formulations of the forward EEG problem <http://ieeexplore.ieee.org/xpls/abs_all.jsp?isnumber=30034&arnumber=1375158&count=10&index=1>`_. IEEE Transactions on Medical Imaging, 24:12-28, 2005. `[PDF] <ftp://ftp-sop.inria.fr/odyssee/Publications/2005/kybic-clerc-etal:05.pdf>`_
710

@@ -14,7 +17,7 @@ Publications on OpenMEEG
1417
Please cite publications [1] and [2] to comply to the Cecill-B license.
1518

1619
Publications using OpenMEEG
17-
---------------------------
20+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
1821

1922
- Adde G, Clerc M, Keriven R. Imaging methods for MEG/EEG inverse problem, International Journal of Bioelectromagnetism, 7(2):111-114, 2005.
2023

tutorial.rst

+22-21
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
.. _tutorial:
22

3-
======================
43
Tutorial
5-
======================
4+
=========
65

7-
.. contents:: Table of Contents
8-
:local:
9-
:depth: 2
6+
.. only:: html
7+
8+
.. contents:: Table of Contents
9+
:local:
10+
:depth: 2
1011

1112

1213
.. role:: command
@@ -15,12 +16,12 @@ Tutorial
1516
.. role:: output
1617

1718
Data format
18-
===========
19+
-----------
1920

2021
OpenMEEG handles several file formats corresponding to different types of objects: vectors, matrices, head geometries, conductivities, meshes, dipoles, sensors.
2122

2223
Vectors and matrices
23-
--------------------
24+
^^^^^^^^^^^^^^^^^^^^^^^^
2425

2526
By default, matrices and vectors are stored on disk using a ``MATLAB`` file format.
2627
Symmetric matrices which are not directly representable in the ``MATLAB`` format are represented as a ``MATLAB`` struct.
@@ -34,7 +35,7 @@ OpenMEEG's own binary file format (extension ``.bin``) is available solely for b
3435
.. _sec.geom:
3536

3637
Geometrical model, mesh and conductivity files
37-
-----------------------------------------------
38+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3839

3940
**OpenMEEG geometrical models** are described through several files.
4041
The toplevel file (generally ending with the extension ``.geom``) assembles various interface descriptions to build *Domains* corresponding to head tissues.
@@ -107,7 +108,7 @@ See `fig.geom`_ for a detailed example.
107108
.. _sec.meshes:
108109

109110
Meshes
110-
~~~~~~
111+
""""""
111112

112113
Meshes are a central element of Boundary Element Methods. They are used to represent the interfaces between regions of homogeneous conductivity. For instance, in a simple three-layer head model, three meshes would be used to represent:
113114

@@ -167,7 +168,7 @@ The following small example describes a very simple mesh containing 4 points and
167168
.. _sec.cond:
168169

169170
Geometry tools
170-
~~~~~~~~~~~~~~
171+
""""""""""""""
171172

172173
Interfaces are required to be closed in order for the Boundary Element Method to function correctly. This is also necessary for the source meshes when computing forward solutions using surfacic source models (see below).
173174
Moreover, the interface meshes must not intersect each other. Non-intersection can be checked with the command :command:`om_check_geom`.
@@ -193,13 +194,13 @@ Note that the tissue names are the ones appearing in the Domains descriptions of
193194
.. _sec.sources:
194195

195196
Source descriptions
196-
--------------------
197+
^^^^^^^^^^^^^^^^^^^
197198

198199
Sources are defined by their geometry (position and orientation) and their magnitude.
199200
OpenMEEG handles two types of source models: isolated dipoles, or distributed dipoles: these two models differ in their geometry description.
200201

201202
Isolated dipoles
202-
~~~~~~~~~~~~~~~~
203+
""""""""""""""""
203204

204205
Isolated dipoles are represented by a text file (extension \*.dip or \*.txt), in which each line defines a dipole position and orientation, encoded in 6 real values:
205206

@@ -217,12 +218,12 @@ The following example shows a file describing 5 isolated dipoles:
217218
.. note:: The referential of the coordinates should be the same as for the meshes (the MR coordinates in general).
218219

219220
Distributed dipoles
220-
~~~~~~~~~~~~~~~~~~~
221+
"""""""""""""""""""
221222

222223
Distributed dipoles are supported on a mesh, whose format must be \*.mesh, or \*.tri, or \*.vtk.
223224

224225
Source activation
225-
~~~~~~~~~~~~~~~~~
226+
"""""""""""""""""
226227

227228
Source activation files are text files, in which each line corresponds to a source, and each column to a time sample.
228229

@@ -251,7 +252,7 @@ Isolated sources are the superposition of current dipoles, each of which is defi
251252
.. _sec.sensors:
252253

253254
Sensors
254-
-------
255+
^^^^^^^
255256

256257
For EEG, the sensors are defined by the list of the x-y-z coordinates of the electrode
257258
positions. The electrodes are considered punctual and are called *patches*.
@@ -293,7 +294,7 @@ An example of MEG sensor description:
293294

294295

295296
OpenMEEG from the command line
296-
===============================
297+
------------------------------
297298

298299
Diagram for the low level pipeline for computing leadfields (a.k.a., gain matrices) using OpenMEEG:
299300

@@ -309,7 +310,7 @@ Full details are available in OpenMEEG documentation.
309310
In this section, :command:`command` names are in :command:`red`, :opt:`options` are in :opt:`green` and :output:`output` files are shown in :output:`blue`.
310311

311312
om_assemble
312-
-----------
313+
^^^^^^^^^^^
313314

314315
General syntax:
315316

@@ -330,7 +331,7 @@ A typical command is:
330331
We now detail the possible :opt:`Options` (with their abbreviated versions given in parentheses), allowing to define various matrices to assemble:
331332

332333
General options for :command:`om_assemble`
333-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
334+
""""""""""""""""""""""""""""""""""""""""""
334335

335336
- :opt:`--help` (:opt:`-h`): summarizes all possible options.
336337

@@ -380,7 +381,7 @@ MEG:
380381

381382

382383
om_minverser
383-
------------
384+
^^^^^^^^^^^^
384385

385386
General syntax:
386387

@@ -395,7 +396,7 @@ This command has only one option:
395396
.. note:: The output matrix :output:`HeadMatInv` is a symmetric matrix, like :input:`HeadMat`.
396397

397398
om_gain
398-
-------
399+
^^^^^^^
399400

400401
General syntax:
401402

@@ -442,7 +443,7 @@ Gain matrix type options: select the type of gain matrix to be computed by :com
442443
using :command:`om_assemble` with option :opt:`-Head2InternalPotMat` and :opt:`-DipSource2InternalPotMat`.
443444

444445
Examples
445-
========
446+
--------
446447

447448
Assuming a head model represented by the geometry file :input:`head.geom` and the conductivity file :input:`head.cond` and EEG sensors detailed in a file :input:`head.eegsensors`.
448449

why_openmeeg.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
.. _why_openmeeg:
22

3-
======================
43
Why use OpenMEEG?
5-
======================
4+
-----------------
65

76
OpenMEEG offers better precision.
87

98
How do you measure precision?
10-
-----------------------------
9+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1110

1211
Relative difference measure (RDM) *(should be close to 0)* and Magnitude error (MAG) *(should be close to 1)*:
1312

@@ -19,7 +18,7 @@ A sample sphere model with 5 dipoles:
1918

2019

2120
Benchmark: OpenMEEG outperforms other implementations
22-
-----------------------------------------------------
21+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2322

2423
|center-div| |mag_bench| |rdm_bench| |end-div|
2524

0 commit comments

Comments
 (0)