QIICR / dcmqi

dcmqi (DICOM for Quantitative Imaging) is a free, open source C++ library for conversion between imaging research formats and the standard DICOM representation for image analysis results
https://qiicr.gitbook.io/dcmqi-guide/
BSD 3-Clause "New" or "Revised" License
232 stars 62 forks source link

Violating VR definition #453

Open spandan-roy-ainostics opened 2 years ago

spandan-roy-ainostics commented 2 years ago

I am trying to create a dicom seg file using itkimage2segimage, however I keep running into VR definition violation errors. image image (1)

What would be the exact fix for this issue?

fedorov commented 2 years ago

Can you try checking if the input DICOM files are valid using this tool: https://www.dclunie.com/dicom3tools/dciodvfy.html ?

spandan-roy-ainostics commented 2 years ago

I am getting the following output when I check the validity for the dicom files:

image

Does this mean the images don't meet the validity required by itkimage2segimage?

fedorov commented 2 years ago

Yes, you would need to fix the errors related to VR constraints violations before you can use this dataset with dcmqi. Some of those fields are copied into the output SEG, and the converter will not be able to write a valid SEG with those values in the input.