why I can't include header file 'itkVTKImageToImageFilter.h'

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})

Also a beginner with VTK but was lucky to be already there once:

You need to build ITK (or get a version of ITK that has) with the option named: ITKVtkGlue (change it to ON).
Once you do you need to add the ITKVTK.lib as well to your build options for your linker.

Thank you but could you please provide some details?

You just need to add to your cmake build of ITK: the build option : -DITKVtkGlue=ON or use cmake_gui and check the Module_ITKVtkGlue ON.

You’ll find more details here

There is also a getting started powerpoint presentation I found here

If still you need more details and/or you’re not confortable with customizing itk + vtk, kitware offers great support here