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

Add a method to ShimOpt that reveals the available channel names #29

Closed jcohenadad closed 5 years ago

jcohenadad commented 5 years ago

add a method to ShimOpt that reveals the available channel names and thus the input order for the Params.activeXChannelsMask terms, e.g. ShimOpt.getactivechannels()

More info in this discussion thread

rtopfer commented 5 years ago

Commit added method tableshim() to ShimOpt.m: Any ShimOpt-type object Shim can call Shim.tableshim(), which returns a table wherein the 1st column are the channel names/shim terms, and the 2nd column lists their current settings (entries in Shim.System.currents). (Note: Shim.System.currents are all zeroes unless it is 1) updated manually by the user, 2) for ShimOpt_IUGM_Prisma_fit, when Shim.setoriginalfield( Field ) is called (and it is called within the constructor if Field is given as an input) then the shim coefficients used to acquire Field are extracted from the DICOM header and copied to Shim.System.currents)