An ecosystem of library and tools for DICOM compliant systems.
This collection provides a pure Rust implementation of the DICOM standard, allowing users to read and write DICOM objects over files and other sources, while remaining intrinsically fast and safe to use.
corerepresents all of the base traits, data structures and functions related to DICOM content.encodingcontains DICOM data encoding and decoding primitives.parserprovides a middle-level abstraction for the parsing and printing of DICOM data sets.objectprovides a high-level abstraction of DICOM objects and functions for reading and writing DICOM files.pixeldataenables the conversion of DICOM objects into images and multidimensional arrays.dictionary-stdcontains a Rust definition of the standard data dictionary.transfer-syntax-registrycontains a registry of transfer syntax specifications.ulimplements the DICOM upper layer protocol.
dumpis a command-line application for inspecting DICOM files.scpproxyimplements the Proxy service class provider.echoscuimplements a Verification service class user.storescuimplements a Storage service class user.
dictionary-builderis a Rust application that generates code and other data structures for a DICOM standard dictionary.
The parent crate dicom aggregates the key components of the full library.
dicom::object is currently the most usable crate for reading DICOM objects from a file or a similar source.
As an alternative, dicom_object can be used directly.
An example of use follows. For more details, please visit the dicom-object documentation.
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()?;You can use Cargo to build all crates in the repository.
cargo buildThis project is under active development.
Your feedback during the development of these solutions is welcome. Please see the wiki for additional guidelines related to the project's roadmap. See also the contributor guidelines and the project's Code of Conduct.
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.