Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant