Skip to main content

Module value

Module value 

Source
Expand description

DICOM value types — the Value enum and its supporting types.

Ports DCMTK’s per-VR element classes into a single Rust enum, with dedicated structs for the richer DICOM scalar types (dates, times, person names).

Structs§

DicomDate
A DICOM DA (Date) value: YYYYMMDD, with optional month and day.
DicomDateTime
A DICOM DT (DateTime) value: YYYYMMDDHHMMSS.FFFFFF+ZZZZ.
DicomTime
A DICOM TM (Time) value: HHMMSS.FFFFFF, with optional components.
EncapsulatedFrame
One compressed frame worth of encapsulated Pixel Data fragments.
PersonName
A DICOM PN (Person Name) value.

Enums§

PixelData
Pixel data stored either as native (uncompressed) bytes or encapsulated (compressed) fragments.
Value
The value held by a DICOM data element.

Functions§

build_encapsulated_pixel_data
Build encapsulated Pixel Data from per-frame compressed fragments.
encapsulated_frames
Split encapsulated pixel data into per-frame compressed payloads.
encapsulated_pixel_data_from_frames
Convenience helper for the common one-fragment-per-frame case.