| 1 | {{{ |
| 2 | #!rst |
| 3 | ============================================== |
| 4 | 3d Brain Atlas Reconstructor standalone manual |
| 5 | ============================================== |
| 6 | |
| 7 | ================================================ |
| 8 | Description of GUI of the 3D model building tool |
| 9 | ================================================ |
| 10 | |
| 11 | To facilitate reconstruction process a simple graphical user interface was |
| 12 | prepared Fig. |
| 13 | `Python <http://www.python.org/>`_. |
| 14 | |
| 15 | The 3dBAR reconstruction GUI with an exemplary CAF dataset loaded `Johnson2010`. The *Striatum* selected for reconstruction (gray highlight); and *Hippocampus* loaded as context models |
| 16 | font). The reconstruction of `Hypothalamus` is cache available for loading (bold font). A) The structure |
| 17 | selection tab B) The model customization tab. |
| 18 | |
| 19 | ChapterRendering-interface |
| 20 | |
| 21 | |
| 22 | The left panel contains ontology tree loaded from CAF index file. One |
| 23 | can browse through structures, select them for reconstruction and also |
| 24 | load already reconstructed, cached models. The right panel contains |
| 25 | two tabs. *Structure selection* tab displays detailed |
| 26 | information about the currently selected structure for reconstruction. |
| 27 | This includes abbreviated and full name of the structure, span of |
| 28 | slides on which it is defined as well as color assigned to this |
| 29 | structure. Here one can also set the resolution, the depth of |
| 30 | decomposition of the structure into substructures according to |
| 31 | ontology tree, and mirroring of brain hemisphere may be enabled if |
| 32 | needed. |
| 33 | |
| 34 | Reconstructed models can be viewed in the *Model customization tab* |
| 35 | (Fig. B) which also |
| 36 | provides access to parameters of VTK customization pipeline. The |
| 37 | preview is displayed in the form of triangular mesh although the |
| 38 | actual model is still stored in volumetric form. |
| 39 | The model can be rotated by pressing and holding left mouse button, |
| 40 | zoomed in or out by pressing and holding the right button. Pressing |
| 41 | the middle button allows one to pan the model over the scene. One can |
| 42 | switch between wireframe and surface representations of the model by |
| 43 | pressing `w` or `s` keys. |
| 44 | |
| 45 | After changing VTK pipeline parameters, mesh may be recalculated by |
| 46 | pressing *Refresh* button and cached by pressing *Save model*. |
| 47 | Models are cached in form of polygonal meshes |
| 48 | (*vtkPolyData*). *Clear scene* button removes all models |
| 49 | from preview window. When a model is cached, the corresponding |
| 50 | element of the ontology tree is displayed with bold font. Cached |
| 51 | models can be loaded in the preview window as *context models*} |
| 52 | alongside the model being presently reconstructed, however they cannot |
| 53 | be modified. When a cached model is loaded into context, the |
| 54 | corresponding element in ontology tree is displayed in red. |
| 55 | |
| 56 | Multiple reconstructions can be performed one by one as described |
| 57 | above. However, this is convenient only when few models are required. |
| 58 | To reconstruct multiple structures one can choose a parent structure |
| 59 | containing desired substructures and reconstruct them down to a |
| 60 | desired level of detail. All substructures are generated using the |
| 61 | same set of reconstruction parameters provided in `Structure selection` |
| 62 | tab and the same VTK pipeline. Models are generated one |
| 63 | by one and automatically cached. When all the substructures are |
| 64 | reconstructed they are loaded into preview window as context models. |
| 65 | |
| 66 | By default models are cached in the directory where CAF dataset is |
| 67 | located. One may choose another export directory by selecting |
| 68 | *Set cache directory* from *Edit* menu. When cache directory |
| 69 | is changed, all currently loaded structures are removed from preview |
| 70 | and ontology tree updates information about availability of cached |
| 71 | models from the new directory. |
| 72 | |
| 73 | 3d Brain Atlas Reconstructor GUI offers three ways of exporting three dimensional |
| 74 | models. Single reconstructions may be cached as polygonal data |
| 75 | (*vtkPolyData*) or exported as volumetric datasets in the native |
| 76 | VTK *vtkImageData* or NIfTI (Neuroimaging Informatics Technology |
| 77 | Initiative) formats. Complex scenes containing numerous context models |
| 78 | may be exported into VRML (Virtual Reality Modelling Language) format. |
| 79 | }}} |