[vtkusers] Convert vtkImageData to vtkAlgorithmOutput type

Arefin Shamsil marefin at uwo.ca
Fri Apr 12 22:36:54 EDT 2019

I am trying to combine a vtkImageData image and its transform
using vtkTransformPolyDataFilter. Here is my setup

vtkSmartPointer<vtkTransformPolyDataFilter> imagePose =

imagePose->SetInputConnection(image); // image is of vtkImageData -----
error is here

Problem is SetInputConnection is not accepting vtkImageData type, it only
accepts vtkAlgorithmOutput type.

I am not really sure what to do here. Online search has not been of much
help. Is there any way to do it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20190412/67aa4354/attachment.html>

More information about the vtkusers mailing list