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

`niftiread()`: rescaling phase in Matlab to [-pi,pi] #91

Open rtopfer opened 4 years ago

rtopfer commented 4 years ago

A function is needed to shift+rescale phase images and recast to double from int16, i.e. to perform what this bit of code in MaRdI does for DICOM's

evaalonsoortiz commented 4 years ago

@rtopfer Hmm ... strange that's missing. What is the header name? Are you sure the range varies per sequence? I thought it only varied according to the software version and/or vendor.

rtopfer commented 4 years ago

RescaleIntercept and RescaleSlope—tags: (0028,1052) and (0028,1053).

No idea whether it actually varies between sequences: I think it's been consistent across the few Siemens GRE sequences we've used but the disclaimer on the FSL/FUGUE page is disconcerting since obviously we want an automated solution for the rescaling and ideally that wouldn't require a massive if/else tree...