[Paraview-developers] Affine transformations in Paraview 5.0.0
Hallock, Kevin
Kevin.Hallock at pfizer.com
Mon Apr 25 11:41:38 EDT 2016
Hi,
I am trying to display PLY objects that were created from NIFTI files and I know in other software (DSI Studio) the NIFTI images are co-registered by using the header information in the NIFTI file. The matrices that contain the co-registration information of the two brain atlases are:
AATG atlas
srow_x [-1,0,0,78]
srow_y [0,-1,0,76]
srow_z [0,0,1,-50]
MNI atlas
srow_x [-1,0,0,90]
srow_y [0,1,0,-126]
srow_z [0,0,1,-72]
These transforms are supposed to be applied in the following way:
The (x,y,z) coordinates are given by a general affine transformation
of the (i,j,k) indexes:
x = srow_x<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref0>[0]<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref0> * i + srow_x<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref1>[1]<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref1> * j + srow_x<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref2>[2]<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref2> * k + srow_x<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref3>[3]<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref3>
y = srow_y<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref0>[0]<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref0> * i + srow_y<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref1>[1]<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref1> * j + srow_y<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref2>[2]<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref2> * k + srow_y<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref3>[3]<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref3>
z = srow_z<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref0>[0]<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref0> * i + srow_z<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref1>[1]<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref1> * j + srow_z<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref2>[2]<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref2> * k + srow_z<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref3>[3]<http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html#ref3>
I thought I would be able to co-register them by applying the above information via the Transform option under Properties, but the result appears to be missing at least one rotation so I am wondering if there is another way to do the affine transformation.
Thanks,
Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160425/5343c0fb/attachment.html>
More information about the Paraview-developers
mailing list