[vtkusers] Applay transformatio to 3D-Imagedata
Peter Böttcher
p.boettcher at anat.vetmed.uni-muenchen.de
Wed Apr 25 11:48:38 EDT 2001
Thanks for your help!
Now it works, but unfortunately there's still a problem. During the transformation in
vtkImageReslice the
origin for the rotations is the origin of the vtkImageData. But I don't find a way to define this
origin other than
the first voxel in the image data. By consequence I can' t produce a rotation of the image data
around its centre.
Is it possible to rotate a vtkImageData within vtkImageReslice about another point than the first
voxel(=origin)?
Peter.
David Gobbi schrieb:
> Hi Peter,
>
> In order to match the output of vtkImageReslice to a specific
> vtkImageData (called 'data' for example), you have to use
>
> data UpdateInformation
>
> reslice SetOutputSpacing [data GetSpacing]
> reslice SetOutputOrigin [data GetOrigin]
> reslice SetOutputExtent [data GetWholeExtent]
>
> also, when you apply a tranformation with vtkImageReslice you must
> invert the transformation first:
>
> reslice SetResliceTransformation [transform GetInverse]
>
> - David
>
> --
> David Gobbi, MSc dgobbi at irus.rri.on.ca
> Advanced Imaging Research Group
> Robarts Research Institute, University of Western Ontario
>
> On Thu, 19 Apr 2001, Peter Böttcher wrote:
>
> > Dear vtk-users!
> >
> > I am currently working on a matching toll for 3D medical data. I read in
> > my data with vtkImageReader and
> > would like to apply a repeatable transformation to the vtkImageData. I
> > worked around with vtkImageReslice, but the reslicing changes the
> > matching volume. Is there a simple way to get the points of the image
> > data, transform them (12DOF) so I can apply my matching program to the
> > transformed points?
> > I can't find any filter which gets a transformation and vtkImageData as
> > input!!
> >
> > Thanks,
> >
> > Peter.
> >
> >
> > --
> > Dr. Peter Böttcher
> > |
> > |-Chirurgische Tierklinik
> > | Lehrstuhl für Allgemeine und Spezielle Chirurgie, einschließlich
> > Augenkrankheiten
> > |
> > |-Institut für TieranatomieI
> > |
> > Ludwig-Maximilians-Universität München
> > Veterinärstr. 13
> > D-80539 München
> > Germany
> >
> >
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
> >
--
Dr. Peter Böttcher
|
|-Chirurgische Tierklinik
| Lehrstuhl für Allgemeine und Spezielle Chirurgie, einschließlich Augenkrankheiten
|
|-Institut für TieranatomieI
|
Ludwig-Maximilians-Universität München
Veterinärstr. 13
D-80539 München
Germany
More information about the vtkusers
mailing list