ImagingDataCommons / highdicom

High-level DICOM abstractions for the Python programming language
https://highdicom.readthedocs.io
MIT License
162 stars 34 forks source link

WIP: Volumetric Segmentations #277

Open CPBridge opened 5 months ago

CPBridge commented 5 months ago

Branch for NAMIC project week 40. Project page.

Goals

Add support for working with "volumetric": segmentations, i.e. regularly spaced frames in a 3D frame of reference. Specifically:

Details

In order to do this, I have generalized the existing highdicom.seg.sop._SegDBManager class to create a general highdicom._multiframe.MultiFrameDBManager class to handle the logic of storing an in-memory sqlite database of per-frame information for general multiframe object. This simplifies the process of inspecting the geometry of subsets of frames and will also make it much easier to do similar things for other multiframe objects in the future (e.g. parametric maps, labelmap segmentations)