shimming-toolbox / shimming-toolbox-matlab

Code for performing real-time shimming using external MRI shim coils
GNU General Public License v3.0
16 stars 5 forks source link

Simple B0 mapping and unwrapping functions adapted from the experiment.m script #131

Closed gaspardcereza closed 4 years ago

gaspardcereza commented 4 years ago

That issue aims to adapt the B0 mapping code used in example/experiment.m to make it easier to call from anywhere (as part of the +imutils package).

2 functions are added to the project: imutils.unwrap.m allows to choose the algorithm that will be used for the unwrapping and returns the unwrapped phases as a 5D array (x, y, z, nEcho, nAcq). Currently only handles sunwrap.

imutils.b0.computeFieldMaps.m allows to choose the algorithm that will be used for the B0 mapping and returns a 4D array (x, y, z, nAcq) corresponding to the different B0 maps at each acquisition time. Currently only handles the phase difference method with 1 or 2 echoes.

Closes #128

mathieuboudreau commented 4 years ago

does unwrapping ever need to be done for anything other than b0 field mapping? 🤔

Yes, there are phase-based B1 mapping techniques (e.g., Bloch-Siegert shift).

jcohenadad commented 4 years ago

@gaspardcereza can we close this?

gaspardcereza commented 4 years ago

@gaspardcereza can we close this?

I think since we moved to python some code has been developed based on other B0 mapping technique so I don't think that branch is useful anymore. I guess it can thus be closed.