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

meta data in KiTS nii #57

Open
nohalloween opened this issue Oct 26, 2022 · 2 comments
Open

meta data in KiTS nii #57

nohalloween opened this issue Oct 26, 2022 · 2 comments

Comments

@nohalloween
Copy link

Hello,
recently I tried to add some clinical CTs from hosipitals into KiTS. However I noticed KiTS nii fomat shape be like (num_slices, height, width) , which can be described as (z, x ,y) and origin be like(0,0,0). But my CTs get (x, y ,z) shape and have none-zero origins. One way to solve this problem is that I transposed the dims, pixdims. But how to deal with the qform/sform , origin and srow_x/y/z in the metadata still confuse me.

@neheller
Copy link
Owner

neheller commented Nov 6, 2022

Regarding the origins, as far as I know they are arbitrary as long as they match in the corresponding segmentation files.

Regarding the rest of the affine matrix in the Nifti format, you might find this reference helpful: https://nipy.org/nibabel/coordinate_systems.html

@nohalloween
Copy link
Author

Thanks for your reply and it's very helpful!

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

2 participants