Skip to main content

Module dcm

Module dcm 

Source
Expand description

DICOM domain layer: study/series/instance model, folder loading, and pixel-data decoding to RGBA for the viewport.

The dependency graph inside this layer is roughly linear:

loader  →  study  →  pixel  →  roi   →  annotation
                               ↘         ↘
                                thumbnail   export
                                           ↘
                                         metadata
  • loader walks a folder and produces metadata-only Study trees.
  • pixel decodes a single instance to interactive f32 values and re-windows them to RGBA8 on demand.
  • roi computes statistics over windows on pixel::RawImage.
  • annotation persists user measurements to a JSON sidecar.
  • thumbnail decodes a heavily-decimated preview for the sidebar.
  • metadata flattens DICOM tags for the right-hand panel.
  • export writes annotated PNGs and a basic anonymised copy of the source DICOM.

Re-exports§

pub use pixel::DecodedFrame;
pub use pixel::auto_window;
pub use pixel::decode_to_rgba;
pub use pixel::load_raw;
pub use pixel::render_rgba;
pub use pixel::RawImage;
pub use pixel::WindowSetting;
pub use study::Instance;
pub use study::Series;
pub use study::Study;

Modules§

annotation
User annotations + measurements, persisted to a sidecar JSON.
export
PNG export with optional annotation burn-in, plus a basic anonymisation pass for DICOM files.
loader
Folder scanning and DICOM metadata extraction.
metadata
Flatten a DICOM file’s tags into rows the metadata panel can display.
pixel
Pixel-data decode + CPU windowing.
roi
ROI statistics + measurement units.
study
In-memory model of loaded DICOM studies.
thumbnail
Series preview thumbnails for the sidebar.