<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY dir=ltr>
<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>does someone knows how to open a itk image on a 
vtkborlandrenderwindow?</DIV>
<DIV>i don´t have any problem&nbsp;using vtkRenderWindow* but when i try to open 
the image in the TvtkBorlandrenderWindow on mi own project Forms nothing 
happens:</DIV>
<DIV>The code that i implement was:</DIV>
<DIV>&nbsp;</DIV>
<DIV>typedef unsigned int&nbsp; PixelType;<BR>const&nbsp;&nbsp; unsigned 
int&nbsp; Dimension = 2;<BR>typedef itk::Image&lt; PixelType, Dimension &gt; 
ImageType;<BR>typedef itk::ImageFileReader&lt; ImageType &gt;&nbsp; 
ReaderType;<BR>ReaderType::Pointer reader = 
ReaderType::New();<BR>reader-&gt;SetFileName(FileNameRead.c_str());</DIV>
<DIV>&nbsp;</DIV>reader-&gt;Update();<BR>typedef 
itk::ImageToVTKImageFilter&lt;ImageType&gt; ConnectorType;<BR>
<DIV><BR>ConnectorType::Pointer connector= 
ConnectorType::New();<BR>connector-&gt;SetInput( reader-&gt;GetOutput() 
);<BR></DIV>
<DIV>vtkImageData *vtkImage;<BR>vtkImage=vtkImageData::New();<BR>vtkImageActor 
*actor;<BR>actor=vtkImageActor::New();<BR></DIV>
<DIV>vtkImage = connector-&gt;GetOutput();&nbsp; 
<BR>actor-&gt;SetInput(vtkImage);</DIV>
<DIV>&nbsp;</DIV>
<DIV>vtkBorlandRenderWindow1-&gt;GetRenderer()-&gt;AddActor(actor);<BR></DIV>
<DIV>i don´t know if i have to modified the vtkBorlandrenderWindow Object.</DIV>
<DIV>&nbsp;</DIV>
<DIV>regards, </DIV>
<DIV>Germán.-</DIV></BODY></HTML>