From 06951ec39410625219420ff02f5e3d8c6563d7dd Mon Sep 17 00:00:00 2001 From: neurolabusc Date: Wed, 15 Dec 2021 16:56:39 -0500 Subject: [PATCH] precedence for 0020,0100 over 2005,1063 (https://github.com/rordenlab/dcm2niix/issues/567) --- console/nii_dicom.cpp | 1 + console/nii_dicom.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/console/nii_dicom.cpp b/console/nii_dicom.cpp index c6cdb6e5..5d3b6a2b 100644 --- a/console/nii_dicom.cpp +++ b/console/nii_dicom.cpp @@ -6185,6 +6185,7 @@ const uint32_t kEffectiveTE = 0x0018 + (0x9082 << 16); case kMRfMRIStatusIndicationPhilips: {//fmri volume number if (d.manufacturer != kMANUFACTURER_PHILIPS) break; + if (volumeNumber > 0) break; //issue567 int i = dcmInt(lLength, &buffer[lPos], d.isLittleEndian); if (i > 0) //only if positive value, see Magdeburg_2014 sample data from dcm_qa_philips Philips MR 51.0 volumeNumber = i; diff --git a/console/nii_dicom.h b/console/nii_dicom.h index 800d29e2..ed952a06 100644 --- a/console/nii_dicom.h +++ b/console/nii_dicom.h @@ -50,7 +50,7 @@ extern "C" { #define kCPUsuf " " //unknown CPU #endif -#define kDCMdate "v1.0.20211006" +#define kDCMdate "v1.0.20211215" #define kDCMvers kDCMdate " " kJP2suf kLSsuf kCCsuf kCPUsuf static const int kMaxEPI3D = 1024; //maximum number of EPI images in Siemens Mosaic