Crate dicom_dump[−][src]
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
The error raised when providing an invalid color mode.
Options and flags to configure how to dump a DICOM file or object.
Enums
Enumeration of output coloring modes.
An enum of all supported output formats for dumping DICOM data.
Functions
Dump the contents of a DICOM file to stdout.
Dump the contents of a DICOM file to the given writer.