dbdicom.from_nifti#
- dbdicom.from_nifti(file: str, series: list, ref: list | None = None, multislice=False)[source]#
Create a DICOM series from a nifti file.
- Parameters:
file (str) – file path of the nifti file.
series (list) – DICOM series to create
ref (list) – DICOM series to use as template.
multislice (bool, optional) – Whether the data are to be written as multislice or not. In multislice data the voxel size is written in the slice gap rather thaan the slice thickness. Defaults to False.