Skip to content

Commit adeff90

Browse files
authored
Merge branch 'main' into evamariie-patch-2-1
2 parents 9082aa6 + 32a844d commit adeff90

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

BraTS-Toolkit/glioma_segmentation_with_BraTS_Toolkit.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# Warning\n",
88
"\n",
9-
"This tutorial is a work in progress, it does not cover all the functionalities yet. However, it will give you a good overview how you can generate tumor segmentations with BraTS Toolkit.\n"
9+
"This tutorial is a work in progress, it does not cover all the functionalities yet. However, it will give you a good overview of how you can generate tumor segmentations with BraTS Toolkit.\n"
1010
]
1111
},
1212
{
@@ -28,13 +28,13 @@
2828
"2. **Import** of raw data (cMRI)\n",
2929
" \n",
3030
" \n",
31-
"3. **Preprocessing via BrainLes preprocessig package** instead of vanilla preprocessing pipeline from BraTS Toolkit. BraTS challenge algorithms expect preprocessed files (co-registered, skullstripped in SRI-24 space)\n",
31+
"3. **Preprocessing via BrainLes preprocessing package** instead of vanilla preprocessing pipeline from BraTS Toolkit. BraTS challenge algorithms expect preprocessed files (co-registered, skullstripped in SRI-24 space)\n",
3232
" \n",
3333
" \n",
3434
"4. **Segmentation with BraTS Toolkit** \n",
3535
" \n",
3636
" \n",
37-
"5. **Fusion** of generated segementations \n",
37+
"5. **Fusion** of generated segmentations \n",
3838
"\n"
3939
]
4040
},
@@ -55,10 +55,10 @@
5555
"optional (but recommended):\n",
5656
"\n",
5757
"- CUDA drivers\n",
58-
"- a GPU that is supported (each algorithms supports different set of GPUs)\n",
58+
"- a GPU that is supported (each algorithm supports different set of GPUs)\n",
5959
"<!-- TODO specify -->\n",
6060
"\n",
61-
"Run the subsequent cell to check CUDA availability, your python and docker version. "
61+
"Run the subsequent cell to check CUDA availability, your Python and docker version. "
6262
]
6363
},
6464
{
@@ -206,14 +206,14 @@
206206
"source": [
207207
"## 2. Import raw input data\n",
208208
"\n",
209-
"Raw imput data require\n",
209+
"Raw input data require\n",
210210
"- exam with skull and 4 sequences (T1, T1c, T2, T2-FLAIR), only one file each (in total 4 files) \n",
211211
" - file names must end with \"*t1.nii.gz\", \"*t1c.nii.gz\", \"*t2.nii.gz\" and \"*fla.nii.gz\"\n",
212212
" - [Nifti \".nii.gz\"](https://brainder.org/2012/09/23/the-nifti-file-format/) file type \n",
213213
"- each exam (4 files) needs to be places in an individual folder within the data folder \n",
214214
"```<this repository>/BraTS-Toolkit/data/```. \n",
215215
"\n",
216-
"The structure is shown using two example exams:\n",
216+
"The structure is shown using two examples exams:\n",
217217
"```\n",
218218
"BraTS-Toolkit\n",
219219
"├── data\n",
@@ -297,7 +297,7 @@
297297
"source": [
298298
"## 3. Preprocessing\n",
299299
"\n",
300-
"BraTS challenge algorithms expect co-registered, skullstripped files in SRI-24 space, to achieve this preprocessing is required.\n",
300+
"BraTS challenge algorithms expect co-registered, skull-stripped files in SRI-24 space, to achieve this preprocessing is required.\n",
301301
"Instead of using the vanilla preprocessing pipeline from BraTS Toolkit, we recommend using the new [BrainLes preprocessing package](https://github.com/BrainLesion/preprocessing/tree/main/brainles_preprocessing).\n"
302302
]
303303
},

preprocessing/preprocessing_tutorial.ipynb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,13 @@
235235
"from brainles_preprocessing.brain_extraction import HDBetExtractor\n",
236236
"from brainles_preprocessing.modality import Modality\n",
237237
"from brainles_preprocessing.preprocessor import Preprocessor\n",
238-
"from brainles_preprocessing.registration import NiftyRegRegistrator\n",
238+
"from brainles_preprocessing.registration import (\n",
239+
" ANTsRegistrator,\n",
240+
" NiftyRegRegistrator,\n",
241+
" eRegRegistrator,\n",
242+
")\n",
243+
"\n",
244+
"# ANTSRegistrator (default), NiftyRegRegistrator (Linux), eRegRegistrator (experimental)\n",
239245
"\n",
240246
"\n",
241247
"def preprocess_exam_in_brats_style(inputDir: str) -> None:\n",
@@ -326,7 +332,7 @@
326332
" preprocessor = Preprocessor(\n",
327333
" center_modality=center,\n",
328334
" moving_modalities=moving_modalities,\n",
329-
" registrator=NiftyRegRegistrator(),\n",
335+
" registrator=ANTsRegistrator(),\n",
330336
" brain_extractor=HDBetExtractor(),\n",
331337
" # optional: we provide a temporary directory as a sandbox for the preprocessin\n",
332338
" temp_folder=\"temporary_directory\",\n",

0 commit comments

Comments
 (0)