pydicom User Guide# Installation Install the official release Install using pip Install using conda Additional type hints Install the optional libraries Installing Pillow Installing pyjpegls Installing GDCM Installing pylibjpeg Install the development version Core elements in pydicom Dataset DataElement Tag Sequence Writing DICOM Files Introduction Using codify Writing a file from scratch Working with Pixel Data Introduction Dataset.pixel_array Color space Palette Color Modality LUT or Rescale Operation VOI LUT or Windowing Operation Working with Overlay Data Introduction Dataset.overlay_array() Working with Waveform Data Introduction Dataset.waveform_array() Handling of compressed pixel data Prerequisites Supported Transfer Syntaxes Usage Compressing Pixel Data Compressing using pydicom Supported Transfer Syntaxes Compressing with Dataset.compress() Compressing using third-party packages Viewing Images Introduction Using pydicom with matplotlib Private Data Elements Introduction Displaying Private Data Elements in pydicom Setting Private Data Elements with pydicom Removing All Private Data Elements Adding new entries to the DICOM dictionary Best Practices Introduction Enforcing Valid DICOM Future-proofing your code Limiting the pydicom major version in your package