Skip to content

Fixes alignment of DICOM data due to failure to round#147

Open
adrew0809 wants to merge 1 commit intoxtk:masterfrom
adrew0809:dcm_alignment
Open

Fixes alignment of DICOM data due to failure to round#147
adrew0809 wants to merge 1 commit intoxtk:masterfrom
adrew0809:dcm_alignment

Conversation

@adrew0809
Copy link

We should offset into data by integer multiple of the slice size, but _distance_position can be a non-integer
due to arithmetic precision in the calculation when ordering by image_position_patient. This led to misaligned volume slices. The simple fix ensures we multiply the slice size by an integer.

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