dbdicom.pixel_data#

dbdicom.pixel_data(series: list, dims: list | None = None, include: list | None = None) tuple[source]#

Read the pixel data from a DICOM series

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

  • dims (list, optional) – Dimensions of the array.

  • include (list, optional) – list of DICOM attributes that are read on the fly to avoid reading the data twice.

Returns:

numpy array with pixel values and an array with

coordinates of the slices according to dims. If include is provide these are returned as a dictionary in a third return value.

Return type:

tuple