<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1476" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><SPAN class=501035313-26102004><FONT face=Arial color=#0000ff 
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=501035313-26102004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=501035313-26102004><FONT face=Arial color=#0000ff size=2>Please 
have a look to itkVTKtoITKtoVTK.cxx in 
InsightApplications/Auxiliary/vtk/</FONT></SPAN></DIV>
<DIV><SPAN class=501035313-26102004><FONT face=Arial color=#0000ff size=2>This 
example shows how to connect ITK with VTK and the inverse.</FONT></SPAN></DIV>
<DIV><SPAN class=501035313-26102004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=501035313-26102004><FONT face=Arial color=#0000ff 
size=2>Julien</FONT></SPAN></DIV></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  insight-users-bounces@itk.org [mailto:insight-users-bounces@itk.org] <B>On 
  Behalf Of </B>ÈÙ½&shy; ÅË<BR><B>Sent:</B> Tuesday, October 26, 2004 9:49 
  AM<BR><B>To:</B> insight-users@itk.org<BR><B>Subject:</B> [Insight-users] 
  itkImageToVTKImageFilter in MFC<BR><BR></FONT></DIV>
  <DIV>Who can tell me why these codes have problems?&nbsp;&nbsp;</DIV>
  <DIV>reader= 
  ReaderType::New();<BR>&nbsp;reader-&gt;SetFileName("c:\\test.bmp");<BR>&nbsp;reader-&gt;Update();</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>connector= 
  ConnectorType::New();<BR>&nbsp;connector-&gt;GetExporter()-&gt;SetInput( 
  reader-&gt;GetOutput() 
  );<BR>&nbsp;connector-&gt;GetImporter()-&gt;Update();<BR>&nbsp;connector-&gt;UpdateLargestPossibleRegion();</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;vtkImageMapper * map = 
  vtkImageMapper::New();<BR>&nbsp;map-&gt;SetInput(connector-&gt;GetImporter()-&gt;GetOutput())</DIV>
  <P><BR>
  <HR SIZE=1>
  <B>Do You Yahoo!?</B><BR><A href="http://music.yisou.com" 
  target=blank>150万曲MP3疯狂搜,带您闯入音乐殿堂</A><BR><A href="http://image.yisou.com" 
  target=blank>美女明星应有尽有,搜遍美图、艳图和酷图</A><BR><A 
  href="http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/" 
  target=blank>1G就是1000兆,雅虎电邮自助扩容!</A></BLOCKQUOTE></BODY></HTML>