<br><div class="gmail_quote">On Thu, Jun 4, 2009 at 1:04 PM, petr zlamal <span dir="ltr"><<a href="mailto:p.zlamal.vtk@gmail.com">p.zlamal.vtk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi vtkUsers,<br>
How I rotate (by 90 degrees) instance of vtkImageDate around an axis Y?<br>
<br>
Thank you<br>
Vepro<br>
</blockquote><div><br>I think it'd be something like this:<br>
<br>
vtkTransform *trans = vtkTransform::New();
<p> trans->SetMatrix(mat);//you would have to have mat ahead of time<br>
</p>
<p> vtkTransformFilter *filter = vtkTransformFilter::New();
</p>
<p> filter->SetInput(imageData);
</p>
<p> filter->SetTransform(trans);
</p>
<p> filter->Update(); <br>
</p>
<p>vtkImageData* Output = filter->GetOutput();</p>
<p><br>
</p>
<p>Can anyone confirm or deny? (I never work with ImageData, always PolyData, in which case this could be used: <a href="http://www.vtk.org/Wiki/Apply_a_Transformation_to_Points">http://www.vtk.org/Wiki/Apply_a_Transformation_to_Points</a> )<br>
</p>
<br clear="all">Thanks,<br><br>David <br></div></div>