suyashkumar / dicom

⚡High Performance DICOM Medical Image Parser in Go.
MIT License
920 stars 133 forks source link

dicom.Write: The Pixel data only supports OW type #299

Closed ChaoStraxcorp closed 1 month ago

ChaoStraxcorp commented 5 months ago

When I try to write a Dicom dataset to a file, I encountered the following error:

ERROR dicomio.veryifyElement: VR mismatch for tag (7fe0,0010)[PixelData]. Element.VR=OB, but DICOM standard defines VR to be OW

However, the pixel data should support both OW and OB types: https://dicom.nema.org/medical/dicom/current/output/chtml/part05/chapter_8.html

In pkg/tag/tag_definitions.go, the PixelData can only be OW.

suyashkumar commented 1 month ago

Thanks for logging this. I think as part of the updates we'd like to make to the tag definitions (e.g. a follow on to #169) we will allow support for tags that can have multiple VRs. Definitely an important feature, and we'll take a look at this in the next few months!

suyashkumar commented 1 month ago

Closed by #316