<!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> </DIV>
<DIV>does someone knows how to open a itk image on a
vtkborlandrenderwindow?</DIV>
<DIV>i don´t have any problem 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> </DIV>
<DIV>typedef unsigned int PixelType;<BR>const unsigned
int Dimension = 2;<BR>typedef itk::Image< PixelType, Dimension >
ImageType;<BR>typedef itk::ImageFileReader< ImageType >
ReaderType;<BR>ReaderType::Pointer reader =
ReaderType::New();<BR>reader->SetFileName(FileNameRead.c_str());</DIV>
<DIV> </DIV>reader->Update();<BR>typedef
itk::ImageToVTKImageFilter<ImageType> ConnectorType;<BR>
<DIV><BR>ConnectorType::Pointer connector=
ConnectorType::New();<BR>connector->SetInput( reader->GetOutput()
);<BR></DIV>
<DIV>vtkImageData *vtkImage;<BR>vtkImage=vtkImageData::New();<BR>vtkImageActor
*actor;<BR>actor=vtkImageActor::New();<BR></DIV>
<DIV>vtkImage = connector->GetOutput();
<BR>actor->SetInput(vtkImage);</DIV>
<DIV> </DIV>
<DIV>vtkBorlandRenderWindow1->GetRenderer()->AddActor(actor);<BR></DIV>
<DIV>i don´t know if i have to modified the vtkBorlandrenderWindow Object.</DIV>
<DIV> </DIV>
<DIV>regards, </DIV>
<DIV>Germán.-</DIV></BODY></HTML>