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

bug : save nifti segmentation results with wrong affine - when running on dicom #413

Open
michalhg opened this issue Jan 15, 2025 · 0 comments

Comments

@michalhg
Copy link

When running TS on dicom directory, the program first converts the dicom to nifti and then processes the nifti file, finally saving a nifti segmentation result. However, the original dicom affine matrix is not kept. this causes the output segmentation nifti file to have an affine matrix which is different. If I run dicom to nifti externally, and then run TS on the nifti file, the correct affine matrix is produced in the result segmentation nifti file.
the difference is both in the values of the origin, and the orientation matrix.
Using Python 3.11.11 environment
Name: totalsegmentator
Version: 2.4.0

Please check this issies

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

No branches or pull requests

1 participant