Skip to content

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

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

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:

When no modality is given, Hounsfield scalar units imply CT. That selects CT-AAA, the current default, so it only changes the result once #1028 fits a default to untagged volumes.

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 a multicomponent DICOM 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 d032341
🔍 Latest deploy log https://app.netlify.com/projects/volview-dev/deploys/6afbc03a0609fcebdb1b0778
😎 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.

@PaulHax
PaulHax force-pushed the volume-modality-defaults branch 2 times, most recently from df33372 to d2dfe58 Compare November 14, 2026 20:17
@PaulHax
PaulHax added this pull request to stack #1036 November 15, 2026 16:55
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.
… modality

ITK reports MET_MOD_UNKNOWN for every MetaImage that sets no modality,
which hid the Hounsfield units fallback.
@PaulHax

PaulHax commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #1039, which reworks this series into a smaller design: fitted presets use the existing image statistics, the opacity editor keeps the data range as its axis for every preset, and the default modality comes from DICOM only.

@PaulHax PaulHax closed this Nov 17, 2026
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