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
Copy file name to clipboardExpand all lines: Docker/README.md
+11-23Lines changed: 11 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,17 @@ Before running the Docker container, here are the available options for the `Doc
79
79
80
80
- You can run the dicom2niix_wrapper.py script either directly or from inside a Docker container (non-interactive only). Here are the available options:
81
81
82
+
## Options
83
+
Before running the Docker container, here are the available options for the `Docker image` script:
84
+
85
+
- `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.
86
+
- `output`: Path to the output directory for the converted NIfTI files and sidecar BIDS JSON.
87
+
- ` -m, --merge-2d`: Merge 2D slices into a 3D or 4D NIfTI image regardless of study time, echo, coil, orientation, etc. Depending on your vendor, you may want to keep images segmented based on these attributes or merge/combine them.
88
+
- ` -s, --single-file`: Use single file mode (convert only one series per folder). For example, if the input path "~/dir/001.dcm" will only convert the file 001.dcm.
89
+
- ` -pu, --prompt-user`: Run the tool in interactive mode. This launches a terminal-based wizard where you can selectDICOM folders and configure conversion interactively.
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.
111
-
112
-
output: Path to the output directory for the converted NIfTI files.
113
-
114
-
#### Optional Flags
115
-
116
-
#### -m, --merge-2d
117
-
118
-
Merge 2D slices into a 3D or 4D NIfTI image regardless of study time, echo, coil, orientation, etc.
119
-
Depending on your vendor, you may want to keep images segmented based on these attributes or merge/combine them.
120
-
121
-
#### -s, --single-file
122
-
123
-
Use single file mode (convert only one series per folder).
124
-
125
-
For example, if the input path "~/dir/001.dcm" will only convert the file 001.dcm.
126
-
127
-
#### -pu, --prompt-user
128
-
129
-
Run the tool in interactive mode. This launches a terminal-based wizard where you can selectDICOM folders and configure conversion interactively.
130
-
131
119
[Note that NIfTI and DICOM encode space differently](https://www.nitrc.org/plugins/mwiki/index.php/dcm2nii:MainPage#Spatial_Coordinates)
0 commit comments