[Insight-users] itkImageToHistogramFilter.h

John Jan Drozd john.drozd at gmail.com
Fri Jul 8 10:16:15 EDT 2011


Hi,

I solve this problem by putting
include_directories( ... ) in my CMakeLists.txt file.
Where the ... are the paths to where the .h header files are located. I find these paths using linux's find command.

John


Sent from my iPhone

On 2011-07-08, at 11:11 AM, "mathilde.merle" <mathilde.merle at laposte.net> wrote:

> 
>  Both solutions don't work ... 
> 
> > Message du 08/07/11 16:03
> > De : "David Doria" 
> > A : "mathilde.merle" , "ITK" 
> > Copie à : 
> > Objet : Re: [Insight-users] itkImageToHistogramFilter.h
> >
> > 
> > 
> >
> On Fri, Jul 8, 2011 at 10:59 AM, mathilde.merle <mathilde.merle at laposte.net> wrote:
> >
> 
> >
> 
> > Thanks for the answer,
> > 
> > I use InsightToolkit-3.20.0.
> > 
> > I found the file in the ITK directory, but if I copy it into my current directory, I have other errors :
> > error: itkImageToListSampleAdaptor.h: No such file or directory
> > error: itkSampleToHistogramFilter.h: No such file or directory
> > error: itkDenseFrequencyContainer2.h: No such file or directory 
> > error: itkImageToHistogramFilter.txx: No such file or directory
> > 
> >
> > Message du 08/07/11 15:43
> > > De : "David Doria" 
> > > A : "mathilde.merle" 
> > > Copie à : "insight-users itk org" 
> > > Objet : Re: [Insight-users] itkImageToHistogramFilter.h
> > >
> > > 
> > > 
> > >
>  
> On Fri, Jul 8, 2011 at 10:35 AM, mathilde.merle <mathilde.merle at laposte.net> wrote:
> > >
>  
> 
> > >
> Hello all,
> > > 
> > > I have this error :
> > > 
> > > error: itkImageToHistogramFilter.h: No such file or directory
> > > 
> > > in the CMakeLists.txt I have :
> > > 
> > > TARGET_LINK_LIBRARIES(test-ivtk ${ITK_LIBRARIES} ITKStatistics ITKBasicFilters ITKCommon ITKIO vtkCommon
> > > vtkRendering vtkGraphics vtkHybrid vtkImaging vtkIO vtkFiltering vtkWidgets vtkVolumeRendering)
> > > 
> > > I include in my file :
> > > #include 
> > > 
> >
>  
> 
> > Do you know how to do ?
> > > 
> > > Thanks
> > > 
> > > Mathilde
> > >
>  
> 
> > > Which version of ITK are you using?
> > > 
> > > In git master, it exists here:
> > > Modules/Numerics/Statistics/include/itkImageToHistogramFilter.h
> > > 
> > > Also, you should not need anything more than ${ITK_LIBRARIES} for the ITK part of your linking line.
> > > 
> > > David 
> > >
>  
> 
> 
> > I'm assuming you have:
> > FIND_PACKAGE(ITK REQUIRED)
> > INCLUDE(${ITK_USE_FILE})
> > 
> > in your CMakeLists.txt?
> > 
> > Also, you could try
> > #include "itkImageToHistogramFilter.h"
> > 
> > instead of
> > 
> > #include 
> > 
> > David 
> >
>  
> 
> 
> 
> 
> 
> 
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110708/ddaff51b/attachment.htm>


More information about the Insight-users mailing list