[Insight-users] itkImageToVTKImageFilter

Kevin H. Hobbs hobbsk at ohiou.edu
Mon Mar 23 11:45:38 EDT 2009


Árpád Szamosi wrote:
> Thanks, its really logical.
> I'm to revise the code as you suggest, but came whit the following error:
>
> " error C2664: 'void 
> vtkAlgorithm::SetInputConnection(vtkAlgorithmOutput *)' : cannot 
> convert parameter 1 from 'vtkImageData *' to 'vtkAlgorithmOutput *'
>         Types pointed to are unrelated; conversion requires 
> reinterpret_cast, C-style cast or function-style cast"
>
> at the line: iso->SetInputConnection(connector->GetOutput());
>

In VTK connections are made either :

filter2->SetInputConnection( filter1->GetOutputPort() );

or

filter2->SetInput( filter1->GetOutput() );


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090323/a18719bb/attachment.pgp>


More information about the Insight-users mailing list