dicomwrite - assign VR to WaveformData
显示 更早的评论
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 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Read and Write Image Data from Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!