How do I edit a tag in a DICOM file? #239
Unanswered
vijaysubramanya
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm having trouble editing the value of PatientName in a DICOM file. Any help would be greatly appreciated.
I use the following code to read the element and edit its value.
I'm unable to write this updated element back to the file. I'm using the following code to write the element. But when I parse the file again, the PatientName is NOT updated.
Now, I've tried writing the element to an empty
test.dcm
file. When I parse this file, it outputs an empty list, butcat test.dcm
outputs some characters along with "abc", so it is writing something to the file.I'm able to write the element to the buffer and see it on parsing the buffer. It is only with writing to a file that I'm facing problems.
Thanks.
@suyashkumar @jstutters
Beta Was this translation helpful? Give feedback.
All reactions