Hi!
I want to convert vtkImageData
to itk::Image
, so I found a class called itk::VTKImageToImageFilter
But after I included the header file include <itkVTKImageToImageFilter.h>
, it pops some error like :
/home/zhaoz22/Desktop/FINAL/src/Butterworth.cxx:19:10: fatal error: itkVTKImageToImageFilter.h: No such file or directory
19 | #include <itkVTKImageToImageFilter.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/Butterworth.dir/build.make:63: CMakeFiles/Butterworth.dir/Butterworth.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/Butterworth.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
This is my CMakeList:
cmake_minimum_required(VERSION 3.16)
project (Butterworth)
find_package (VTK REQUIRED)
find_package (ITK REQUIRED)
include (${ITK_USE_FILE})
include (${VTK_USE_FILE})
add_executable (Butterworth Butterworth.cxx)
target_link_libraries (Butterworth ${VTK_LIBRARIES})
target_link_libraries (Butterworth ${ITK_LIBRARIES})