BrainLesion / preprocessing

preprocessing tools for multi-modal 3D brain MRI
GNU Affero General Public License v3.0
10 stars 3 forks source link

[feature request] N4 bias correction support #78

Open LennartPhil opened 3 months ago

LennartPhil commented 3 months ago

Is your feature request related to a problem? Please describe. N4 bias correction is quite a common preprocessing step when it comes to MRI image data analysis, which is why it should be part of the BrainLesion preprocessing tool. Adding this step manually at the beginning or at the end does not reflect the idea of a compact preprocessing tool.

Describe the solution you'd like I'd like to be able to add N4 bias correction to the preprocessing pipeline, this could be achieved for example by using SimpleITK. This could go right with the already added normalization step.

Considering that all the different normalizers are stored in a different Github repository, it might make sense to merge the normalizers into the current repo, to simplify any future changes.

Edit: Z-score normalization should be considered as well. But it should be noted, that z-score normalization especially also requires the brain mask as an input

neuronflow commented 2 months ago

In our experiments, we never found an advantage of running N4 bias field corrections, but I agree, that is well-established in the community. Thus, it should be part of our preprocessing pipeline.

Thank you for the suggestion @LennartPhil

When does N4 produce best results? should this be run on images with or without skull? before or after normalization?