[Insight-users] itkImageToHistogramFilter.h

mathilde.merle mathilde.merle at laposte.net
Mon Jul 11 05:54:19 EDT 2011


I think that I found the error :

All the files have problems with the itkMeasurementVectorTraits.h.
In the ITK Statistics directory, I have the ".h" but not the ".txx"...

> Message du 08/07/11 17:45
> De : "John Jan Drozd"
> A : "John Jan Drozd"
> Copie à : "mathilde.merle" , "insight-users itk org"
> Objet : Re: [Insight-users] itkImageToHistogramFilter.h
>
> Sorry, I meant right (not write) argument type.
> John
>
> Sent from my iPhone
> On 2011-07-08, at 11:41 AM, John Jan Drozd  wrote:
>
> It is a problem with your .cxx file.Your first argument in the template instantiation may be of the wrong type.
> Examine the class reference for that template and make sure you are using the write argument type.Without see your .cxx file, I can't get more specific about the remIning errors.
> John
> 
> Sent from my iPhone
> On 2011-07-08, at 11:42 AM, "mathilde.merle"  wrote:
>
> 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 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"  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/20110711/75f65b36/attachment.htm>


More information about the Insight-users mailing list