python
- Anaconda http://anaconda.com/downloads get Python 3.6 installer, install.
- Install SimpleITK
conda create -n sitkpy -c simpleitk python=3 numpy pandas scikit-learn matplotlib seaborn ipython-notebook simpleitk
T2mapping
- Get t2mapping from github: https://github.com/ypauchard/t2mapping
- Compile executable
- Copy t2mapping executable to bin/ or adjust location in run_t2mapping.py
MITK-GEM
Download from https://simtk.org/projects/mitk-gem
- Create a folder for the subject
- Create a folder dicom and copy images from PACS into there
- Create a folder config and copy all .ini files from here
- Open terminal, navigate subject folder
- Activate conda environment
source activate sitkpy
- Run metaimage extraction
python <path>/t2mapping_python/dicom_series_to_sitk.py dicom/IMAGES raw/- Open MITK-GEM, load image with lowest TE from raw folder, draw a rough mask and save in sub-folder mask
- Prepare image_list.csv with all image names, and TE values, save in config folder
- In MITK-GEM, measure mean background intensity in 25mm circle, record in image_list.csv
- Edit register.ini
- Run registration
python <path>/t2mapping_python/register_images.py config/register.ini- Edit normalize.ini
- Run normalization
python <path>/t2mapping_python/normalize_images.py config/normalize.ini- Edit t2map.ini
- Run t2mapping
python <path>/t2mapping_python/run_t2mapping.py config/t2map.ini- In MITK-GEM, create a mask of the cartilage for T2 mapping analysis, save to mask folder
- In MITK-GEM, measure mean T2 value in cartilage mask, record in results csv in results sub-folder
- In MITK-GEM, mask T2 map image with cartilage mask and save to mask folder
- Use Paraview to visualize masked t2 map on top of gray scale image.
participant
|--config
|--dicom
|--mask
|--norm
|--raw
|--register
|--t2maps