Skip to content

Commit

Permalink
Merge pull request #780 from mr-jaemin/development
Browse files Browse the repository at this point in the history
Fix PhaseEncodingDirectionDisplayed for GE #779
  • Loading branch information
neurolabusc authored Jan 23, 2024
2 parents 980b4ed + 5bc274f commit 96bb7ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion console/nii_dicom.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ extern "C" {
#define kCPUsuf " " //unknown CPU
#endif

#define kDCMdate "v1.0.20240117"
#define kDCMdate "v1.0.20240123"
#define kDCMvers kDCMdate " " kJP2suf kLSsuf kCCsuf kCPUsuf

static const int kMaxEPI3D = 1024; //maximum number of EPI images in Siemens Mosaic
Expand Down
3 changes: 2 additions & 1 deletion console/nii_dicom_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,8 @@ tse3d: T2*/
bool interp = false; //2D interpolation
float phaseOversampling = 0.0;
//n.b. https://neurostars.org/t/getting-missing-ge-information-required-by-bids-for-common-preprocessing/1357/7
json_Str(fp, "\t\"PhaseEncodingDirectionDisplayed\": \"%s\",\n", d.phaseEncodingDirectionDisplayedUIH);
if (d.manufacturer == kMANUFACTURER_UIH)
json_Str(fp, "\t\"PhaseEncodingDirectionDisplayed\": \"%s\",\n", d.phaseEncodingDirectionDisplayedUIH);
if ((d.manufacturer == kMANUFACTURER_GE) && (d.phaseEncodingGE != kGE_PHASE_ENCODING_POLARITY_UNKNOWN)) { //only set for GE
if (d.phaseEncodingGE == kGE_PHASE_ENCODING_POLARITY_UNFLIPPED)
fprintf(fp, "\t\"PhaseEncodingPolarityGE\": \"Unflipped\",\n");
Expand Down

0 comments on commit 96bb7ac

Please sign in to comment.