[Insight-users] Using insight applications
Luis Ibanez
luis.ibanez at kitware.com
Sun Oct 1 15:52:41 EDT 2006
Hi Prename Surname,
InsightApplications is not intended to be used as a library.
It is a collection of example applications.
Your original problems is that you couldn't find the file
itkImageToVTKImageFilter.h
to use it with an example of the Tutorials.
You are supposed to simply copy that file from the source code
of InsightApplications into the directory of your own example.
This file cannot be integrated with ITK because it depends on VTK.
Simply copy the files .h and .txx and move forward with the Tutorial.
Regards,
Luis
------------------------
Prename Surname wrote:
> I managed to build the insightapplications, and i want to be able to use
> them just as easy as i can use the VTK and ITK. But i cannot seem to
> figure out how to make the CMakeLists.txt so that i can also include the
> whole Insightapplications, like it is done with ITK and VTK.
> My CMakeLists.txt looks like this now
>
>
> PROJECT(Hello)
>
> FIND_PACKAGE(ITK)
> IF (ITK_FOUND)
> INCLUDE(${USE_ITK_FILE})
> ENDIF(ITK_FOUND)
>
> FIND_PACKAGE(VTK)
> IF(VTK_FOUND)
> INCLUDE( ${USE_VTK_FILE} )
> ENDIF(VTK_FOUND)
>
> INCLUDE_DIRECTORIES(
> ${Hello_SOURCE_DIR}
> )
>
>
> ADD_EXECUTABLE(Hello main.cxx)
> TARGET_LINK_LIBRARIES (Hello
> ITKBasicFilters ITKCommon ITKIO
> vtkRendering vtkGraphics vtkHybrid
> vtkImaging vtkIO vtkFiltering vtkCommon
> )
>
>
> So i think somehow i need to make a INSIGHT package as well like ITK and
> VTK. But how is this done?
>
> FIND_PACKAGE(INSIGHT)
> IF (INSIGHT_FOUND)
> INCLUDE(${USE_INSIGHT_FILE})
> ENDIF(INSIGHT_FOUND)
>
> Does not work...
>
> Many regards
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list