python-pillow / python-pillow/Pillow

3-D Volumes

Open
#4,672 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
Python
Stars
13.8k
Forks
2.5k
Avg merge
2d 8h
Merged PRs (30d)
89

Description

What did you do?

I tried to load a .dcm MRI scan with PIL.

What did you expect to happen?

PIL to be able to deal with 3-D data.

What actually happened?

.dcm or in general 3-D volumes are not supported in general. Thus, the file couldn't be opened.

What are your OS, Python and Pillow versions?
  • OS: MacOs Catalina
  • Python: Python3.7
  • Pillow: Master
from PIL import Image
im = Image.open("brain_scan.dcm")

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported Image.open("brain_scan.dcm") example and inspect how Pillow currently handles the requested input. Define the supported scope for 3-D volumes and DICOM files, then add coverage showing that the intended 3-D data can be opened and handled.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.