Skip to content

fix(dicom): match ITK pixel-spacing axis order#886

Merged
PaulHax merged 2 commits into
Kitware:mainfrom
PaulHax:dicom-geometry
Jun 2, 2026
Merged

fix(dicom): match ITK pixel-spacing axis order#886
PaulHax merged 2 commits into
Kitware:mainfrom
PaulHax:dicom-geometry

Conversation

@PaulHax
Copy link
Copy Markdown
Collaborator

@PaulHax PaulHax commented Jun 2, 2026

Single-slice DICOM images previously ignored PixelSpacing entirely — spacing was only applied when slices > 1, so single slices rendered at [1, 1, 1]. DICOM PixelSpacing is also [row, col] while VTK/ITK spacing is [x, y].

This applies PixelSpacing to single-slice images (swapped to [x, y] order so non-square pixels are no longer transposed), adds a SpacingBetweenSlices fallback for single-slice Z spacing, and falls back to PixelSpacing for cine clips when no spatial ultrasound region exists.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 2, 2026

Deploy Preview for volview-dev ready!

Name Link
🔨 Latest commit 7d18f84
🔍 Latest deploy log https://app.netlify.com/projects/volview-dev/deploys/6a1f43496226910008700d4b
😎 Deploy Preview https://deploy-preview-886--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 added this pull request to the merge queue Jun 2, 2026
Merged via the queue into Kitware:main with commit b8bc76f Jun 2, 2026
8 checks passed
@PaulHax PaulHax deleted the dicom-geometry branch June 2, 2026 21:13
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