[Insight-users] itkImageToVTKImageFilter in MFC

Julien Jomier jjomier at cs.unc.edu
Tue Oct 26 10:01:34 EDT 2004


Hi,
 
Please have a look to itkVTKtoITKtoVTK.cxx in InsightApplications/Auxiliary/vtk/
This example shows how to connect ITK with VTK and the inverse.
 
Julien

-----Original Message-----
From: insight-users-bounces at itk.org [mailto:insight-users-bounces at itk.org] On Behalf Of ÈÙ½­ ÅË
Sent: Tuesday, October 26, 2004 9:49 AM
To: insight-users at itk.org
Subject: [Insight-users] itkImageToVTKImageFilter in MFC


Who can tell me why these codes have problems?  
reader= ReaderType::New();
 reader->SetFileName("c:\\test.bmp");
 reader->Update();
 
connector= ConnectorType::New();
 connector->GetExporter()->SetInput( reader->GetOutput() );
 connector->GetImporter()->Update();
 connector->UpdateLargestPossibleRegion();
 
 vtkImageMapper * map = vtkImageMapper::New();
 map->SetInput(connector->GetImporter()->GetOutput())




  _____  

Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂 <http://music.yisou.com> 
美女明星应有尽有,搜遍美图、艳图和酷图 <http://image.yisou.com> 
1G就是1000兆,雅虎电邮自助扩容! <http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20041026/cd262ff1/attachment.htm


More information about the Insight-users mailing list