[vtkusers] alignment between nifti and vtk files

Hila Hiler hilahiler at gmail.com
Fri Mar 2 06:29:20 EST 2012


Hi all,

I have one vtk file consists of polyData and another nifti file consists
gray values.
I'd like to align them.

*data of vtk file:
===============*
       GetGeometry3D(0):       Geometry3D (0314A390)
         IndexToWorldTransform:
        Matrix:
          1 0 0
          0 1 0
          0 0 1
        Offset: [0, 0, 0]
        Center: [0, 0, 0]
        Translation: [0, 0, 0]
        Inverse:
          1 0 0
          0 1 0
          0 0 1
        Scale : 1 1 1
         BoundingBox:         ( -16.886,63.6804 -102.803,88.6225
-19.869,79.0607  )
         Origin: [0, 0, 0]
         ImageGeometry: 0
         Spacing: [1, 1, 1]
         TimeBounds: [-3.40282e+038, 3.40282e+038]

*
data of nifti file:
===============*
GetGeometry2D(0):         PlaneGeometry (0BE3CAE8)
           IndexToWorldTransform:
          Matrix:
            0.488281 0 0
            0 -0.488281 0
            0 0 -1
          Offset: [-122.375, 115.432, -122.515]
          Center: [0, 0, 0]
          Translation: [-122.375, 115.432, -122.515]
          Inverse:
            2.048 0 0
            0 -2.048 0
            0 0 -1
          Scale : 1 1 1
           BoundingBox:           ( 0,512 0,512 0,1  )
           Origin: [-122.375, 115.432, -122.515]
           ImageGeometry: 1
           Spacing: [0.488281, 0.488281, 1]
           TimeBounds: [-3.40282e+038, 3.40282e+038]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120302/b630e7dd/attachment.htm>


More information about the vtkusers mailing list