Skip to content

v2.5.0 — Series held in a single file

Latest

Choose a tag to compare

@carluri carluri released this 14 Nov 23:58
5a0c4af

Series held in a single file

A reconstructed SPECT is one NM instance whose frames are the slices of the
volume, and Enhanced CT, MR and PET store a volume in one file too. RT-Utils
assumed one file per slice, and such a file has no top-level
ImageOrientationPatient, so it was skipped on load: a path holding nothing
else failed with No DICOM Images found in input path. Closes #36.

Added

  • Multi-frame series are split into one slice per frame on load. Geometry is
    read from the per-frame functional groups of an Enhanced image, the detector
    information of an NM image, or a single stated position stacked along the
    slice normal, whichever the file provides.
  • Contours reference a slice by ReferencedFrameNumber as well as
    ReferencedSOPInstanceUID, since every frame of a file shares one
    identifier. Structure sets that name no frame still load.
  • dicom_series_path may name a single file, not only a directory.
  • Each slice exposes its own pixel_array, read lazily from the parent file.

Changed

  • An NM file holding projections rather than a reconstruction is refused with
    an explanation, as are gated and multi-energy-window files; their frames are
    not slices of one volume. Such a file beside a usable series is skipped with
    a warning instead, so a mixed study folder still loads.

Verified against a whole-body SPECT reconstruction of 228 slices at 4.795 mm,
which stacks to the extent of the CT acquired with it, with a segmented region
round tripping unchanged.

See Series held in a single file.

Full Changelog: v2.4.0...v2.5.0