[vtkusers] Transformation on vtkImageData

Carola Schmidt carola.schmidt at igd.fraunhofer.de
Mon Sep 29 12:32:34 EDT 2008


Hallo,

I have the problem that I want to transform a vtkImageData - Object. The 
code is:


    vtkImageData* vtkImage = m_image-> GetVtkImageData();
    vtkTransform* vtktransform = vtkTransform::New();
    vtktransform->SetMatrix(matrix);
    vtkTransformFilter *filter = vtkTransformFilter::New();
    filter -> SetInput(vtkImage);
    filter ->SetTransform(vtktransform);
    filter -> Update();

The program is compiling but during the execution I get an error message 
probably because of this line:

   filter -> SetInput(vtkImage);

Does somebody know which type of data I need as input and how I get it? 
Or do I have to modify my code?
Thanks for an answer!

Ciao,
Carola



More information about the vtkusers mailing list