Perhaps it'd be useful for dcm to only parse subset of the dicom input, and output only specified tags. The benefits would be:
- dicom input parsing speedup
- reduced memory use from only extracting data that is passed downstream
Current behaviour is to load entire dicom into memory (only skipping PixelData.)
Questions
- Currently
dcm foo is a shortcut for select foo | dcm. Is it useful to keep current behaviour?
- Should
dcm output only tags that are specified as arguments, or should it output all tags until the highest arg tag?
- Should this be configurable and if so,
- what is the default?
- Should it support nesting inside sequences, or only operate on root-level tags?
- If no tags match, return null/empty/some default value like in case of
-e for errors?
- When specifying numeric tags, support wildcards? (e.g. extract all elements in a group)
- Similarly, when specifying tags by name, support regex?
Perhaps it'd be useful for
dcmto only parse subset of the dicom input, and output only specified tags. The benefits would be:Current behaviour is to load entire dicom into memory (only skipping
PixelData.)Questions
dcm foois a shortcut forselect foo | dcm. Is it useful to keep current behaviour?dcmoutput only tags that are specified as arguments, or should it output all tags until the highest arg tag?-efor errors?