kits21 icon indicating copy to clipboard operation
kits21 copied to clipboard

meta data in KiTS nii

Open nohalloween opened this issue 2 years ago • 2 comments

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.

nohalloween avatar Oct 26 '22 09:10 nohalloween

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

neheller avatar Nov 06 '22 00:11 neheller

Thanks for your reply and it's very helpful!

nohalloween avatar Nov 06 '22 11:11 nohalloween