<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Dear Karthik,<BR>
&nbsp;<BR>
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:<BR>
<A href="http://www.imaging.robarts.ca/coders/content/seminars/IntroducingITK_files/itkVTKtoITKtoVTK.rtf">http://www.imaging.robarts.ca/coders/content/seminars/IntroducingITK_files/itkVTKtoITKtoVTK.rtf</A><BR>
&nbsp;<BR>
The additional vtk header I included for correct compilation on my systems are:<BR><FONT color=#0000ff size=2>
#include</FONT><FONT color=#000000 size=2> </FONT><FONT color=#800000 size=2>"vtkProperty.h"<BR></FONT><FONT color=#0000ff size=2>
#include</FONT><FONT color=#000000 size=2> </FONT><FONT color=#800000 size=2>"vtkImageData.h"<BR>
</FONT>&nbsp;<BR>
Otherwise there will be some error about converting <FONT color=#008000 size=2>vtkImageData * <FONT color=#000000>to</FONT> </FONT><FONT color=#008000 size=2>vtkDataObject *.<FONT color=#000000> I didn't test which one is the crutial one but I would bet on "vtkImageData.h".</FONT></FONT><BR>
<FONT color=#008000 size=2></FONT>&nbsp;<BR>
<FONT color=#000000 size=2>sincerely yours</FONT><BR>
<FONT color=#008000 size=2><FONT color=#000000>Qi</FONT><BR></FONT>
<BR><A href="mailto:duanqi79@hotmail.com">duanqi79@hotmail.com</A><BR><BR><BR>

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