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

Fix order of pixel spacing converting ITK->DICOM. #486

Merged

Conversation

michaelonken
Copy link
Member

The order in which the values for pixel spacing in ITK and DICOM are stored is different. In DICOM the first value is the row spacing (i.e. Y axis) while in ITK the first value is spacing along the X axis.

Reading asymmetric spacings from DICOM segmentations has already been fixed in 46c6f0.

This commit fixes writing DICOM segmentation objects with asymmetric spacings.

The order in which the values for pixel spacing in ITK and DICOM are
stored is different. In DICOM the first value is the row spacing
(i.e. Y axis) while in ITK the first value is spacing along the X axis.

Reading asymmetric spacings from DICOM segmentations has already been
fixed in 46c6f0.

This commit fixes writing DICOM segmentation objects with asymmetric
spacings.
@fedorov fedorov merged commit ad0e09f into QIICR:master Dec 18, 2023
6 checks passed
@fedorov fedorov linked an issue Dec 18, 2023 that may be closed by this pull request
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.

Conversion to SEG results in incorrect geometry of the result
2 participants