| From | Sent On | Attachments |
|---|---|---|
| Zhijun Zhang | Jun 23, 2005 12:09 pm | |
| Zhijun Zhang | Jun 28, 2005 8:55 am |
| Subject: | [vtkusers] question about ITK+VTK+MFC | |
|---|---|---|
| From: | Zhijun Zhang (zjzh...@ee.cuhk.edu.hk) | |
| Date: | Jun 28, 2005 8:55:57 am | |
| List: | org.vtk.vtkusers | |
thank you, Stanislava,
I use the "sample" program in the vtk package to integrate vtk and MFC, itk codes can also be put into this framework. The FLTK is also a good choice.
regards, Alex
----- Original Message ----- From: <syss...@yahoo.fr> To: "Zhijun Zhang" <zjzh...@ee.cuhk.edu.hk> Sent: Tuesday, June 28, 2005 4:25 PM Subject: RE: [vtkusers] question about ITK+VTK+MFC
Hi Alex, did you try to use itkImageToVTKImageFilter that makes a bridge between itk and vtkb,not the export and import functions???I think it has to work. By the way can you tell what's the way you connect together itk;vtk and mfc.I'm working on the same (processing with itk and visualization with vtk)but i didn't find exeples with it.
Regards, Stanislava
--- Zhijun Zhang <zjzh...@ee.cuhk.edu.hk> a ?crit :
Dear vtk&itkers:
I have two problem with vtk itk and MFC integration. I have a registration program which was formerly written by using vtk4 and MFC. I use a MFC document and view structure to implement this. I open a MFC window and then pass the handle to a vtkRenderwindow, then the 2D slice of the registered image (vtkImageData files) can be shown in a window , this works good for the registration although the MFC message loop processes many message which should be processed by the vtkRenderwindow, and some operation such as zoom and shift are void in these MFC window. I am wondering how to solve this and whether there is an example for this? Then the second problem is a more serious problem, I met it when I am trying to combine the registration method into my former vtk+MFC registration program. For example, I want to use the demons method to register two 3D image, I use itkimagereader to read these images, then use itkimageexport -->vtkImageImport to transfer to my former vtkImageData to be shown in the former program. But the program generate a error each time when I try to open the images, it will occured when the itkimagereader updates, the error stops when executing this function:
void
VTKImageExportBase::UpdateInformationCallbackFunction(void*
userData) { static_cast<VTKImageExportBase*>(userData)-> UpdateInformationCallback(); } I have seen a similar error at
http://public.kitware.com/pipermail/insight-users/2003-April/003226.html
, it seems the problem has been solved, but I have tried the most newest vtk4.4 and itk2.01 to build the program, the program still exists, I don't know whether you have these kind of problem or maybe some of you can give some hints.
regards, Alex
_______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger T?l?chargez cette version sur http://fr.messenger.yahoo.com





