[vtkusers] about image orientation
ivan gm
ivan.gm.itk at gmail.com
Wed Mar 12 06:20:00 EDT 2008
Hi:
Maybe you want to use itkOrientImageFilter, it lets you to orient 2D and 3D
images like in mimics:
#include "itkOrientImageFilter.h"
typedef itk::OrientImageFilter<ImageType,ImageType> OrientImageFilterType;
OrientImageFilterType::Pointer orienter;
orienter->SetUseImageDirection(true);
orienter->SetDesiredCoordinateOrientation(itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_RPI);
orienter->SetInput( Reader->GetOutput() );
orienter->Update();
Regars.
Iván Yerak.
2008/3/8 tuo zhang <zhangtuo123 at yahoo.com.cn>:
> Hi,
> I don't get the meaning of the arguments of
> vtkImagePermute::SetFilteredAxes. Could you help me
> please?
>
> Since SetTransform can't be used in
> vtkDICOMImageReader, and vtkTransformFilter outputs
> vtkPointSet(I want vtkImageData), I don't know how to
> make use of them.
>
> Thanks!
>
>
> --- Goodwin Lawlor <goodwin.lawlor at ucd.ie>wrote:
>
> >
> > Hi tuo zhang,
> >
> > You can use the "SetTransform" method in
> > vtkImageReader. Supply a
> > vtkTransform as an argument.
> >
> > Look here for the different transforms you may like
> > to set up:
> >
>
> http://www.cs.utah.edu/classes/cs5630/vtk%204.4.2/vtkhtml/applications/segment/scripts/SliceOrder.tcl
> >
> > If want a separate filter to do the transformation
> > for you use
> > vtkImagePermute.
> >
> > hth
> >
> > Goodwin
>
>
>
> ___________________________________________________________
> 雅虎邮箱传递新年祝福,个性贺卡送亲朋!
>
> http://cn.mail.yahoo.com/gc/index.html?entry=5&souce=mail_mailletter_tagline
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080312/588c3e94/attachment.htm>
More information about the vtkusers
mailing list