Main Menu
|
|
Home Members options Search |
|
|
|
|
User Info
|
|
 Welcome Anonymous
|
|
|
|
|
The Simpsons
|
|
|
|
|
|
|
|
pydicom python DICOM library
Main |
Details | Download Now | History |
Statistics | Tell a Friend
| 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 |
 |
| Popularity |
 |
| Downloads |
109 |
| Page views |
1595 |
|
|