[Insight-users] ConnectPipelines ITK with VTK

alex Dowson alexdowson at hotmail.com
Tue Sep 18 23:58:51 EDT 2012



Hi


Have you tried with itkImageToVTKImageFilter class ?  It simply converts 
what you want.

You will get this class in InsighApplication that can do vtk and itk 
connection vice versa with two classes

1) itkVTKImageToImageFilter.h
2)itkImageToVTKImageFilter.h


Alex



-----Original Message----- 
From: Massi
Sent: Tuesday, September 18, 2012 9:20 PM
To: insight-users at itk.org
Subject: [Insight-users] ConnectPipelines ITK with VTK

Hi everyone!

I'm trying to read a series of Dicoms and generate a volume and sent it to
VTK using connectPiplines.I have combined the code from
itkReadITKImageShowVTK.cpp file and DicomSeriesReadImageWrite2.cpp file

I added the following headers:
#include "itkCommand.h"
#include "itkImage.h"
#include "itkVTKImageExport.h"
#include "itkVTKImageImport.h"
#include "vtkImageThreshold.h"
#include "vtkImageImport.h"

My problem is that when I write the ConnectPipelines function. It doesn't
recognize any class from the importer!! I got a warning message saying
Unable to resolve identifier SetUpdateInformationCallback

template <typename ITK_Exporter, typename VTK_Importer>
void ConnectPipelines(ITK_Exporter exporter, VTK_Importer* importer)
{

importer->SetUpdateInformationCallback(exporter->GetUpdateInformationCallback());
//warning

importer->SetPipelineModifiedCallback(exporter->GetPipelineModifiedCallback());
// warning
  importer->SetWholeExtentCallback(exporter->GetWholeExtentCallback());  //
warning
  **
  **
  **
  **
  importer->SetCallbackUserData(exporter->GetCallbackUserData()); // warning
}

can anyone help me to figure this out?

thx
Massi



--
View this message in context: 
http://itk-users.7.n7.nabble.com/ConnectPipelines-ITK-with-VTK-tp29503.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users 



More information about the Insight-users mailing list