MedPhys Files

Try our new software - DoseLab Pro    

Simple, elegant IMRT and TG-142 QA    

   Login or Register
HomeDownloadsMy Account
Downloads › pydicom python DICOM library
Toggle Content Main Menu
 Home Members options Search
Toggle Content User Info

Welcome Anonymous

(Register)
Toggle Content The Simpsons

pydicom python DICOM library
Main | Details | Download Now | History | Statistics | Tell a Friend

Add your mirror to this download

Category Other
Submitted by
Author's Name
Darcy Mason
Homepage pydicom.googlecode.com
Version 0.9.3
Distributed with custom license file? Yes
Published
Sun Oct 12, 2008 1:55 pm
Updated
Tue May 26, 2009 2:19 am

Read, modify and write DICOM medical files using the python language.

pydicom is a pure python package for working with DICOM files. It was made for inspecting and modifying DICOM data in an easy "pythonic" way. The modifications can be written again to a new file. As a pure python package, it should run anywhere python runs without any other requirements.

Here is a short code sample from an interactive python session:
Code:

>>> import dicom
>>> plan=dicom.read_file("rtplan.dcm")
>>> plan.PatientsName
'Last^First^mid^pre'
>>> plan.dir("setup")    # get a list of tags with "setup" somewhere in the name
['PatientSetups']
>>> plan.PatientSetups[0]
(0018, 5100) Patient Position                    CS: 'HFS'
(300a, 0182) Patient Setup Number                IS: '1'
(300a, 01b2) Setup TechniqueDescription          ST: ''
>>> plan.PatientSetups[0].PatientPosition = "HFP"
>>> plan.save_as("rtplan2.dcm")
>>>
Rating Not rated
Popularity 5/5: Very popular
Downloads 109
Page views 1595

Download Now

Unless otherwise specified, all files are distributed under the MIT open source license for research and educational use only with no fitness guarantee.
The logos and trademarks used on this site are the property of their respective owners.
Interactive software released under GNU GPL, Code Credits, Privacy Policy