[Insight-users] Example on connecting ITK and VTK pipelines

Karthik Krishnan Karthik.Krishnan at kitware.com
Wed Jun 28 16:36:45 EDT 2006


DuanQi wrote:

> Dear Karthik,
>
> I finally found some example. The following file contains functions
> connecting ITK and VTK pipeline. I also wrote some test file based on
> this example. Except for the fact that at least on my system
> additional vtk headers are needed, everything works fine. The link of
> the file is:
> http://www.imaging.robarts.ca/coders/content/seminars/IntroducingITK_files/itkVTKtoITKtoVTK.rtf
>
> The additional vtk header I included for correct compilation on my
> systems are:
> #include "vtkProperty.h"
> #include "vtkImageData.h"
>
> Otherwise there will be some error about converting vtkImageData * to
> vtkDataObject *. I didn't test which one is the crutial one but I
> would bet on "vtkImageData.h".

This was fixed in CVS a while ago:

http://www.itk.org/cgi-bin/viewcvs.cgi/Auxiliary/vtk/itkVTKtoITKtoVTK.cxx?root=InsightApplications&r1=1.5&r2=1.6

>
> sincerely yours
> Qi
>
> duanqi79 at hotmail.com <mailto:duanqi79 at hotmail.com>
>
>
> ------------------------------------------------------------------------
>
> > Date: Mon, 26 Jun 2006 17:10:39 -0400
> > From: Karthik.Krishnan at kitware.com
> > To: duanqi79 at hotmail.com
> > CC: insight-users at itk.org
> > Subject: Re: [Insight-users] Example on connecting ITK and VTK pipelines
> >
> > What are the link errors. You probably need to link to a few VTK
> libs too
> >
> > See
> >
> http://www.itk.org/cgi-bin/viewcvs.cgi/Auxiliary/vtk/?root=InsightApplications#dirlist
> >
> > DuanQi wrote:
> >
> > > Dear Sir or Madam
> > >
> > > I just wonder if there is an example about connecting ITK pipeline
> > > with VTK pipeline. I tried to use itkVTKImageExport, however, it seems
> > > there are some unsovled references during&! nbsp;linkage even with
> following
> > > header files included:
> > > #include "itkImageFileReader.h"
> > > #include "itkVTKImageExport.h"
> > > #include "itkVTKImageIO.h"
> > >
> > >
> > > sincerely yours
> > > Qi
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > 率先尝试 Windows Live Mail。 Windows Live Mail
> > >
> <http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d>
> > >
> > >
> >
> >------------------------------------------------------------------------
> > >
> > >_______________________________________________
> > >Insight-users mailing list
> > >Insight-users at itk.org
> > >http://www.itk.org/mailman/listinfo/insig! ht-users
> > >
> > >
>
>
> ------------------------------------------------------------------------
> 发布网络日志,上载笑话、照片,拥有您自己的共享空间 ― MSN Spaces
> <http://spaces.msn.com>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users
>  
>


More information about the Insight-users mailing list