Convert vtkImageData to vtkAlgorithmOutput type

Arefin Shamsil <[email protected]> Fri, 12 Apr 2019 22:36:54 -0400
Newsgroups gmane.comp.lib.vtk.user
Message-ID <CAKJrDdr82De1AzV8i4vpyoS6yH7yXFXMTKtUBGhmCc4WvLT21w@mail.gmail.com>
--===============1228203639==
Content-Type: multipart/alternative; boundary="00000000000091c5090586604b54"

--00000000000091c5090586604b54
Content-Type: text/plain; charset="UTF-8"

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

vtkSmartPointer<vtkTransformPolyDataFilter> imagePose =
itkSmartPointer<vtkTransformPolyDataFilter>::New();

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

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?

--00000000000091c5090586604b54
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr">Hi,<div>I am trying to c=
ombine a vtkImageData image and its transform using=C2=A0vtkTransformPolyDa=
taFilter. Here is my setup</div><div><br></div><div><div>vtkSmartPointer&lt=
;vtkTransformPolyDataFilter&gt; imagePose =3D itkSmartPointer&lt;vtkTransfo=
rmPolyDataFilter&gt;::New();</div><div><br></div><div>imagePose-&gt;SetInpu=
tConnection(image); // image is of vtkImageData ----- error is here</div><d=
iv>imagePose-&gt;SetTransform(imageTransform);</div></div><div><br></div><d=
iv>Problem is SetInputConnection is not accepting vtkImageData type, it onl=
y accepts vtkAlgorithmOutput type.=C2=A0</div><div><br></div><div>I am not =
really sure what to do here. Online search has not been of much help. Is th=
ere any way to do it?</div><div><br></div><div><br></div><div><br></div><di=
v>=C2=A0</div></div></div></div>

--00000000000091c5090586604b54--

--===============1228203639==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers

--===============1228203639==--