dbdicom.to_nifti#

dbdicom.to_nifti(series: list, file: str, dims: list | None = None, multislice=False)[source]#

Save a DICOM series in nifti format.

Parameters:
  • series (list) – DICOM series to read

  • file (str) – file path of the nifti file.

  • dims (list, optional) – Non-spatial dimensions of the volume. Defaults to None.

  • multislice (bool, optional) – Whether the data are to be read as multislice or not. In multislice data the voxel size is taken from the slice gap rather thaan the slice thickness. Defaults to False.