[vtkusers] Convert vtkImageData to vtkAlgorithmOutput type

Xing Li lihouxing0710 at gmail.com
Wed Apr 17 21:16:30 EDT 2019


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

Arefin Shamsil <marefin at uwo.ca> 于2019年4月13日周六 上午10:37写道:

> 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?
>
>
>
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20190418/a8969de1/attachment.html>


More information about the vtkusers mailing list