Hi,
> Thank you for showing the useful script.
> I'm wondering how your script handles the coordinate system.
> I have some niftii dataset. Some are right-handed, and others are left-handed.
> As long as those are niftii, it shouldn't be much problems, but when
> it comes to Analyze format, problems arise.
>
> I'm looking for the function which converts all of the niftii files
> either left- or right-handed coordinate system into specific
> coordinate analyze format files. (All analyze files are right-handed
> or left-handed.)
That is what my earlier post was solving, specifically this line:
>>> better_img = nib.as_closest_canonical(img)
rearranges the axes such that the first (fastest changing) axis is
left to right, the second is back to front, and the last is bottom to
top, or at least, the closest you can get to these without reslicing
the image.
Best,
Matthew
|