[Insight-users] itkImageToVTKImageFilter
Árpád Szamosi
szamosi.arpad at gmail.com
Mon Mar 23 09:04:21 EDT 2009
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());
Thanks!
Arepi
2009. március 23. 13:37 Luis Ibanez írta, <luis.ibanez at kitware.com>:
> Hi
>
> Thanks for posting your code.
>
>
> Please replace:
>
>
> vtkStructuredPointsReader *vreader = vtkStructuredPointsReader::New();
> vreader->SetInputConnection( connector->GetOutput() );
>
> vtkMarchingCubes *iso = vtkMarchingCubes::New();
> iso->SetInputConnection(vreader->GetOutputPort());
> iso->SetValue( 0, IntesityLevel);
>
>
> With:
>
>
> vtkMarchingCubes *iso = vtkMarchingCubes::New();
> iso->SetInputConnection( connector->GetOutput() );
> iso->SetValue( 0, IntesityLevel);
>
>
>
> That is:
> You don't need the vtkStructuredPointReader at all
> in this pipeline.
>
>
>
> Regards,
>
>
> Luis
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090323/fe51cd4f/attachment.htm>
More information about the Insight-users
mailing list