Repository navigation
fix(dicom): fall back to SliceThickness for unpositioned frame spacing - #1047
Merged
Merged
Conversation
Enhanced OCT exports often declare only PixelSpacing and SliceThickness in the shared Pixel Measures, with no frame positions or SpacingBetweenSlices. Their frames were spaced 1 mm apart, stretching the en face and 3D views. SpacingBetweenSlices still wins when present, and the unsound-volume warning still reports that frame geometry could not be established.
Collaborator
Author
|
Folded into #1046, which now carries this change. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #1045, now opened from a branch in this repository.
Stacked on #1046 (base branch
dicom-loading), so this diff is only the new commit.Some enhanced Ophthalmic Tomography exports declare their geometry only as
PixelSpacingandSliceThicknessinSharedFunctionalGroupsSequence > PixelMeasuresSequence, with no per-frameImagePositionPatientand noSpacingBetweenSlices. Those files loaded with B-scans 1 mm apart, so the en face, sagittal and 3D views were stretched by tens of times along the B-scan axis while each B-scan looked correct.When frame positions cannot space the volume, the slice spacing now falls back from
SpacingBetweenSlicestoSliceThickness, read through the usual functional group lookup (per-frame, then shared, then top level). Positions still take precedence, and the existing "did not load as one sound volume" warning still appears for these files, sinceSliceThicknessdescribes the slice, not necessarily the gap between slices. For example, Zeiss Cirrus cubes declare a 0.002 mmSliceThickness, which now compresses that axis instead of stretching it to 1 mm per B-scan.