[vtkusers] vtkImageFlip ?

ALIZIER Julien AUSY julien.alizier-ausy at irsn.fr
Tue Sep 28 04:11:11 EDT 2004


Hi Pallavi,

I saw somewhere (but I can't remember exactly) that you could specify a
negative Z size or spacing for your 3D image before loading it. 
It will then be flipped.

I think it is vtkImageReader2::SetDataSpacing(...) or maybe
vtkImageReader2::SetDataExtent(...).


HTH

-- Julien




-----Message d'origine-----
De : Pallavi Joshi [mailto:pallavi.joshi at vanderbilt.edu]
Envoyé : lundi 27 septembre 2004 22:50
à : vtkusers at vtk.org
Objet : [vtkusers] vtkImageFlip ?


Hi,
My 3D image volume has its Z slice numbers increasing in one direction while
VTK has it in the other direction. i.e. the slice number in my viewer =
255-slice no. in VTK. I wish to flip this image. How can I do that so that
the image is displayed exactly the same way in the window but just the Z
slice numbers are flipped ? Is vtkImageFlip the right function for it ?

Please reply,
--Pallavi

------------------------------------------------------------------



More information about the vtkusers mailing list