pydicom Logo
1.4.2

Getting started

  • How to install pydicom
  • Introduction to pydicom

Documentation

  • pydicom User Guide
  • Reading and writing DICOM files
  • Tutorials
  • Guides
  • API Reference

Examples

  • General examples
    • Analyse differences between DICOM files
    • Display unicode person names
    • Show working with memory-based dataset
    • Show a dicom file using hierarchical tree
  • Image processing
    • Downsize MRI image using pydicom
    • Load CT slices and plot axial, sagittal and coronal images
  • Input-output
    • Read RTPLAN DICOM and list information
    • Read DICOM and ploting using matplotlib
    • Format the output of the data set printing
    • Write DICOM data
    • Read DICOM directory
  • Metadata processing
    • Working with sequences
    • Add dictionary items in the standard DICOM dictionary
    • Anonymize DICOM data

Additional Information

  • Contributing to pydicom
  • Frequently asked questions
  • Release notes
pydicom
  • Docs »
  • General examples

General examples¶

Somewhere to start

../_images/sphx_glr_plot_dicom_difference_thumb.png

Analyse differences between DICOM files

../_images/sphx_glr_show_charset_name_thumb.png

Display unicode person names

../_images/sphx_glr_memory_dataset_thumb.png

Show working with memory-based dataset

../_images/sphx_glr_dicomtree_thumb.png

Show a dicom file using hierarchical tree

Image processing¶

These examples illustrate the image processing available in pydicom which can be applied to DICOM images.

../_images/sphx_glr_plot_downsize_image_thumb.png

Downsize MRI image using pydicom

../_images/sphx_glr_reslice_thumb.png

Load CT slices and plot axial, sagittal and coronal images

Input-output¶

These examples illustrate the use of pydicom to read DICOM data.

../_images/sphx_glr_plot_read_rtplan_thumb.png

Read RTPLAN DICOM and list information

../_images/sphx_glr_plot_read_dicom_thumb.png

Read DICOM and ploting using matplotlib

../_images/sphx_glr_plot_printing_dataset_thumb.png

Format the output of the data set printing

../_images/sphx_glr_plot_write_dicom_thumb.png

Write DICOM data

../_images/sphx_glr_plot_read_dicom_directory_thumb.png

Read DICOM directory

Metadata processing¶

These examples illustrates the processing available in pydicom to modify the metadata of DICOM data.

../_images/sphx_glr_plot_sequences_thumb.png

Working with sequences

../_images/sphx_glr_plot_add_dict_entries_thumb.png

Add dictionary items in the standard DICOM dictionary

../_images/sphx_glr_plot_anonymize_thumb.png

Anonymize DICOM data

Download all examples in Python source code: auto_examples_python.zip
Download all examples in Jupyter notebooks: auto_examples_jupyter.zip

Gallery generated by Sphinx-Gallery

Next Previous

© Copyright 2008-2019, Darcy Mason and pydicom contributors

Built with Sphinx using a theme provided by Read the Docs.