Added tissue binary masks to brainweb phantoms generation#68
Added tissue binary masks to brainweb phantoms generation#68J-Endres merged 2 commits intoMRsources:mainfrom
Conversation
|
Thank you for your contribution! Your changes look like a gread addition to MRzero and I'm happy to see it getting more practical for more usecases. There are only some small tweaks I'd like to see so that existing behaviour does not change, otherwise I'm more than happy to merge your modifications. |
|
Hi @J-Endres , thank you for going through the PR in such great depth, I appreciate the insights and suggestions. |
|
The last few forced pushes were to amend the commit. I made minor adjustments to the comments and the titles on the ipynb example file, and to account for the number of masks in |
|
The changes look great, thank you! |
Summary
This pull request introduces some enhancements and new features related to binary mask generation for different tissue when downloading data from the BrainWeb website. The key changes are as follows:
Binary Mask Generation:
generate_brainweb_phantomsfunction. These masks accurately represent different tissue types in the downloaded brain phantoms.Integration with VoxelGrid Phantom and SimData:
VoxelGridphantom andSimDataclasses. This integration ensures that the binary masks are now a cohesive part of the simulation data workflow.New Example Notebook:
documentation/playground/templates/binary_masks.ipynb. This notebook demonstrates how to extract and plot the binary masks, providing users with a clear and practical guide on utilizing this new functionality.Intended Use of Binary Masks:
Changes Made
generate_brainweb_phantomsfunction to create binary masks based on tissue properties during the BrainWeb data download.VoxelGridandSimDataclasses to include functionality for resampling, plotting, and managing these binary masks.documentation/playground/templates/directory that shows how to work with these binary masks, including plotting and extraction.Testing
Notes
I look forward to your review and comments on this contribution!