This crate contains a high-level abstraction for reading and manipulating DICOM objects. At this level, objects are comparable to a dictionary of elements, in which some of them can have DICOM objects themselves. The end user should prefer using this abstraction when dealing with DICOM objects.
Loading a file and reading some attributes by their standard alias:
use dicom_object::open_file; let obj = open_file("0001.dcm")?; let patient_name = obj.element_by_name("PatientName")?.to_str()?; let modality = obj.element_by_name("Modality")?.to_str()?;
Elements can also be fetched by tag:
let e = obj.element(Tag(0x0002, 0x0002))?;
This module contains the implementation for an in-memory DICOM object.
Module containing data structures and readers of DICOM file meta information tables.
Module for the pixel data trait and implementations.
A root DICOM object contains additional meta information about the object
A data dictionary which consults the library's global DICOM attribute registry.
The data type for DICOM data element tags.
The main data type for errors in the library.
Trait type for a DICOM object. This is a high-level abstraction where an object is accessed and manipulated as dictionary of entries indexed by tags, which in turn may contain a DICOM object.
The default implementation of a root DICOM object.
Type alias for a result from this crate.