Skip to content

Commit

Permalink
Improve bids guess (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Sep 7, 2023
1 parent 6c5f177 commit 61ea7c3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions console/nii_dicom_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6489,7 +6489,7 @@ void setBidsSiemens(struct TDICOMdata *d, int nConvert, int isVerbose, const cha
strcpy(seqName, d->pulseSequenceName);
if (strlen(seqDetails) < 2)
strcpy(seqDetails, seqName);
if (strstr(d->imageType, "DERIVED") != NULL) {
if (strstr(d->imageType, "DERIVED")) {
isDerived = true; //to do: respond to derived images
}
if (d->modality != kMODALITY_MR)
Expand All @@ -6514,13 +6514,17 @@ void setBidsSiemens(struct TDICOMdata *d, int nConvert, int isVerbose, const cha
strcpy(modalityBIDS, "T1w");
//bork inv2 = NAN;
}
if (strstr(d->imageType, "T1 MAP") != NULL)
if (strstr(d->imageType, "T1 MAP") != NULL) {
strcpy(modalityBIDS, "T1map");
isDualTI = false; //issue 750 derived from two images
}
if (strstr(d->imageType, "_UNI") != NULL) {
isDualTI = false; //issue 750 derived from two images
strcpy(modalityBIDS, "UNIT1");
if (strstr(d->imageComments, "DENOISED IMAGE") != NULL)
strcat(recBIDS, "denoise");
}
isDerived = false; //issue750 Siemens E11 considers UNIT1 derived, but BIDS does not
} else if ((d->CSA.numDti > 0) || (strstr(seqDetails, "_diff") != NULL) || (strstr(seqDetails, "resolve") != NULL) || (strstr(seqDetails, "PtkSmsVB13ADwDualSpinEchoEpi") != NULL) || (strstr(seqDetails, "ep2d_stejskal_386") != NULL)) { //prog_diff
strcpy(dataTypeBIDS, "dwi");
strcpy(modalityBIDS, "dwi");
Expand Down

0 comments on commit 61ea7c3

Please sign in to comment.