Tool to segment Deep Brain Stimulation leads without artifacts on CT scans and register to MNI152 1mm space. Then based on user defined atlas space, overlapping regions in atlas space and segmentations are defined.
The input CT scan MUST be in .nii.gz file format.
- Clone this repository to your local space.
- Create an output directory for your files.
- Create a virtual environment and pip install the following dependencies: numpy, matplotlib, opencv-python, itk-elastix, fsl-py, SimpleITK-SimpleElastix, tensorflow, nibabel.
- Open a new terminal and activate the virtual environment.
- Change your current working directory to the folder "code".
- To use the tool, run the following command $ bash run.sh input_file_path output_file_path (Be sure to replace input_file_path and output_file_path with the paths to your files)
**Note atlas.py code may need to be edited based on which atlas template user requires (see code)