Abstract

Purpose: pydicom is an open source package for reading and writing DICOM files using the python programming language. Methods: pydicom was first publicly released in Oct 2008, and has since had five version releases. Pydicom is a pure python package, installing and running on any platform on which python runs. DICOM structures are read and parsed into python data types, with the values and full details of the data elements accessible. Pydicom is hosted on a google code website (http://pydicom.googlecode.com), in a Mercurial distributed version control system, and is released under an MIT license. The website has an active issues list for requesting features and reporting bugs, a wiki section documenting how to install and use the code, example files, and a test suite. Performance profiling of reading files was improved greatly in the 0.9.4 release. Profiling of the code was analysed to find code bottlenecks and rework the slower sections. Results: Pydicom can read and write all standard DICOM files, including nested sequences such as found in DICOM RT files or in structured reports. The code has approximately 1200 downloads per release, and about 80 subscribers in an online discussion group. It is an installable module in the pythonxy distribution, and is used by other open source projects such as dicompyler, DiPy and RadPy. Performance profiling yielded an approximate three‐fold reading speed improvement, to approximately 3 seconds per hundred images, comparable to python file reading with no parsing. Conclusions: Pydicom is a mature library offering a reliable, simple reading and writing of DICOM files from python code. It has been actively developed over several years and has a solid base of users in imaging and therapy projects.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.