Skip to content

Commit

Permalink
Removing slice timing data for derived and localizer data (e.g. Sieme…
Browse files Browse the repository at this point in the history
…ns derived FA maps).
  • Loading branch information
neurolabusc committed Nov 27, 2024
1 parent 74e6cc3 commit e922fe8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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.20241111"
#define kDCMdate "v1.0.20241127"
#define kDCMvers kDCMdate " " kJP2suf kLSsuf kCCsuf kCPUsuf

static const int kMaxEPI3D = 1024; // maximum number of EPI images in Siemens Mosaic
Expand Down
5 changes: 5 additions & 0 deletions console/nii_dicom_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6691,6 +6691,11 @@ void checkSliceTiming(struct TDICOMdata *d, struct TDICOMdata *d1, int verbose,
printWarning("Siemens MoCo? Bogus slice timing (range %g..%g, TR=%g seconds)\n", minT1, maxT1, TRms);
return;
}
if (((d->isLocalizer) || (d->isDerived)) && ((minT1 == maxT1) || (maxT1 >= TRms))) {
//no need to store or report non-sensical slice times for derived or localizers
d->CSA.sliceTiming[0] = -1.0;
return;
}
if ((!d->isLocalizer) && ((minT1 == maxT1) || (maxT1 >= TRms))) { // both first and second image corrupted
printWarning("Slice timing appears corrupted (range %g..%g, TR=%g ms)\n", minT1, maxT1, TRms);
return;
Expand Down

0 comments on commit e922fe8

Please sign in to comment.