pydicom

Pure python package for DICOM file reading and writing
Download

pydicom Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Darcy Mason
  • Publisher web site:
  • http://code.google.com/u/darcymason/

pydicom Tags


pydicom Description

Pure python package for DICOM file reading and writing pydicom is a pure Python module for working with DICOM files. It was made for inspecting and modifying DICOM files 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:>>> import dicom>>> plan=dicom.ReadFile("rtplan.dcm")>>> plan.PatientsName'Last^First^mid^pre'>>> plan.dir("setup") # get a list of tags with "setup" somewhere in the name>>> plan.PatientSetups(0018, 5100) Patient Position CS: 'HFS'(300a, 0182) Patient Setup Number IS: '1'(300a, 01b2) Setup TechniqueDescription ST: ''>>> plan.PatientSetups.PatientPosition = "HFP">>> plan.SaveAs("rtplan2.dcm")>>>pydicom is not a DICOM server, and is not about viewing images. It is designed to let you manipulate data elements in a DICOM file with python code.pydicom is released under the GPL license. See the license.txt file in the distribution for details. Requirements: · Python


pydicom Related Software