Thursday, February 09, 2012
Google Custom Search

ClearCanvas Highlights

Download our Open Source software
Watch some Videos
Get the Source
Check out our Licensing
Join our  Forums
Some Research: OICR IPP-Trials

Our Community

Membership Membership:
Latest New User Latest: VMCCNY
New Today New Today: 18
New Yesterday New Yesterday: 26
User Count Overall: 20581

People Online People Online:
Visitors Visitors: 8
Members Members: 1
Total Total: 9

Online Now Online Now:
01: clinton

ClearCanvas Community Forums

Modify a DicomAttribute without reading and writing the PixelDate
Last Post 2010-06-29 10:55 PM by stewart. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
martin
Senior Member
Senior Member
Posts:216

--
2010-06-24 10:58 AM  

Hi,

I want to modify a single value of a DICOM tag on about 600 GB of DICOM files which are located on a slow network drive. Reading a single DicomAttribute is not touching the PixelData and therefor it is relatively fast but it does not seem to be done the same way when it comes to saving a DICOM file.

I took a look at the source and it looks like the DicomStreamWriter is writing every values not just the values that got modified.

Is this right and if so is there anything I can do to speed up the saving process?

 

kind regards, Martin

stewart
Senior Member
Senior Member
Posts:2032

--
2010-06-29 10:55 PM  
Unfortunately, no - DICOM Files pretty much have to be re-written back out. The only way you could possibly get around it is if you knew for sure that the value you were modifying was:

a) already present (e.g. not being added)
b) longer than the value replacing it
c) is ok to pad with spaces

Then, and only then, you could surgically modify the file ...

but I wouldn't recommend it :)
Real-time support available to Clinical Edition and Team Edition customers
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2011 ClearCanvas Inc.