[Insight-users] A question on ITK Meta Image format (.mdh file)
Jay Li
chyumm at yahoo.com
Mon Aug 23 20:50:14 EDT 2010
Dear ITK users,
I'm trying to create a 3D gradient image using the itkGradientVectorFlowImageFilter. After googling on the forum, I chose to save the 3D vector field output in meta image format (.mdh and .raw files) using itkImageFileWriter, so I can display vectors in Paraview.
I wonder if anybody can help me understand the order of how vectors are saved. For example, my image is 3D vectors in double precision in a volume of 128*128*24 (x, y,z respectively). I would imagine the first saved double value is fx at (0,0,0), the 2nd is fy at (0,0,0), and the 3rd is fz at (0,0,0). (if this is true, let's call them the 1st pair)
The 2nd pair( 4th to 6th value) would be (fx,fy,fz) at (1,0,0)... The 129th pair would be (fx,fy,fz) at (1,1,0) . Can anybody verify my theory here please? Thanks in advance.
Regards,
Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100823/be05180c/attachment.htm>
More information about the Insight-users
mailing list