diff --git a/console/nii_dicom.h b/console/nii_dicom.h index 800d29e2..905f097b 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.20211010" #define kDCMvers kDCMdate " " kJP2suf kLSsuf kCCsuf kCPUsuf static const int kMaxEPI3D = 1024; //maximum number of EPI images in Siemens Mosaic diff --git a/console/nii_dicom_batch.cpp b/console/nii_dicom_batch.cpp index 0ec44bce..97034762 100644 --- a/console/nii_dicom_batch.cpp +++ b/console/nii_dicom_batch.cpp @@ -6279,7 +6279,7 @@ int saveDcm2NiiCore(int nConvert, struct TDCMsort dcmSort[], struct TDICOMdata d nii_check16bitUnsigned(imgM, &hdr0, opts.isVerbose); //save UINT16 as INT16 if we can do this losslessly if ((dcmList[dcmSort[0].indx].isXA10A) && (nConvert < 2)) printWarning("Siemens XA DICOM inadequate for robust conversion (issue 236)\n"); - if ((dcmList[dcmSort[0].indx].isXA10A) && (nConvert > 1)) + if ((dcmList[dcmSort[0].indx].isXA10A) && (nConvert > 1) && (nConvert == (hdr0.dim[3] * hdr0.dim[4])) ) printWarning("Siemens XA exported as classic not enhanced DICOM (issue 236)\n"); printMessage("Convert %d DICOM as %s (%dx%dx%dx%d)\n", nConvert, pathoutname, hdr0.dim[1], hdr0.dim[2], hdr0.dim[3], hdr0.dim[4]); #ifndef USING_R