Skip to content

feat(volume-rendering): pick default preset from declared image modality - #1027

Open
PaulHax wants to merge 3 commits into
mainfrom
volume-modality-defaults
Open

PaulHax wants to merge 3 commits into
mainfrom
volume-modality-defaults

Conversation

@PaulHax

@PaulHax PaulHax commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

First of five small PRs that replace #1003.

The default 3D preset now follows the declared modality for more inputs:

  • MR volumes default to MR-Default instead of CT-Coronary-Arteries-2.
  • Non-DICOM images use the modality in their header metadata (NRRD modality or 0008|0060 fields, MetaImage MET_MOD_* values). When no modality is given, Hounsfield scalar units imply CT.

Images with no declared modality keep CT-AAA. NIfTI and VTI files expose no modality, so they are unaffected here.

DEFAULT_PRESET_BY_MODALITY is shared with layer coloring, so an MR layer also defaults to MR-Default.

@netlify

netlify Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for volview-dev ready!

Name Link
🔨 Latest commit 89da1dd
🔍 Latest deploy log https://app.netlify.com/projects/volview-dev/deploys/6af97c878c003c0e324567f3
😎 Deploy Preview https://deploy-preview-1027--volview-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Read the modality of non-DICOM images from header metadata (DICOM-style
tag, modality field, MetaImage MET_MOD_* names) and treat Hounsfield scalar
units as CT. MR volumes now default to the MR-Default preset.
@PaulHax
PaulHax force-pushed the volume-modality-defaults branch from df33372 to d2dfe58 Compare November 14, 2026 20:17
… modality

ITK reports MET_MOD_UNKNOWN for every MetaImage that sets no modality,
which hid the Hounsfield units fallback.
@PaulHax
PaulHax added this pull request to stack #1036 November 15, 2026 16:55

This branch has not been deployed

No deployments
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.

1 participant