Segmentation of Stroke Lesions using Random Forest Classification.
Current implementation of this script is based on Halme, H. et al., 2015.
Basic algorithm
- Feature generation
- Z-score normalized voxel intensities
- Z-score deviation from global average images
- Gaussian smoothing
- Local asymmetry
- Classifier training using Random forest (tool: ranger).
- Contextual clustering
Install Obelix
git clone https://github.com/eimimue/IMIS_CodeSample.git
mkdir build && cd build
cmake ../src
make -j4Dependencies
(for installation routines, see last section)
- ITK 4.9
- Ranger (Implementation of Random Forests)
- Matlab
- Unix based infrastructure
Open executeLesionPrediction.m and change the following parameters:
-
ICNS_RANDOMFORESTGUMP_BINARY: Path to binary
-
ORIGINAL_DATA_PATH: Path to image data
-
OUTPUT_PATH: Export folder
-
RANGER_BINARY: Path to ranger binary
After the parameters have been set, execute executeLesionPrediction.m.
The image data should be sorted in a file structured as seen below.
DATA_PATH
|
|__ Patient_1
| |__Modality_1
| | Image data
| |__Modality_2
| | Image data
| |__Modality_3
| | Image data
| |Mask
| | Image data
|
|__ Patient_2
| |__Modality_1
| | Image data
| |__Modality_2
| | Image data
| |__Modality_3
| | Image data
| |Mask
| | Image data
|
|__ Patient n
|
git clone -b v4.9.0 https://itk.org/ITK.git ITK-4.9.0
cd ITK-4.9.0
mkdir bin && cd bin
cmake ..
make -j4 && make installgit clone https://github.com/imbs-hl/ranger.git
cd ranger/source
mkdir build && cd build
cmake ..
make -j4git clone https://github.com/loli/ISLESevaluation
cd ISLESevaluation
mkdir build && cd build
cmake ..
make -j4