Input#
- class pydicer.input.filesystem.FileSystemInput(directory: Union[str, Path])#
- class pydicer.input.pacs.DICOMPACSInput(host: str, port: str, ae_title: Optional[str] = None, working_directory: Optional[Union[str, Path]] = None)#
- fetch_data(patients: Union[list, str], modalities: Optional[Union[list, str]] = None)#
Download the DICOM data from the PACS.
- Parameters:
patients (list|str) – A list of patient IDs, or a single patient ID. Wildcard matching based on the DICOM standard is supported.
modalities (list|str, optional) – List of modalities or a single modality to fetch. Defaults to None where all modalities would be fetched.
- class pydicer.input.orthanc.OrthancInput(host: str, port: int, username: Optional[str] = None, password: Optional[str] = None, working_directory: Optional[Union[str, Path]] = None)#
- fetch_data(patients: Union[list, str], modalities: Optional[Union[list, str]] = None)#
Download the DICOM data from Orthanc
- Parameters:
patients (list|str) – A list of patient IDs, or a single patient ID.
modalities (list|str, optional) – List of modalities or a single modality to fetch. Defaults to None where all modalities would be fetched.
- pydicer.input.orthanc.adapt_dataset_from_bytes(blob: bytes) Dataset #
Convert bytes coming from Orthanc to DICOM dataset
- Parameters:
blob (bytes) – The bytes to convert
- Returns:
The DICOM dataset
- Return type:
pydicom.Dataset
- class pydicer.input.tcia.TCIAInput(collection: str, patient_ids: list, modalities: Optional[list] = None, working_directory: Optional[Union[list, str]] = None)#
- fetch_data()#
Function to download the data from TCIA and write locally
- class pydicer.input.test.TestInput(working_directory: Optional[Union[list, str]] = None)#