Skip to content

Commit

Permalink
Handle missing 0020,0037 (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Jan 10, 2023
1 parent 3e59de1 commit 4351e5b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ The following tools exploit dcm2niix
- [divest](https://github.com/jonclayden/divest) R interface to dcm2niix.
- [DPABI Data Processing & Analysis for Brain Imaging](http://rfmri.org/dpabi) includes dcm2niix.
- [ExploreASL](https://sites.google.com/view/exploreasl/exploreasl) uses dcm2niix to import images.
- [ExploreASL-GUI](https://github.com/MauricePasternak/ExploreASL-GUI) uses dcm2niix for image conversion.
- [ezBIDS](https://github.com/brainlife/ezbids) is a [web service](https://brainlife.io/ezbids/) for converting directory full of DICOM images into BIDS without users having to learn python nor custom configuration file.
- [fmrif tools](https://github.com/nih-fmrif/fmrif_tools) uses dcm2niix for its [oxy2bids](https://fmrif-tools.readthedocs.io/en/latest/#) tool.
- [fMRIprep.dcm2niix](https://github.com/BrettNordin/fMRIprep.dcm2niix) is designed to convert DICOM format to the NIfTI format.
Expand Down
2 changes: 1 addition & 1 deletion Siemens/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dcm2niix attempts to convert Siemens DICOM format images to NIfTI. This page des

Siemens MR is named by Series, Generation, Major Version and Minor Version. Prior to the Siemens Vida, all contemporary Siemens MRI systems (Trio, Prisma, Skyra, etc) were part of the V series. So a Trio might be on VB17, and a Prisma on VE11 (series 'V', generation 'E', major version '1', minor version '1'). The 3T Vida and 1.5T Sola introduce the X-series (XA10, XA11, XA20). Since the V-series was dominant for so long, most users simply omit the series, e.g. referring to a system as `B19`. However, Siemens has recently introduced a new X-series.

The DICOM images exported by the X-series is radically different than the V-series. The images lack the proprietary CSA header with its rich meta data.
The DICOM images exported by the X-series is [radically different](https://wikis.utexas.edu/display/IRC/New+Enhanced+DICOM+format) than the V-series. The images lack the proprietary CSA header with its rich meta data.

X-series users are strongly encouraged to export data using the "Enhanced" format and to not use any of the "Anonymize" features on the console. The consequences of these options is discussed in detail in [issue 236](https://github.com/rordenlab/dcm2niix/issues/236). Siemens notes `We highly recommend that the Enhanced DICOM format be used. This is because this format retains far more information in the header`. Failure to export data in this format has led to catastrophic data loss for numerous users (for publicly reported details see issues [203](https://github.com/rordenlab/dcm2niix/issues/203), [236](https://github.com/rordenlab/dcm2niix/issues/236), [240](https://github.com/rordenlab/dcm2niix/issues/240), [274](https://github.com/rordenlab/dcm2niix/issues/274), [303](https://github.com/rordenlab/dcm2niix/issues/303), [370](https://github.com/rordenlab/dcm2niix/issues/370), [394](https://github.com/rordenlab/dcm2niix/issues/394)). This reflects limitations of the DICOM data, not dcm2niix.

Expand Down
6 changes: 3 additions & 3 deletions console/nii_dicom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -662,9 +662,9 @@ int headerDcm2NiiSForm(struct TDICOMdata d, struct TDICOMdata d2, struct nifti_1
d.orient[1] = 1.0f;
d.orient[2] = 0.0f;
d.orient[3] = 0.0f;
d.orient[1] = 0.0f;
d.orient[2] = 1.0f;
d.orient[3] = 0.0f;
d.orient[4] = 0.0f;
d.orient[5] = 1.0f;
d.orient[6] = 0.0f;
if ((d.isDerived) || ((d.bitsAllocated == 8) && (d.samplesPerPixel == 3) && (d.manufacturer == kMANUFACTURER_SIEMENS))) {
printMessage("Unable to determine spatial orientation: 0020,0037 missing (probably not a problem: derived image)\n");
} else {
Expand Down

0 comments on commit 4351e5b

Please sign in to comment.