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§
- Color
Mode Error - The error raised when providing an invalid color mode.
- Dump
Options - Options and flags to configure how to dump a DICOM file or object.
Enums§
- Color
Mode - Enumeration of output coloring modes.
- Dump
Format
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.