2.1.1.6. rpt_dosi.images¶
2.1.1.6.1. Attributes¶
2.1.1.6.2. Classes¶
Class to manage metadata, providing methods to convert to/from dict and JSON. |
|
Class to manage metadata, providing methods to convert to/from dict and JSON. |
|
Class to manage metadata, providing methods to convert to/from dict and JSON. |
|
Class to manage metadata, providing methods to convert to/from dict and JSON. |
|
Class to manage metadata, providing methods to convert to/from dict and JSON. |
|
Class to manage metadata, providing methods to convert to/from dict and JSON. |
2.1.1.6.3. Functions¶
|
Read an existing metaimage. |
|
|
|
Create (and read) a new metaimage. |
|
|
|
|
|
|
|
Read or create a CT image |
|
Read or create a SPECT image and consider the given unit |
|
Read or create a PET image and consider the given unit |
|
Read or create a ROI image and consider the given unit |
|
Read or create a Dose image and consider the given unit |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2.1.1.6.4. Module Contents¶
- rpt_dosi.images.read_metaimage(file_path, reading_mode='image')[source]¶
Read an existing metaimage. Need both the image and the associated metadata json sidecar file.
reading_mode: - image - header_only - metadata_only
- rpt_dosi.images.new_metaimage(image_type, file_path, overwrite=False, reading_mode='metadata_only', **kwargs)[source]¶
Create (and read) a new metaimage. The filepath of the image must exist. The associated metadata json sidecar file is created (or overwritten if already exist) The required parameters must be given for some image_type : - SPECT require ‘unit’ - ROI require ‘name’
- rpt_dosi.images.read_spect(filepath, unit=None)[source]¶
Read or create a SPECT image and consider the given unit
- rpt_dosi.images.read_pet(filepath, unit=None)[source]¶
Read or create a PET image and consider the given unit
- rpt_dosi.images.read_roi(filepath, name=None, effective_time_h=None)[source]¶
Read or create a ROI image and consider the given unit
- rpt_dosi.images.read_dose(filepath, unit=None)[source]¶
Read or create a Dose image and consider the given unit
- class rpt_dosi.images.MetaImageBase(image_path, reading_mode, create=False, **kwargs)[source]¶
Bases:
rpt_dosi.metadata.ClassWithMetaDataClass to manage metadata, providing methods to convert to/from dict and JSON. The class fields that are considered as metadata are store in _metadata_fields.
- class rpt_dosi.images.MetaImageCT(image_path, reading_mode, create=False, **kwargs)[source]¶
Bases:
MetaImageBaseClass to manage metadata, providing methods to convert to/from dict and JSON. The class fields that are considered as metadata are store in _metadata_fields.
- class rpt_dosi.images.MetaImageSPECT(image_path, reading_mode, create=False, **kwargs)[source]¶
Bases:
MetaImageBaseClass to manage metadata, providing methods to convert to/from dict and JSON. The class fields that are considered as metadata are store in _metadata_fields.
- class rpt_dosi.images.MetaImagePET(image_path, reading_mode, create=False, **kwargs)[source]¶
Bases:
MetaImageSPECTClass to manage metadata, providing methods to convert to/from dict and JSON. The class fields that are considered as metadata are store in _metadata_fields.
- class rpt_dosi.images.MetaImageROI(image_path, reading_mode, create=False, **kwargs)[source]¶
Bases:
MetaImageBaseClass to manage metadata, providing methods to convert to/from dict and JSON. The class fields that are considered as metadata are store in _metadata_fields.
- class rpt_dosi.images.MetaImageDose(image_path, reading_mode, create=False, **kwargs)[source]¶
Bases:
MetaImageSPECTClass to manage metadata, providing methods to convert to/from dict and JSON. The class fields that are considered as metadata are store in _metadata_fields.
- rpt_dosi.images.resample_ct_like(ct: MetaImageCT, like: MetaImageBase, gaussian_sigma=None)[source]¶
- rpt_dosi.images.resample_dose_like(dose: MetaImageDose, like: MetaImageBase, gaussian_sigma=None)[source]¶
- rpt_dosi.images.resample_ct_spacing(ct: MetaImageCT, spacing, gaussian_sigma=None)[source]¶
- rpt_dosi.images.resample_spect_like(spect: MetaImageSPECT, like: MetaImageBase, gaussian_sigma=None)[source]¶
- rpt_dosi.images.resample_spect_spacing(spect: MetaImageSPECT, spacing, gaussian_sigma=None)[source]¶
- rpt_dosi.images.resample_roi_like(roi: MetaImageROI, like: MetaImageBase)[source]¶
- rpt_dosi.images.resample_roi_spacing(roi: MetaImageROI, spacing)[source]¶
- rpt_dosi.images.set_time_from_injection_h(injection_datetime, acquisition_datetime, time_from_injection_h)[source]¶