[Insight-developers] question regarding direction cosines

Leila baghdadi baghdadi at sickkids.ca
Tue Nov 8 17:06:11 EST 2005


Hi guys

I am writing ImageIO classes for our specific file format (minc2) which
is like itk N-dimensional,

I am a bit confused about how to create a correct matrix for direction
cosines,

suppose I have an image with the following

u,x,r,y,w,z

so direction cosines are only for x,y,z

the question is what is the correct way to create m_Direction of
itkImageIOBase.*

do I create a matrix (6x3) where I have (0,0,0) (1,0,0) (0,0,0) 

or basically how do you carry the correct index for the spatial
dimensions,

Hopefully my question is clear if not please let me know

Thanks

Leila




More information about the Insight-developers mailing list