[Insight-users] itkImageToHistogramFilter.h
mathilde.merle
mathilde.merle at laposte.net
Fri Jul 8 11:42:43 EDT 2011
Thank you, files are found with :
INCLUDE_DIRECTORIES(
"/.../.../Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/"
)
However, I have other errors :
/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:50: error: template argument 1 is invalid
/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:57: error: template argument 1 is invalid
/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:84: error: expected nested-name-specifier before ‘MeasurementVectorPixelTraits’
/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:84: error: expected ‘;’ before ‘<’ token
/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:86: error: expected nested-name-specifier before ‘MeasurementVectorTraitsTypes’
/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:86: error: expected ‘;’ before ‘<’ token
etc... when the #include is compiled !
Do you no why ?
Mathilde
> Message du 08/07/11 16:16
> De : "John Jan Drozd"
> A : "mathilde.merle"
> Copie à : insight-users at itk.org
> Objet : Re: [Insight-users] itkImageToHistogramFilter.h
>
> Hi,
> I solve this problem by puttinginclude_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" 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 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 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
>
Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110708/17607084/attachment.htm>
More information about the Insight-users
mailing list