[Paraview-developers] Affine transformations in Paraview 5.0.0

Moreland, Kenneth kmorel at sandia.gov
Mon Apr 25 12:30:08 EDT 2016


Kevin,

You could try the Transform filter. The interface is similar to the transform options in properties, but the results are more stable.

You can also run the Image Data to Point Set filter to convert to a curvilinear grid and then run the calculator filter with the Coordinate Results option checked and an equation for the transformation set as the expression.

-Ken


From: Paraview-developers <paraview-developers-bounces at paraview.org<mailto:paraview-developers-bounces at paraview.org>> on behalf of "Hallock, Kevin" <Kevin.Hallock at pfizer.com<mailto:Kevin.Hallock at pfizer.com>>
Date: Monday, April 25, 2016 at 9:41 AM
To: "paraview-developers at paraview.org<mailto:paraview-developers at paraview.org>" <paraview-developers at paraview.org<mailto:paraview-developers at paraview.org>>
Subject: [EXTERNAL] [Paraview-developers] Affine transformations in Paraview 5.0.0

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/004286cf/attachment-0001.html>


More information about the Paraview-developers mailing list