Skip to content

Commit

Permalink
Only append PHASE, REAL, etc to ImageType if term or alias not alread…
Browse files Browse the repository at this point in the history
…y present (#851)
  • Loading branch information
neurolabusc committed Aug 14, 2024
1 parent 373618d commit 5bff3c9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions console/nii_dicom_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1431,15 +1431,15 @@ tse3d: T2*/
} else
isSep = true;
}
if ((d.isHasMagnitude) && ((d.manufacturer == kMANUFACTURER_GE) || ( (strstr(d.imageType, "_M_") == NULL) && (strstr(d.imageType, "_MAGNITUDE_") == NULL))))
if ((d.isHasMagnitude) && ((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_"
if ((d.isHasReal) && ((d.manufacturer == kMANUFACTURER_GE) || (strstr(d.imageType, "_REAL_") == NULL)))
if ((d.isHasPhase) && ((strstr(d.imageType, "_P_") == NULL) && (strstr(d.imageType, "_PHASE_") == NULL)))
fprintf(fp, "\", \"PHASE");
if ((d.isHasReal) && ((strstr(d.imageType, "_R_") == NULL) && (strstr(d.imageType, "_REAL_") == NULL)))
fprintf(fp, "\", \"REAL");
if ((d.isHasImaginary) && ((d.manufacturer == kMANUFACTURER_GE) || (strstr(d.imageType, "_IMAGINARY_") == NULL)))
if ((d.isHasImaginary) && ((strstr(d.imageType, "_I_") == NULL) && (strstr(d.imageType, "_IMAGINARY_") == NULL)))
fprintf(fp, "\", \"IMAGINARY");
if ((d.isRealIsPhaseMapHz)) // && ((d.manufacturer == kMANUFACTURER_GE) || (strstr(d.imageType, "_IMAGINARY_") == NULL)) )
if ((d.isRealIsPhaseMapHz) && ((strstr(d.imageType, "_FIELDMAPHZ_") == NULL)))
fprintf(fp, "\", \"FIELDMAPHZ");
fprintf(fp, "\"],\n");
}
Expand Down

0 comments on commit 5bff3c9

Please sign in to comment.