You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Squashed some bugs and tried some more use case testing. Wrote up a function to save simulated DWI as DICOM images with headers configured for all in x-direction.
provided pyproject.toml for separation of dependenccies and setuptools configured for the different root packages.
- You can run the dicom2niix_wrapper.py script either directly or from inside a Docker container (non-interactive only). Here are the available options:
83
81
84
-
##### example usage:
82
+
### Example usage
85
83
86
-
```sh
87
-
sudo docker run -it --rm --name TF2.4_IVIM-MRI_CodeCollection \
input: Path to the input DICOM directory. Some scanners store images in nested subfolders, so a single session might be stored in the folders "/usr/subj22/111", "/usr/subj22/112" and "/usr/subj22/123". In this case you should simply provide the parent directly ("/usr/subj22") and dcm2niix will recursively search the sub directories and organize all your images for you.
113
111
114
112
output: Path to the output directory for the converted NIfTI files.
115
113
116
114
#### Optional Flags
117
115
118
-
#### -n, --series-number
119
-
120
-
Convert only the specified DICOM series number.
121
-
A special feature of this option is unleashed when you provide a negative series number ("-n -1"): in this case the software will report the series numbers available in the input folder, but will convert nothing.
122
-
123
116
#### -m, --merge-2d
124
117
125
-
Merge 2D slices into a 3D or 4D NIfTI image regardless of study time, echo, coil, orientation, etc.
118
+
Merge 2D slices into a 3D or 4D NIfTI image regardless of study time, echo, coil, orientation, etc.
126
119
Depending on your vendor, you may want to keep images segmented based on these attributes or merge/combine them.
127
120
128
121
#### -s, --single-file
@@ -143,4 +136,9 @@ Run the tool in interactive mode. This launches a terminal-based wizard where yo
143
136
144
137
#### It is strongly recommend that users check validate the b-vector directions for their hardware and sequence as [described in a dedicated document](https://www.nitrc.org/docman/?group_id=880)
145
138
139
+

140
+
141
+
#### Output of NIFTI and DICOM objects generated from signal generation test
142
+
143
+
- NIfTI follows the Talairach/MNI coordinate system where the X value increases as we move toward the participant's right, the Y increases as we move anteriorly. In contrast, for bipeds DICOM specifies the the X increases as we more toward the participant's left, while the Y increases as we move posteriorly. Both agree that the Z coordinate increases as we move superiorly.
parser=argparse.ArgumentParser(description="DICOM to NIfTI converter with optional IVIM processing")
221
307
parser.add_argument("input", nargs="?", help="Path to input DICOM directory")
222
-
parser.add_argument("output", nargs="?", help="Path to output directory for NIfTI files")
223
-
parser.add_argument("-n", "--series-number", type=int, default=-2, help="Only convert this series number (-n <num>)")
308
+
parser.add_argument("-o", "--output", nargs="?", help="Path to output directory for NIfTI files, defaults to the same folder as the original DICOM files.")
0 commit comments