8000 Bug from other side! i.e. device modality to report BitAllocated · Issue #1992 · fo-dicom/fo-dicom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Bug from other side! i.e. device modality to report BitAllocated #1992
Closed
@bakhtvar

Description

@bakhtvar

Attaced you may find a file from a vendor which has a wrong BitAllocated, this cause the Dump to render Image in duplicated shape!

I have just fixed that with the following code.

    public ushort BitsAllocated
    {
        get
        {
            var allocated = Dataset.GetSingleValue<ushort>(DicomTag.BitsAllocated); 
            var stored = BitsStored;
            return stored == 8 && allocated > 8
                ? stored
                : allocated;
        }
    }

Wrong-BitAllocated.zip

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

      0