Crate dicom_dump

Source
Expand description

DICOM data dumping library

This is a helper library for dumping the contents of DICOM objects and elements in a human readable way.

§Examples

A quick and easy way to dump the contents of a DICOM object is via dump_file (or dump_file_to to print to an arbitrary writer).

use dicom_object::open_file;
use dicom_dump::dump_file;

let obj = open_file("path/to/file.dcm")?;
dump_file(&obj)?;

See the DumpOptions builder for additional dumping options.

use dicom_object::open_file;
use dicom_dump::{DumpOptions, dump_file};

let obj = open_file("path/to/file2.dcm")?;
let mut options = DumpOptions::new();
// dump to stdout (width = 100)
options.width(100).dump_file(&obj)?;

Structs§

ColorModeError
The error raised when providing an invalid color mode.
DumpOptions
Options and flags to configure how to dump a DICOM file or object.

Enums§

ColorMode
Enumeration of output coloring modes.
DumpFormat

Functions§

dump_element
dump_file
Dump the contents of a DICOM file to stdout.
dump_file_to
Dump the contents of a DICOM file to the given writer.
dump_object
Dump the contents of a DICOM object to stdout.
dump_object_to
Dump the contents of a DICOM object to the given writer.