Matthew,
Thank you very much for the information. I overlooked your description
about the nibabel package.
I would like to try your package, but could you tell me one more thing?
You mentioned in your earlier post,
>> By the way - this will generate a 'neurological' orientation image
>> (first pixel is the right-most pixel).
Is it possible to generate a 'radiological' orientation image?
Best regards,
Kiyotaka
2010/11/11 Matthew Brett <[log in to unmask]>:
> 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
>
--
Kiyotaka Nemoto, M.D.
Department of Psychiatry
Graduate School of Comprehensive Human Sciences
University of Tsukuba
1-1-1Tennodai Tsukuba, Ibaraki 305-8575, Japan
E-mail: [log in to unmask]
|