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 identifier

  • dcm_path (Path) – Path to the dicom image

  • json_path (Path) – Path to the JSON file storing DICOM metadata

  • marks (Optional[List[Mark]]) – A list of marks or annotations, represented by omidb.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

dcm_tags(tags)[source]

Returns a pydicom.dataset.FileDataset, with only the specified tags of a parsed DICOM file and no pixel data

Return type

FileDataset

plot(ax=None)[source]

Plot the dicom

Return type

AxesImage