Chapter 8. AnaSimpleViewer: A simplified version of Anatomist

Table of Contents

Grahical user interface

Since Anatomist 3.2.1, a new simplified viewer application has been developed: anasimpleviewer.py. It offers a simple and easy interface in a single window using a fixed 4-views layout, which is more classical and more convenient for inexperienced users. It is a restricted and constrained use of Anatomist capabilities. It has been developed quickly, at first to show that developing simple custom applications using Anatomist libraries is not so difficult and may be done quite fast in Python language. But the resulting application can be quite useful and easier to use for people who use mainly basic features of Anatomist.

This application is inlcuded in BrainVISA package and can be run using the script anasimpleviewer.py which is located in the bin directory of the BrainVISA package.

To visualize an image in the 4 classical views with this tool, just click on the menu File -> Open and select the file in the file browser.

Grahical user interface

Figure 8.1. Anatomist Simple Viewer user interface

Anatomist Simple Viewer user interface

1: This panel contains the list of loaded images. It is possible to hide or visualize an image by selecting it in the panel and using the toolbar buttons and .

2: This panel displays the coordinates at the current cursor position in millimeters in the MNI referential. It is also possible to change manually the coordinates indicated in the x, y, z and t fields to change the cursor position.

3: This panel displays the voxel value at the current position of the cursor in the visible objects.

4: 4 windows representing the images according 4 views: coronal, sagittal, axial and 3D. A few actions are possible on these viewers:

  • Zoom: using the mouse wheel.
  • Move the camera: only possible in the 3D view by moving the mouse while the middle button is clicked.
  • Change the contrast: it is possible to change the minimum and maximum values of the color palette by moving the mouse while clicking on the right button of the mouse. Moving horizontally from left to right increases the minimum border of the palette. Moving from vertically from bottom to top decreases the maxiumum border of the color palette and so increases the contrast.

It is possible to open several images, they will be automatically added to the views using superimposing of fusion when needed. AnaSimpleViewer also tries to set a suited palette to volumes according to their types. See an example below with an MRI, a brain mask and an hemisphere mesh:

Figure 8.2. Visualizing several images with AnaSimpleViewer

Visualizing several images with AnaSimpleViewer

This simplified version of Anatomist has been developped using PyAnatomist, the Python API for Anatomist. To know more about how to program your own application with this API, see the next chapter.