[vtkusers] VS: ÄvtkusersÅ Multiple slices of a raw data

Hämäläinen Janne Janne.Hamalainen at hus.fi
Fri Jul 11 09:47:19 EDT 2003


You can use SetResliceAxesDirectionCosines method to define the slice
orientation, though I would assume that rotating the whole volume (or the
sampling grid) should have the same effect. Hope this helps,

-Janne


--
Janne Hämäläinen
Research Assistant
Helsinki University Central Hospital 
X-ray Department				

email   janne.hamalainen at hus.fi



> ----------
> Lähettäjä: 	Romain Ollivier[SMTP:Romain.Ollivier at sophia.inria.fr]
> Lähetetty: 	11. heinäkuuta 2003 14:10
> Vastaanottaja: 	Hämäläinen Janne
> Kopio: 	vtkusers at vtk.org
> Aihe:  	Re: ÄvtkusersÅ Multiple slices of a raw data
> 
> Thamk you for your response.
> I use this method to rotate my datas:
> 
>   public void rotate(int angle)
>   {
>     slicer.SetInput(map.GetOutput());
>     slicer.SetResliceAxesOrigin(0, 0, 0);
>     transform.RotateX(angle);
>     slicer.SetResliceTransform(transform);
>   }
> 
>  But it is the entire raw datas wich rotate... not the slice. The slices
> are
> still along the z axis. I wanted to get three vtkImage actors of the same
> raw
> data along x, y and z axis in the same renderer. Do you know if i can
> perform
> that with vtkImageReslice filter ?
> 
> Thamk you,
> 
>       Romain
> 
> Hämäläinen Janne wrote:
> 
> > You have to filter the data through a vtkImageReslice filter. The class
> > slices a 3D image along specified direction. It does also plenty of
> other
> > stuff. Look documentation for example from vtk homepage:
> >
> > http://www.vtk.org/doc/nightly/html/classvtkImageReslice.html
> >
> > -Janne
> >
> > --
> > Janne Hämäläinen
> > Research Assistant
> > Helsinki University Central Hospital
> > X-ray Department
> >
> > email   janne.hamalainen at hus.fi
> >
> > > ----------
> > > Lähettäjä:    Romain Ollivier[SMTP:Romain.Ollivier at sophia.inria.fr]
> > > Lähetetty:    11. heinäkuuta 2003 13:01
> > > Vastaanottaja:        vtkusers at vtk.org
> > > Aihe:         ÄvtkusersÅ Multiple slices of a raw data
> > >
> > >   Hi,
> > >
> > >   I'm working on a vtk viewer based on a swing interface. I use a
> vtkPanel
> > > to show my results. I'm using raw datas and I want to watch them with
> > > differents slices like that :
> > >
> > >
> > >            /|
> > >   ________/______
> > >  |       /  |    |
> > >  |  ____/___|____|__
> > >  | /   |   /     | /
> > >  |/____|__/______|/
> > >  /     | /       /
> > > /______|/_______/|
> > >  |     |   /     |
> > >  |_____|__/______|
> > >        | /
> > >        |/
> > >
> > > But it seems that slices can only be defined on the z axis.
> > >
> > > Has anyone an idea to handle this problem ?
> > >
> > > Thanks a lot,
> > >
> > >        Romain
> > > _______________________________________________ This is the private
> VTK
> > > discussion list. Please keep messages on-topic. Check the FAQ at:
> Follow
> > > this link to subscribe/unsubscribe:
> > > http://www.vtk.org/mailman/listinfo/vtkusers
> > >
> 



More information about the vtkusers mailing list