[Insight-users] pipeline VTK to ITK and ITK to VTK
Dunham Patrick
pdunham@ulb.ac.be
Wed, 27 Nov 2002 14:44:12 +0100
Hi Luis and thanks for the reply,
I've juste forgot to write the "vtkImageImport" between the
itkVTKImageExport and the vtkImageMapper in the mail but it is in the
code.:)
For the connection between the pipeline I use the function in the
example file "vtkITKUtility" (ConnectPipelines(ITK_Exporter exporter,
VTK_Importer* importer) and the reverse).
For the two filter itkImageToVTKImageFilter and itkVTKImageToImageFilter
I only found the first one. But actually I thinks to use directly a itk
image reader and export the result to VTK.
And where can I find the "InsightDocument" cvs module?
Thanks very much.
Luis Ibanez wrote:
> Hi Patrick,
>
> You seem to be missing "vtkImageImport"
> between the itkVTKImageExport and the
> vtkImageMapper.
>
>
> also,
> Did you connected the additional pipeline
> callbacks ?
>
> they should be between:
>
> vtkImageExport and itkVTKImageImport
>
> and between:
>
> itkVTKImageExport and vtkImageImport
>
> --
>
> You may want to use the two filters
>
> itkImageToVTKImageFilter
> itkVTKImageToImageFilter
>
> They package the full combinations.
> The first filter packages an itk exporter
> and a vtk importer. In this way you connect
> an itk image as input and get an vtkImageData
> as output.
>
> The reverse is done in the second filter.
>
> You can find these two filters under:
>
> Insight/Auxiliary/vtk
>
> Note that those are not really ITK nor VTK
> filters but rather adaptor classes that
> simplify the task.
>
> ---
>
> Also, if you check out the "InsightDocuments"
> cvs module, you will find the material used
> for the IEEE visualization tutorial.
>
> Under:
>
> InsightDocuments/CourseWare/Training
>
> The OpenOffice/Powerpoint presentations
>
> GetttingStarted-I
> GetttingStarted-II
> GetttingStarted-III
> GetttingStarted-IV
>
> introduce the easy way in which ITK and VTK
> can be used together.
>
>
> Please let us know if you have further questions.
>
>
> Thanks
>
>
> Luis
>
>
> =============================================
> Dunham Patrick wrote:
>
>> Hi,
>>
>> I got a problem with putting VTK and ITK together.
>>
>> The code actually compile but I got a "Visual C++ runtime library"
>> error on execution. :(
>> Here is my visualisation pipeline :
>>
>>
>>
>> vtkImageReader -> vtkImageReslice -> vtkImageExport ->
>> itkVTKImageImport -> "itk filter" -> itkVTKImageExport ->
>> vkImageMapper -> vtkActor2D -> vtkRenderer
>>
>>
>>
>> And I open a volume of DICOM images.
>>
>>
>>
>> Thanks for helping :/.
>>
>
>
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>