Re: Convert vtkImageData to vtkAlgorithmOutput type

Xing Li <[email protected]> Thu, 18 Apr 2019 09:16:30 +0800
Newsgroups gmane.comp.lib.vtk.user
Message-ID <CAFWHfKNfGYENXPjf0nZsLKRG5J-AHuLqORbhEKW-Jd5ZjsMKZw@mail.gmail.com>
--===============0921685974==
Content-Type: multipart/alternative; boundary="00000000000067be090586c3c156"

--00000000000067be090586c3c156
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

use  vtkImageReslice
<https://vtk.org/doc/nightly/html/classvtkImageReslice.html> instead of
vtkTransformPolyDataFilter

Arefin Shamsil <[email protected]> =E4=BA=8E2019=E5=B9=B44=E6=9C=8813=E6=97=A5=
=E5=91=A8=E5=85=AD =E4=B8=8A=E5=8D=8810:37=E5=86=99=E9=81=93=EF=BC=9A

> Hi,
> I am trying to combine a vtkImageData image and its transform
> using vtkTransformPolyDataFilter. Here is my setup
>
> vtkSmartPointer<vtkTransformPolyDataFilter> imagePose =3D
> 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?
>
>
>
>
> _______________________________________________
> 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=3Dvtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>

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

<div dir=3D"ltr">use=C2=A0

<a class=3D"el" href=3D"https://vtk.org/doc/nightly/html/classvtkImageResli=
ce.html" title=3D"Reslices a volume along a new set of axes." style=3D"colo=
r:rgb(70,101,162);font-weight:bold;font-family:Roboto,sans-serif;font-size:=
14px">vtkImageReslice</a>=C2=A0instead of=C2=A0

vtkTransformPolyDataFilter</div><br><div class=3D"gmail_quote"><div dir=3D"=
ltr" class=3D"gmail_attr">Arefin Shamsil &lt;<a href=3D"mailto:marefin@uwo.=
ca">[email protected]</a>&gt; =E4=BA=8E2019=E5=B9=B44=E6=9C=8813=E6=97=A5=E5=
=91=A8=E5=85=AD =E4=B8=8A=E5=8D=8810:37=E5=86=99=E9=81=93=EF=BC=9A<br></div=
><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border=
-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div di=
r=3D"ltr"><div dir=3D"ltr">Hi,<div>I am trying to combine a vtkImageData im=
age and its transform using=C2=A0vtkTransformPolyDataFilter. Here is my set=
up</div><div><br></div><div><div>vtkSmartPointer&lt;vtkTransformPolyDataFil=
ter&gt; imagePose =3D itkSmartPointer&lt;vtkTransformPolyDataFilter&gt;::Ne=
w();</div><div><br></div><div>imagePose-&gt;SetInputConnection(image); // i=
mage is of vtkImageData ----- error is here</div><div>imagePose-&gt;SetTran=
sform(imageTransform);</div></div><div><br></div><div>Problem is SetInputCo=
nnection is not accepting vtkImageData type, it only accepts vtkAlgorithmOu=
tput type.=C2=A0</div><div><br></div><div>I am not really sure what to do h=
ere. Online search has not been of much help. Is there any way to do it?</d=
iv><div><br></div><div><br></div><div><br></div><div>=C2=A0</div></div></di=
v></div>
_______________________________________________<br>
Powered by <a href=3D"http://www.kitware.com" rel=3D"noreferrer" target=3D"=
_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href=3D"http://www.kitware.c=
om/opensource/opensource.html" rel=3D"noreferrer" target=3D"_blank">http://=
www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href=3D"http://w=
ww.vtk.org/Wiki/VTK_FAQ" rel=3D"noreferrer" target=3D"_blank">http://www.vt=
k.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href=3D"http://markmail.org/search/?q=3Dvtk=
users" rel=3D"noreferrer" target=3D"_blank">http://markmail.org/search/?q=
=3Dvtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href=3D"https://vtk.org/mailman/listinfo/vtkusers" rel=3D"noreferrer" ta=
rget=3D"_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div>

--00000000000067be090586c3c156--

--===============0921685974==
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

--===============0921685974==--