fedorov / MultiVolumeImporter

A 3D Slicer module to support import of multi-volume data from non-DICOM sources, and provide plugin for importing such data from images saved in DICOM.
http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/MultiVolumeImporter
Other
9 stars 25 forks source link

ENH: Transfer attributes to Sequence node #51

Closed mikebind closed 2 years ago

mikebind commented 2 years ago

A number of attributes are set on MultiVolume nodes on import, including "MultiVolume.DICOM.EchoTime", "MultiVolume.DICOM.FlipAngle", "MultiVolume.DICOM.RepetitionTime", "MultiVolume.FrameIdentifyingDICOMTagName", and "MultiVolume.FrameLabels". These were used in modules such as DSCMRIAnalysis. However, they were not transferred to the volume Sequence node if a Sequence node was imported instead of a MultiVolume node. Now that the MultiVolume selector widget has been modified to allow selection of Sequence nodes, these attributes need to be transferred in order for things to work the same way as they did for MultiVolumes. This commit transfers all attributes stored for a MultiVolume node to the corresponding Sequence node on import.

mikebind commented 2 years ago

This PR is a result of this discussion: https://discourse.slicer.org/t/convert-between-multivolume-and-volume-sequence/24504/14?u=mikebind

fedorov commented 2 years ago

Thank you for your contribution!

lassoan commented 2 years ago

I've updated the git hash in Slicer, so the fix will be available in the Slicer Preview Release from tomorrow.