Skip to content

Commit a37e02b

Browse files
committed
Release 30-Sept-2016
1 parent ed8918b commit a37e02b

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This software is open source. The bulk of the code is covered by the BSD license
88

99
## Versions
1010

11-
29-Sept-2016
11+
30-Sept-2016
1212
- Save ImageType (0x0008,0x0008) to BIDS.
1313
- Separate CT scans with different exposures.
1414
- Fixed issues where some compilers would generate erratic filenames for zero-padded series (e.g. "-f %3s")

console/dcm2niix

184 KB
Binary file not shown.

console/nii_dicom.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ extern "C" {
1111
#endif
1212

1313
#ifdef myEnableJasper
14-
#define kDCMvers "29Sept2016j" //JASPER for JPEG2000
14+
#define kDCMvers "30Sept2016j" //JASPER for JPEG2000
1515
#else
1616
#ifdef myDisableOpenJPEG
17-
#define kDCMvers "29Sept2016" //no decompressor
17+
#define kDCMvers "30Sept2016" //no decompressor
1818
#else
19-
#define kDCMvers "29Sept2016o" //OPENJPEG for JPEG2000
19+
#define kDCMvers "30Sept2016o" //OPENJPEG for JPEG2000
2020
#endif
2121
#endif
2222

console/nii_dicom_batch.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,10 @@ void nii_SaveBIDS(char pathoutname[], struct TDICOMdata d, struct TDCMopts opts,
373373
}
374374
fprintf(fp, "],\n");
375375
}
376-
if (d.acquisitionTime > 0.0) fprintf(fp, "\t\"AcquisitionTime\": %f,\n", d.acquisitionTime );
377-
if (d.acquisitionDate > 0.0) fprintf(fp, "\t\"AcquisitionDate\": %8.0f,\n", d.acquisitionDate );
378-
//if (d.dateTime > 0.0) fprintf(fp, "\t\"AcquisitionDateTime\": %f,\n", d.dateTime ); // <- not a formal DICOM value
376+
//Chris Gorgolewski: BIDS standard specifies ISO8601 date-time format (Example: 2016-07-06T12:49:15.679688)
377+
//Lines below directly save DICOM values
378+
// if (d.acquisitionTime > 0.0) fprintf(fp, "\t\"AcquisitionTime\": %f,\n", d.acquisitionTime );
379+
// if (d.acquisitionDate > 0.0) fprintf(fp, "\t\"AcquisitionDate\": %8.0f,\n", d.acquisitionDate );
379380
//if conditionals: the following values are required for DICOM MRI, but not available for CT
380381
if (d.fieldStrength > 0.0) fprintf(fp, "\t\"MagneticFieldStrength\": %g,\n", d.fieldStrength );
381382
if (d.flipAngle > 0.0) fprintf(fp, "\t\"FlipAngle\": %g,\n", d.flipAngle );

0 commit comments

Comments
 (0)