dicomwrite - assign VR to WaveformData
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
Dear,
I need to create a dicom file (say 'test.dcm') which borrows the metadata from another dicom file (say 'template.dcm'). My problem is that dicomwrite modifies the VR of the tag WaveformData from OB to OW.
This is a problem because I need to upload the new dicom in a commercial software which requires a VR of OB.
For instance: if I do:
X = dicomread('template.dcm');
info = dicominfo('template.dcm');
dicomwrite(X,'test.dcm',info,'CreateMode','Copy')
then, the output of
dicomdisp('template.dcm')
is:
0004204    2   (5400,1010) *OB*      19660 bytes - WaveformData
while the output of
dicomdisp('test.dcm')
is:
0004070    2   (5400,1010) *OW*      19660 bytes - WaveformData
Connected to this, I also noticed that in 'template.dcm' it is WaveformData: [9830x1 uint16]
While, in 'test.dcm', it becomes: WaveformData: [19660x1 uint8]
is there a way to avoid this change of format? I tried to play around with the 'TransferSyntax' and 'VR' options but with not success.
Thank you in advance
Martino.
0 Commenti
Risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
