Skip to content

Commit

Permalink
Use ucReadOutMode to detect monopolar/bipolar diffusion (nipreps/fmri…
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Dec 19, 2018
1 parent 783cf14 commit 4862f58
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions console/nii_dicom_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,13 @@ void siemensCsaAscii(const char * filename, int csaOffset, int csaLength, float
#endif
char keyStrDS[] = "sDiffusion.dsScheme";
*difBipolar = readKey(keyStrDS, keyPos, csaLengthTrim);
if (*difBipolar == 0) {
char keyStrROM[] = "ucReadOutMode";
*difBipolar = readKey(keyStrROM, keyPos, csaLengthTrim);
if ((*difBipolar >= 1) && (*difBipolar <= 2)) { //E11C Siemens/CMRR dsScheme: 1=bipolar, 2=unipolar, B17 CMRR ucReadOutMode 0x1=monopolar, 0x2=bipolar
*difBipolar = 3 - *difBipolar;
} //https://github.com/poldracklab/fmriprep/pull/1359#issuecomment-448379329
}
char keyStrES[] = "sFastImaging.lEchoSpacing";
*echoSpacing = readKey(keyStrES, keyPos, csaLengthTrim);
char keyStrBase[] = "sKSpace.lBaseResolution";
Expand Down

0 comments on commit 4862f58

Please sign in to comment.