Skip to content

Commit

Permalink
Release 30-Sept-2016
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Oct 7, 2016
1 parent ed8918b commit a37e02b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This software is open source. The bulk of the code is covered by the BSD license

## Versions

29-Sept-2016
30-Sept-2016
- Save ImageType (0x0008,0x0008) to BIDS.
- Separate CT scans with different exposures.
- Fixed issues where some compilers would generate erratic filenames for zero-padded series (e.g. "-f %3s")
Expand Down
Binary file added console/dcm2niix
Binary file not shown.
6 changes: 3 additions & 3 deletions console/nii_dicom.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ extern "C" {
#endif

#ifdef myEnableJasper
#define kDCMvers "29Sept2016j" //JASPER for JPEG2000
#define kDCMvers "30Sept2016j" //JASPER for JPEG2000
#else
#ifdef myDisableOpenJPEG
#define kDCMvers "29Sept2016" //no decompressor
#define kDCMvers "30Sept2016" //no decompressor
#else
#define kDCMvers "29Sept2016o" //OPENJPEG for JPEG2000
#define kDCMvers "30Sept2016o" //OPENJPEG for JPEG2000
#endif
#endif

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

0 comments on commit a37e02b

Please sign in to comment.