Releases: constracti/nifti2dicom
set common windowing for all DICOM files
After analyzing a NIfTI image, Window Center and Window Width tags are assigned common values in a set of DICOM files.
The output directories of nifti2dicom2.py are built according to NIfTI filename and DICOM Series Number tag, as in nifti2dicom.py script.
auto-adjust brightness and contrast of a DICOM file
Auto-adjust brightness and contrast of a DICOM file.
Customize common DICOM tags per NIfTI file:
- Protocol Name
(0x0018, 0x1030)
- Series Instance UID
(0x0020, 0x000e)
convert using a complete DICOM set
Convert NIfTI files to DICOM.
./nifti2dicom2.py PATH
A set of DICOM files is located in PATH
.
Then, for each NIfTI file in PATH
, a subdirectory is created with a copy of the DICOM.
Pixel Data (0x7fe0, 0x0010) in every copy of the original DICOM set is replaced by image data of the corresponding NIfTI file.
The Data Set Trailing Padding (0xfffc, 0xfffc) tag is ignored.
In case PATH
holds the path of a NIfTI file, only that NIfTI file is taken under consideration, while the DICOM files set is located in the directory of the NIFTI file.
export siemens csa header
0.1 export siemens csa header