Expand description
dcmnorm’s own DICOM in-memory object model and Part 10 file I/O, replacing dicom-object
(+ dicom-parser’s tree-building layer). See README.md for the design rationale.
Structs§
- Data
SetWriter - A stateful device for printing a DICOM data set in sequential order.
This is analogous to the
DatasetReadertype for converting data set tokens to bytes. - Deferred
Value Location - Where a value that was skipped instead of read lives in the source file (absolute byte
offset of its first byte, and its length) - see
DeferredValues. - Deferred
Values - The values a deferring read (
OpenFileOptions::open_file_deferring) skipped rather than loaded, mirroring the data set’s shape: one entry per top-level tag that was either deferred itself or is a sequence with deferred values somewhere inside its items. - File
Dicom Object - A DICOM object with its accompanying File Meta Information.
- File
Meta Table - The File Meta Information (group 0002) of a DICOM Part 10 file.
- File
Meta Table Builder - Builder for
FileMetaTable, mirroringdicom-object’sFileMetaTableBuilderfluent API. - Fragment
Location - Absolute file offset and byte length of one encapsulated pixel data fragment.
- InMem
Dicom Object - An in-memory DICOM data set: a flat, tag-ordered list of elements, each of which may itself
contain a nested list (for
SQvalues). - Missing
Element Error - A required element was not present in the object.
- Open
File Options - Builder for reading a DICOM file with non-default options (an explicit preamble requirement, or an early-stop tag for partial/fast reads).
- Pixel
Data Value Location - Where a native PixelData value sits in a file, as found by
OpenFileOptions::open_file_until_pixel_data: its declared VR and byte length, and the absolute byte offset of its first value byte.
Enums§
- Apply
OpError - An
AttributeOpcould not be applied. - Data
Token - A token of a DICOM data set stream. This is part of the interpretation of a data set as a stream of symbols, which may either represent data headers or actual value data.
- Deferred
Pixel Data - Location of top-level
(7FE0,0010) PixelDataleft on disk bycrate::OpenFileOptions::open_file_deferring_pixel_data. - Pixel
Data Stream Stop - Where
InMemDicomObject::read_dataset_until_pixel_datastopped in a forward-only stream. - Read
Error - An error occurring while reading a DICOM data set or file.
- Read
Preamble - Whether to require/skip the 128-byte preamble when opening a file.
- With
Meta Error - An error occurring while attaching/validating a file meta table.
- Write
Error - An error occurring while writing a DICOM data set or file.
Constants§
- IMPLEMENTATION_
CLASS_ UID - Fallback implementation class UID used when a
FileMetaTableBuilderdoesn’t specify one - matches dicom-object’s own convention of stamping an implementation identity into files this process writes. UUID-derived (PS3.5 Annex B:2.25.<uuid-as-decimal>), generated once and fixed forever - a UID may contain only digits and.(PS3.5 6.2), so this can’t be a readable “dcmnorm” path the way a private enterprise OID root would allow. - IMPLEMENTATION_
VERSION_ NAME
Functions§
- read_
dataset_ trial_ parse - Read raw bytes as a bare data set, trying Implicit VR LE, then Explicit VR LE, then
Explicit VR BE in that order and taking the first one that parses successfully - the same
permissive fallback
dcmnormalready relies on for meta-less raw dumps. - with_
meta_ from_ bare_ dataset - Read a bare data set (no meta group) and attach the given meta table to it. Used for
dcmnorm’s meta-less/preamble-less trial-parse fallback path.
Type Aliases§
- Default
Dicom Object - The default, in-memory DICOM file object type - a
FileMetaTableplus anInMemDicomObject. - InMem
Element - A data element within an
InMemDicomObjecttree (a primitive value, a nested sequence of furtherInMemDicomObjects, or an encapsulated pixel data fragment sequence). - InMem
Fragment - The pixel data fragment type used by
InMemDicomObject- a plain owned byte buffer.