# Cannot open source file "itkMultiScaleHessianBasedMeasureImageFilter.h"

**URL:** <https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726>\
**Category:** Engineering\
**Tags:** filter\
**Created:** [April 1, 2019, 9:12pm UTC](https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726 "2019-04-01T21:12:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![siaeleni](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/b4bc9f/32.png) [@siaeleni](https://discourse.itk.org/u/siaeleni)\
**Post date:** [April 1, 2019, 9:12pm UTC](https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726/1 "2019-04-01T21:12:05Z")

</div>

Hello,

I get an error in Visual Studio 2017 when I am trying to include itkMultiScaleHessianBasedMeasureImageFilter header file.  
When I try to build the solution I get the following error

 ![test](https://discourse.itk.org/uploads/default/original/1X/55796d7536adb41c46ca2fcd530ebdd499972330.jpeg)

Thanks in advance,  
Helen

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [April 1, 2019, 9:32pm UTC](https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726/2 "2019-04-01T21:32:39Z")

</div>

How does you `CMakeLists.txt` look like? The filter you mention is in `ITKImageFeature` module.

---

<div class="post-metadata">

**Author:** ![siaeleni](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/b4bc9f/32.png) [@siaeleni](https://discourse.itk.org/u/siaeleni)\
**Post date:** [April 1, 2019, 9:39pm UTC](https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726/3 "2019-04-01T21:39:51Z")

</div>

My CMakeLists.txt looks like this:

> cmake\_minimum\_required(VERSION 3.9.5)
> 
> project(MaskImageFilter)
> 
> find\_package(ITK REQUIRED)  
> include({ITK\_USE\_FILE}) if (ITKVtkGlue\_LOADED) find\_package(VTK REQUIRED) include({VTK\_USE\_FILE})  
> else()  
> find\_package(ItkVtkGlue REQUIRED)  
> include(${ItkVtkGlue\_USE\_FILE})  
> set(Glue ItkVtkGlue)  
> endif()
> 
> add\_executable(MaskImageFilter MACOSX\_BUNDLE MaskImageFilter.cxx)  
> target\_link\_libraries(MaskImageFilter  
> {Glue} {VTK\_LIBRARIES} ${ITK\_LIBRARIES})

and that filter that I want to use is that:

> <https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/ImageFeature/include/itkMultiScaleHessianBasedMeasureImageFilter.h>

[https://itk.org/Doxygen/html/itkMultiScaleHessianBasedMeasureImageFilter\_8h.html](https://itk.org/Doxygen/html/itkMultiScaleHessianBasedMeasureImageFilter_8h.html)

Thanks

---

<div class="post-metadata">

**Author:** ![siaeleni](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/b4bc9f/32.png) [@siaeleni](https://discourse.itk.org/u/siaeleni)\
**Post date:** [April 2, 2019, 2:46pm UTC](https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726/4 "2019-04-02T14:46:18Z")

</div>

Do you have any idea how can I solve that issue?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [April 2, 2019, 4:02pm UTC](https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726/5 "2019-04-02T16:02:48Z")

</div>

> [@siaeleni](#):
>
> find\_package(ItkVtkGlue REQUIRED)

There is no package `ItkVtkGlue`. `ItkVtkGlue` is a _COMPONENT_ in package `ITK`. Can you replace the _else_ branch in `CMakeLists.txt` by:

```CMake
...
else()
message(SEND_ERROR "ITK must be configured with VTKGlue")
endif()

```

This branch might be taken, thus affecting (not populating) the list of ITK modules. Of course, you need to enable `Module_ITKVtkGlue` when configuring ITK.

---

<div class="post-metadata">

**Author:** ![siaeleni](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/b4bc9f/32.png) [@siaeleni](https://discourse.itk.org/u/siaeleni)\
**Post date:** [April 2, 2019, 6:26pm UTC](https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726/6 "2019-04-02T18:26:24Z")

</div>

I updated the .txt file with the following:

> cmake\_minimum\_required(VERSION 3.9.5)
> 
> project(MaskImageFilter)
> 
> find\_package(ITK REQUIRED)  
> include(${ITK\_USE\_FILE})
> 
> add\_executable(MaskImageFilter MACOSX\_BUNDLE MaskImageFilter.cxx)  
> target\_link\_libraries(MaskImageFilter  
> {VTK\_LIBRARIES} {ITK\_LIBRARIES})

and still, doesn’t work.

Could you please provide any helpful hint?

Thanks

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [April 2, 2019, 6:42pm UTC](https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726/7 "2019-04-02T18:42:17Z")

</div>

Which version of ITK are you using? Before version 5, that filter used to be part of non-default module `Review`. Make sure you enable that module when configuring ITK with CMake.

Open your project properties (right click on MaskImageFilter, properties is last option). Go to C/C++, General. Edit Additional Include Directories. See if `path\to\ITK-source\Modules\Filtering\ImageFeature\include` is in the list. If it isn’t in the list, what is? You can copy the list from Evaluated value box.

 ![49](https://discourse.itk.org/uploads/default/original/1X/087097209d004c55313cfcfc040815f75269d629.png)

---

<div class="post-metadata">

**Author:** ![siaeleni](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/b4bc9f/32.png) [@siaeleni](https://discourse.itk.org/u/siaeleni)\
**Post date:** [April 2, 2019, 6:58pm UTC](https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726/8 "2019-04-02T18:58:20Z")

</div>

I have installed the 4.13.2 version, the latest available version on itk website.

I tried to add that directory, but I do not have include folder under “Image Feature”, please see the attached image.

![itk](https://discourse.itk.org/uploads/default/original/1X/34fdab8f3f6840776203394fdd699df2cb231996.jpeg)

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [April 2, 2019, 7:38pm UTC](https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726/9 "2019-04-02T19:38:42Z")

</div>

> I do not have include folder under “Image Feature”

You are looking in the ITK build folder, not the ITK source folder.

But first enable `ITKReview` module, as I think that is your main problem.

 ![45](https://discourse.itk.org/uploads/default/original/1X/5ebeda962e62afb0a9b05bfe466fefe7f3524bfa.png)

---

<div class="post-metadata">

**Author:** ![siaeleni](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/b4bc9f/32.png) [@siaeleni](https://discourse.itk.org/u/siaeleni)\
**Post date:** [April 2, 2019, 8:14pm UTC](https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726/10 "2019-04-02T20:14:45Z")

</div>

Thanks a lot for your help!
