You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,10 @@
10
10
11
11
`BrainLes preprocessing` is a comprehensive tool for preprocessing tasks in biomedical imaging, with a focus on (but not limited to) multi-modal brain MRI. It can be used to build modular preprocessing pipelines:
12
12
13
-
This includes **normalization**, **co-registration**, **atlas registration** and **skulstripping / brain extraction**.
13
+
This includes **normalization**, **co-registration**, **atlas registration**, **skullstripping / brain extraction**, **N4 Bias correction** and **defacing**.
14
+
We provide means to transform images and segmentations in both directions between native and atlas space.
14
15
15
-
BrainLes is written `backend-agnostic` meaning it allows to swap the registration, brain extraction tools and defacing tools.
16
+
BrainLes is written modular and `backend-agnostic` meaning it allows to skip or swap registration, brain extraction, N4 bias correction and defacing tools.
16
17
17
18
<!-- TODO include image here -->
18
19
@@ -86,7 +87,7 @@ moving_modalities = [
86
87
)
87
88
]
88
89
89
-
# instantiate and run the preprocessor using defaults for registration/ brain extraction/ defacing backends
90
+
# instantiate and run the preprocessor using defaults for backends (registration, brain extraction, bias correction, defacing)
90
91
preprocessor = Preprocessor(
91
92
center_modality=center,
92
93
moving_modalities=moving_modalities,
@@ -127,6 +128,9 @@ We currently provide support for [ANTs](https://github.com/ANTsX/ANTs) (default)
127
128
We provide the SRI-24 atlas from this [publication](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2915788/).
128
129
However, custom atlases in NIfTI format are supported.
129
130
131
+
### N4 Bias correction
132
+
We currently provide support for N4 Bias correction based on [SimpleITK](https://simpleitk.org/)
133
+
130
134
### Brain extraction
131
135
We currently provide support for [HD-BET](https://github.com/MIC-DKFZ/HD-BET).
Class to apply precomputed transformations based on the registration process.
15
+
Common use case is to apply inverse transformations to transform e.g. segmentations in atlas space back to native space or transform existing labels in native space to atlas space.
16
+
"""
17
17
18
18
def__init__(
19
19
self,
20
20
transformations_dir: Union[str, Path],
21
21
registrator: Optional[Registrator] =None,
22
-
):
22
+
) ->None:
23
+
"""
24
+
Initialize the Transform class.
25
+
26
+
Args:
27
+
transformations_dir (Union[str, Path]): Directory containing precomputed transformations for each modality.
28
+
registrator (Optional[Registrator], optional): Registrator instance to use for applying transformations. If None, defaults to ANTsRegistrator.
0 commit comments