[vtkusers] imageData,rotate

David Doria daviddoria at gmail.com
Thu Jun 4 13:12:23 EDT 2009


On Thu, Jun 4, 2009 at 1:04 PM, petr zlamal <p.zlamal.vtk at gmail.com> wrote:

> Hi vtkUsers,
> How I rotate (by 90 degrees) instance of vtkImageDate around an axis Y?
>
> Thank you
> Vepro
>

I think it'd be something like this:

vtkTransform *trans = vtkTransform::New();

trans->SetMatrix(mat);//you would have to have mat ahead of time

vtkTransformFilter *filter = vtkTransformFilter::New();

filter->SetInput(imageData);

filter->SetTransform(trans);

filter->Update();

vtkImageData* Output = filter->GetOutput();


 Can anyone confirm or deny? (I never work with ImageData, always PolyData,
in which case this could be used:
http://www.vtk.org/Wiki/Apply_a_Transformation_to_Points )

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090604/f4668e66/attachment.htm>


More information about the vtkusers mailing list