[Insight-users] itkImageToVTKImageFilter
Luis Ibanez
luis.ibanez at kitware.com
Sun Mar 22 13:01:12 EDT 2009
Hi Arepi,
Please post your code...
It doesn't makes much sense to connect the output of an importer
as the input of a reader. (maybe you meant to say a "writer" ?).
Source code will be better that a verbal description of the source code :-)
Thanks
Luis
------------------------------------------
On Sun, Mar 22, 2009 at 11:07 AM, Arepi <szamosi.arpad at gmail.com> wrote:
>
> Hi,
>
> I tried connect itk to vtk whit itkImageToVTKImageFilter. The first part is
> itk and read a DICOM series(see
> Examples/IO/DicomSeriesReadImageWrite2.cxx.), but I would the reader input
> connect to vtk, instead write to a .vtk file. The second part is vtk and I
> tried connect the itkImageToVTKImageFilter output to en
> vtkStructuredPointsReader(and than MarchingCubes, DataNormal etc) but came
> back whit 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
>
> I choossed a wrong reader or what should I do to works it fine?
>
> Thanks!
>
> Arepi
> --
> View this message in context: http://www.nabble.com/itkImageToVTKImageFilter-tp22646859p22646859.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
>
> _____________________________________
> 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 ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list