Skip to content

Commit

Permalink
Only add "MAGNITUDE" if neither ?MAGNITUDE" or "M" is listed as Image…
Browse files Browse the repository at this point in the history
…Type (#851)
  • Loading branch information
neurolabusc committed Aug 14, 2024
1 parent de3b205 commit 373618d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/nii_dicom_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ tse3d: T2*/
} else
isSep = true;
}
if ((d.isHasMagnitude) && ((d.manufacturer == kMANUFACTURER_GE) || (strstr(d.imageType, "_MAGNITUDE_") == NULL)))
if ((d.isHasMagnitude) && ((d.manufacturer == kMANUFACTURER_GE) || ( (strstr(d.imageType, "_M_") == NULL) && (strstr(d.imageType, "_MAGNITUDE_") == NULL))))
fprintf(fp, "\", \"MAGNITUDE");
if ((d.isHasPhase) && ((d.manufacturer == kMANUFACTURER_GE) || (strstr(d.imageType, "_PHASE_") == NULL)))
fprintf(fp, "\", \"PHASE"); //"_IMAGINARY_"
Expand Down

0 comments on commit 373618d

Please sign in to comment.