feat(io): write Enhanced US Volume DICOM file
Description
Current DICOM writer only stores CT/MR single frame image (one instance/file per frame/slice). We want to store US frames as Enhanced US Volume.
Proposal
Implements all mandatory modules / tags and write pixel data in a multi-frame fashion.
Functional specifications
We will extend current DICOM writer and switch to special code when the SOP class is Enhanced US Volume
. That means, writing an Enhanced US Volume
will require to set the SOP class to "1.2.840.10008.5.1.4.1.1.6.2" (ENHANCED_US_VOLUME_STORAGE). All missing mandatory modules / tags shall be filled with default value and the pixel data related modules / tags shall be set accordingly to the current sight::data::Image.
Technical specifications
GDCM doesn't allow saving easily multi-frame images, or at least not in a Enhanced US Volume
. There is no sample how to do that, so it will need to be done by "hand". I have no clue of which fields are really mandatory or not. It will be a process of try and pray...