EspINA Volume Editor is an application to reconstruct and edit segmentations of electron microscopy or optic microscopy images generated with old versions of the application EspINA (EspINA Interactive Neuron Analyzer). Originally written for Linux operative systems this is a Windows port of my final project to obtain my degree in Computer Science and it's capabilities have been integrated in the latest versions of EspINA. Because the file format used by the application it's no longer the one used by EspINA it's not really useful anymore and it's shown here as an exercise in building applications with the ITK and VTK libraries.
The application provides several tools to modify the segmentations:
- Manual edition or creation of segmentations (paint or erase using a variable radius brush).
- Morphological operations (open, close, dilate and erode with variable radius).
- Segmentation splitting using the Watershed algorithm.
The area of application of the tools can be selected using:
- Box selection.
- Lasso selection (contour that can be modified after it's definition translating, adding and removing nodes, and translating the whole contour).
- Magic wand (to select contiguous voxels using a thresholding algorithm).
The repository includes an example image in the 'images' directory.
Several options can be configured:
- The size of the memory buffer used for the undo/redo system.
- Paint/erase brush radius.
- Morphological operations' radius.
- Watershed flood level.
- Opacity of the segmentations (to see the value of the voxels that are contained in it).
- Time of the auto-save feature (takes snapshots of the current session to disk in case the program crashes).
The application reads old EspINA segmha files that contains the segmentations and MHD (Metaimage format) files of the microscopy images.
The following libraries are required:
- ITK - Insight Segmentation and Registration Toolkit.
- VTK - The Visualization Toolkit.
- Qt 5 opensource framework.
The only current option is build from source as binaries are not provided.
The main application provides four views: three orthogonal (axial, coronal and sagittal planar views) and a 3D view that provides a volumetric representation of the segmentations.
Each view can be individually maximized. The 3D view provides two visualization alternatives: voxel and mesh.
The configuration dialog.
The session information dialog provides information about the properties of the image and the segmentations.
The lasso tool in action over the sagittal view, showing the selected voxels.
Version: 2.0.1
Status: finished
cloc statistics
Language | files | blank | comment | code |
---|---|---|---|---|
C++ | 26 | 2279 | 1449 | 10907 |
C/C++ Header | 27 | 877 | 2213 | 2054 |
CMake | 1 | 18 | 8 | 100 |
Total | 54 | 3174 | 3670 | 13061 |