

.. _sphx_glr_auto_examples_input_output:

.. _input_output_examples:

Input-output
------------

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

.. raw:: html

.. raw:: html

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Given an RTPLAN DICOM file, list basic info for the beams in it.">

.. only:: html

  .. image:: /auto_examples/input_output/images/thumb/sphx_glr_plot_read_rtplan_thumb.png
    :alt:

  :doc:`/auto_examples/input_output/plot_read_rtplan`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Read RTPLAN DICOM and list information</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates how to open a DICOM file, print some dataset information, and show it using matplotlib.">

.. only:: html

  .. image:: /auto_examples/input_output/images/thumb/sphx_glr_plot_read_dicom_thumb.png
    :alt:

  :doc:`/auto_examples/input_output/plot_read_dicom`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Read a Dataset and plot Pixel Data</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates how to print the data set in your own format.">

.. only:: html

  .. image:: /auto_examples/input_output/images/thumb/sphx_glr_plot_printing_dataset_thumb.png
    :alt:

  :doc:`/auto_examples/input_output/plot_printing_dataset`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Format the output of the data set printing</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to write a DICOM file from scratch using pydicom. This example does not produce a DICOM standards compliant file as written, you will have to change UIDs to valid values and add all required DICOM data elements.">

.. only:: html

  .. image:: /auto_examples/input_output/images/thumb/sphx_glr_plot_write_dicom_thumb.png
    :alt:

  :doc:`/auto_examples/input_output/plot_write_dicom`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Write DICOM data</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to read and interact with a DICOM File-set.">

.. only:: html

  .. image:: /auto_examples/input_output/images/thumb/sphx_glr_plot_read_fileset_thumb.png
    :alt:

  :doc:`/auto_examples/input_output/plot_read_fileset`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Read a DICOM File-set</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/input_output/plot_read_rtplan
   /auto_examples/input_output/plot_read_dicom
   /auto_examples/input_output/plot_printing_dataset
   /auto_examples/input_output/plot_write_dicom
   /auto_examples/input_output/plot_read_fileset

