[][src]Crate dicom_object

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.

Examples

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))?;

Re-exports

pub use crate::file::from_reader;
pub use crate::file::open_file;
pub use crate::meta::FileMetaTable;

Modules

file
loader
mem

This module contains the implementation for an in-memory DICOM object.

meta

Module containing data structures and readers of DICOM file meta information tables.

pixeldata

Module for the pixel data trait and implementations.

Structs

RootDicomObject

A root DICOM object contains additional meta information about the object

StandardDataDictionary

A data dictionary which consults the library's global DICOM attribute registry.

Tag

The data type for DICOM data element tags.

Enums

Error

The main data type for errors in the library.

Traits

DicomObject

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.

Type Definitions

DefaultDicomObject

The default implementation of a root DICOM object.

Result

Type alias for a result from this crate.