Skip to content

Add a boolean parameter to keep all dicom tags at loading #49

@ryder-cobean-nih

Description

@ryder-cobean-nih

We use this library as part of a solution for auto-conversion to grayscale for batch data quality, and its failsafe means to open dicoms in edge case scenarios is very useful. For my purposes, I had to fork and hastily adjust the read_dcm module, to not remove metadata fields. might it be possible to add a boolean to that function, something like keep_tags, that rather than keeping only these :

_keyword_to_copy = [
    "StudyInstanceUID",
    "SeriesInstanceUID",
    "Modality",
    "PixelSpacing",
    "ImagerPixelSpacing",
    "DistanceSourceToDetector",
    "ViewPosition",
    "PatientSex",
]

it retains all dicom tags as seen at file open?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions