omidb.image¶
-
class
omidb.image.
Image
(id: str, dcm_path: pathlib.Path, json_path: pathlib.Path, marks: Optional[List[omidb.mark.Mark]], _dcm: Optional[pydicom.dataset.FileDataset] = None, _json: Optional[Dict[str, Any]] = None)[source]¶ Container for a mammogram, stored in the DICOM format. An image can have zero or more marks for one or many lesions.
- Parameters
id (
str
) – SOP Instance UID, a unique identifierdcm_path (
Path
) – Path to the dicom imagejson_path (
Path
) – Path to the JSON file storing DICOM metadatamarks (
Optional
[List
[Mark
]]) – A list of marks or annotations, represented byomidb.mark.Mark
-
property
attributes
¶ Access DICOM metadata via the JSON representation
- Return type
Optional
[Dict
[str
,Any
]]
-
property
dcm
¶ Returns a
pydicom.dataset.FileDataset
, representing a parsed DICOM file- Return type
FileDataset
Returns a pydicom.dataset.FileDataset, with only the specified tags of a parsed DICOM file and no pixel data
- Return type
FileDataset