[Insight-users] ITK to VTK (ITK ver. 3.20)

srikanth bhattad srikanthviit at gmail.com
Wed Jul 18 20:11:53 EDT 2012


Hi Benedikt,
I ran into similar problem, I used the ITKVTK glue to install the
additional directories required, still the problem persists, somehow the
include library wasnt there in the path. I searched for the header file
"itkImageToVTKImageFilter.h" and found it in
C:\InsightApplications\Auxiliary\vtk\   (depending on where you installed
it). You could add the path of this directory when you declare the header
file in your program and it might just work fine. I know its not a perfect
solution but you can give it a shot.

Cheers,
Srikanth

Date: Tue, 17 Jul 2012 15:15:09 +0200
> From: Benedikt Thelen <benedikt.thelen at istb.unibe.ch>
> Subject: [Insight-users] ITK to VTK (ITK ver. 3.20)
> To: insight-users at itk.org
> Message-ID:
>         <CACmia9ZKueqvBq4nzAe9dWSBef2MkbvcTV7jvOjGY7Yskf=
> S1g at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi
> I'm new to ITK so please forgive the apparent simplicity of my
> question. We have a project which uses ITK 3.20 (I can't change to
> 4.x). I want to convert an ITK image to VTK. I found a lot of pages
> which show how to use the itk::ImageToVTKImageFilter.
>
> Unfortunately when I implement this code i receive the error
>
>
> Error   205     fatal error C1083: Cannot open include file:
> 'itkImageToVTKImageFilter.h': No such file or directory
>
> I tried to reconfigure itk so it will include the wrapitk package,
> which is not recommended (CMake warning).
>
> Is there any intelligent way to connect a itk pipeline to a vtk
> pipeline or simply to convert an itk image to vtk, again this has to
> be for itk 3.20.
>
> Thanks for your time
>
> Benedikt Thelen
>
>
> --
>
> --------------------------------------------------------------------------------------------------
>
> --------------------------------------------------------------------------------------------------
> Benedikt Thelen, Bsc CS, Research Assistant
>
> --------------------------------------------------------------------------------------------------
> Contact:
> Benedikt Thelen
> University of Bern
> Institute for Surgical Technology & Biomechanics
> Stauffacherstr. 78
> CH-3014 Bern
>
> phone +41 (0)31 631 5920
>
> E-M at il:
> benedikt.thelen at istb.unibe.ch
>
> -------------------------------------------------------------------------------------------------------
>
> -------------------------------------------------------------------------------------------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120718/f89f58dc/attachment.htm>


More information about the Insight-users mailing list