Skip to content

FEAT: v3 Plugin for pydicom - #1197

Merged
FirefoxMetzger merged 10 commits into
masterfrom
feature/pydicom-v3-plugin
Sep 26, 2026
Merged

FirefoxMetzger merged 10 commits into
masterfrom
feature/pydicom-v3-plugin

Conversation

@FirefoxMetzger

@FirefoxMetzger FirefoxMetzger commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds a v3 plugin to use pydicom to write DICOM images (https://github.com/pydicom/pydicom).

Closes: #1 , #658, #347, #18, #136 , #348

I noticed that our current dicom plugin uses manual parsing and that we have #1 which asks for additional tags to read and mentions pydicom. By now that project has matured nicely so it makes sense for us to have a plugin for it that will eventually superseed our internal dicom reader.

The current plugin reads and writes single dicom files. This is a departure from the internal plugin, which supports folder read/write. The reason for this is that we have a long standing (and idle) discussion on wether ImageIO should support folder reading or not, with consensus that it shouldn't and that users of ImageIO should decide on how folder parsing should be handled.

I've also added the following extras in addition to a general pydicom reader/writer:

  • the ability to write planar (channel-first) frames and frame groups.
  • support for pixel compression selection in the advanced API
  • support for writing paletted images using a dense colormap (LUT tags) or gradient (segmented LUT tags). This is exposed via two helper functions in the advanced API
  • incremental writing in the advanced API (buffers frames internally)
  • RGBA support via paletted images (Note: image must be provided as palleted RGBA; we won't palettize for you)

I will leave this PR open for at least a week before merging to allow others to review and chime in if interested.

Notes:

@FirefoxMetzger FirefoxMetzger changed the title [FEAT] v3 Plugin for pydicom FEAT: v3 Plugin for pydicom Jul 20, 2026
@FirefoxMetzger
FirefoxMetzger force-pushed the feature/pydicom-v3-plugin branch from 2e3b70c to cad6a4c Compare July 20, 2026 14:33
@FirefoxMetzger
FirefoxMetzger merged commit f2853f4 into master Sep 26, 2026
17 checks passed
@FirefoxMetzger
FirefoxMetzger deleted the feature/pydicom-v3-plugin branch September 26, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DICOM allow specifying additional tags to read

1 participant