How pohcee/dcmnorm works
dcmnorm is a Rust DICOM toolkit exposed through a library, CLIs, and in-process language bindings. The main user workflow is to provide DICOM or JSON input, parse or convert it, then emit JSON, DICOM, rendered images/video, or volume outputs. Separate capabilities include image rendering and reformatting, transcoding, DICOM editing, and DIMSE networking. The graph follows documented product capabilities and indexed module references; several internal feature links are documented only at the README level because their implementation excerpts were not supplied.
Main entry points: main.rs dcmnorm CLI · io.rs DICOM I/O · dimse.rs DIMSE helpers · client.rs Association client
Components 30
User Interfaces
- dcmnorm CLI
exec/dcmnorm/src/main.rs - dcmtalk CLI
exec/dcmtalk/src/main.rs - Rust library API
src/lib.rs - Node binding
bindings/node/src/lib.rs - Python binding
bindings/python/src/lib.rs - Java binding
bindings/java/src/lib.rs
DICOM Processing
- DICOM I/O
src/dicom_io/io.rs - Dataset parser
crates/dcmnorm-parser/src/dataset/read.rs - Transcoding
crates/dcmnorm-transcode/src/lib.rs - Tag editing
src/dicom_io/dicom_edit.rs
Imaging Outputs
- Frame rendering
src/dicom_io/render.rs - Volume reformatting
src/dicom_io/volume.rs - Volume export
src/dicom_io/volume_export.rs - Texture export
src/dicom_io/texture_export.rs
DIMSE Networking
- DIMSE helpers
src/dicom_io/dimse.rs - Association client
crates/dcmnorm-dimse/src/client.rs - Storage SCP
crates/dcmnorm-dimse/src/server.rs - PDU transport
crates/dcmnorm-dimse/src/conn.rs - PDU codec
crates/dcmnorm-dimse/src/pdu.rs
Core Data Layers
- Primitive values
crates/dcmnorm-core/src/value/primitive.rs - Value ranges
crates/dcmnorm-core/src/value/range.rs - Transfer decoding
crates/dcmnorm-encoding/src/decode/basic.rs - Transfer encoding
crates/dcmnorm-encoding/src/encode/basic.rs
Other components
- User
- DICOM input
- JSON input
- PACS peer
- JSON output
- DICOM output
- Image or video
Connections 33
- User → dcmnorm CLI: invokes
- User → dcmtalk CLI: invokes
- User → Node binding: calls in-process
- User → Python binding: calls in-process
- User → Java binding: calls in-process
- dcmnorm CLI → DICOM I/O: converts
- dcmnorm CLI → DICOM input: reads
- dcmnorm CLI → JSON input: reads
- DICOM I/O → Dataset parser: parses datasets
- Dataset parser → Transfer decoding: decodes values
- Transfer decoding → Primitive values: produces values
- Primitive values → Value ranges: supports values
crates/dcmnorm-core/src/value/mod.rs - dcmnorm CLI → Transcoding: transcodes
- Transcoding → Transfer encoding: encodes output
- dcmnorm CLI → Tag editing: edits tags
- dcmnorm CLI → Frame rendering: renders frames
- dcmnorm CLI → Volume reformatting: reformats MPR
- Volume reformatting → Volume export: exports volumes
src/dicom_io/mod.rs - dcmnorm CLI → Texture export: exports textures
- Frame rendering → Image or video: writes media
- Volume export → Image or video: writes volume files
- dcmtalk CLI → DIMSE helpers: runs network commands
- DIMSE helpers → Association client: uses client
- DIMSE helpers → Storage SCP: uses SCP
- Association client → PDU transport: sends and receives
crates/dcmnorm-dimse/src/conn.rs - Storage SCP → PDU transport: sends and receives
crates/dcmnorm-dimse/src/server.rs - PDU transport → PDU codec: encodes and parses
crates/dcmnorm-dimse/src/conn.rs - Association client → PACS peer: associates with
- Storage SCP → PACS peer: accepts from
- DICOM I/O → JSON output: writes JSON
- DICOM I/O → DICOM output: writes DICOM
- dcmnorm CLI → JSON output: emits conversion result
- dcmnorm CLI → DICOM output: emits conversion result