<html><body bgcolor="#FFFFFF"><div>Sorry, I meant right (not write) argument type.</div><div><br></div><div>John<br><br>Sent from my iPhone</div><div><br>On 2011-07-08, at 11:41 AM, John Jan Drozd &lt;<a href="mailto:john.drozd@gmail.com">john.drozd@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><div>It is a problem with your .cxx file.</div><div>Your first argument in the template instantiation may be of the wrong type.<br>Examine the class reference for that template and make sure you are using the write argument type.</div><div>Without see your .cxx file, I can't get more specific about the remIning errors.</div><div><br></div><div>John</div><div><br></div><div><br></div><div>Sent from my iPhone</div><div><br>On 2011-07-08, at 11:42 AM, "mathilde.merle" &lt;<a href="mailto:mathilde.merle@laposte.net"><a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</a></a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>Thank you, files are found with :<br><br><font color="#0000FF">INCLUDE_DIRECTORIES(<br>"/.../.../Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/"<br>)</font><br><br>However, I have other errors :<br><br><em>/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:50: error: template argument 1 is invalid<br>/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:57: error: template argument 1 is invalid<br>/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:84: error: expected nested-name-specifier before ‘MeasurementVectorPixelTraits’<br>/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:84: error: expected ‘;’ before ‘&lt;’ token<br>/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:86: error: expected nested-name-specifier before ‘MeasurementVectorTraitsTypes’<br>/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:86: error: expected ‘;’ before ‘&lt;’ token</em><br><br>etc... when the <em>#include &lt;itkImageToHistogramFilter.h&gt;</em> is compiled !<br><br>Do you no why ?<br><br>Mathilde<br><br><br><br><blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid #ff0000">&gt; Message du 08/07/11 16:16<br>&gt; De : "John Jan Drozd" <br>&gt; A : "mathilde.merle" <br>&gt; Copie à : <a href="mailto:insight-users@itk.org"></a><a href="mailto:insight-users@itk.org"><a href="mailto:insight-users@itk.org">insight-users@itk.org</a></a><br>&gt; Objet : Re: [Insight-users] itkImageToHistogramFilter.h<br>&gt;<br>&gt; <p style="margin:0;padding:0;">Hi,</p><p style="margin:0;padding:0;"><br>&gt; </p><p style="margin:0;padding:0;">I solve this problem by putting</p><p style="margin:0;padding:0;">include_directories( ... ) in my CMakeLists.txt file.</p><p style="margin:0;padding:0;">Where the ... are the paths to where the .h header files are located.&nbsp;<span class="Apple-style-span">I find these paths using linux's find command.</span></p><p style="margin:0;padding:0;"><br>&gt; </p><p style="margin:0;padding:0;">John</p><p style="margin:0;padding:0;"><br>&gt; <br>&gt; Sent from my iPhone</p><p style="margin:0;padding:0;"><br>&gt; On 2011-07-08, at 11:11 AM, "mathilde.merle" &lt;<a href="mailto:mathilde.merle@laposte.net"></a><a href="mailto:mathilde.merle@laposte.net"><a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</a></a>&gt; wrote:<br>&gt; <br>&gt; </p><blockquote><p style="margin:0;padding:0;"><br>&gt; &nbsp;Both solutions don't work ... <br>&gt; <br>&gt; </p><blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid #ff0000">&gt; Message du 08/07/11 16:03<br>&gt; &gt; De : "David Doria" <br>&gt; &gt; A : "mathilde.merle" , "ITK" <br>&gt; &gt; Copie à : <br>&gt; &gt; Objet : Re: [Insight-users] itkImageToHistogramFilter.h<br>&gt; &gt;<br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt; <p style="margin: 0pt; padding: 0pt" class="gmail_quote">On Fri, Jul 8, 2011 at 10:59 AM, mathilde.merle <span>&lt;<a href="mailto:mathilde.merle@laposte.net"></a><a href="mailto:mathilde.merle@laposte.net"></a><a href="mailto:mathilde.merle@laposte.net"><a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</a></a>&gt;</span> wrote:<br>&gt; &gt; </p><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex"> <p style="margin: 0pt; padding: 0pt" align="left"><br>&gt; &gt; </p><br>&gt; &gt; Thanks for the answer,<br>&gt; &gt; <br>&gt; &gt; I use InsightToolkit-3.20.0.<br>&gt; &gt; <br>&gt; &gt; I found the file in the ITK directory, but if I copy it into my current directory, I have other errors :<br>&gt; &gt;  <em>error: itkImageToListSampleAdaptor.h: No such file or directory<br>&gt; &gt; error: itkSampleToHistogramFilter.h: No such file or directory<br>&gt; &gt; error: itkDenseFrequencyContainer2.h: No such file or directory <br>&gt; &gt; error: itkImageToHistogramFilter.txx: No such file or directory</em><br>&gt; &gt;  <br>&gt; &gt; <blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid #ff0000">&gt; Message du 08/07/11 15:43<br>&gt; &gt; &gt; De : "David Doria" <br>&gt; &gt; &gt; A : "mathilde.merle" <br>&gt; &gt; &gt; Copie à : "insight-users itk org" <br>&gt; &gt;  &gt; Objet : Re: [Insight-users] itkImageToHistogramFilter.h<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;  <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; <p style="margin: 0pt; padding: 0pt" class="gmail_quote">&nbsp;</p><p style="margin: 0pt; padding: 0pt" class="im">On Fri, Jul 8, 2011 at 10:35 AM, mathilde.merle <span>&lt;<a href="mailto:mathilde.merle@laposte.net" target="_blank"></a><a href="mailto:mathilde.merle@laposte.net"></a><a href="mailto:mathilde.merle@laposte.net"><a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</a></a>&gt;</span> wrote:<br>&gt; &gt;  &gt; </p><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex"><p style="margin: 0pt; padding: 0pt" class="im">&nbsp;</p><p style="margin: 0pt; padding: 0pt" align="left"><br>&gt; &gt; &gt; </p>Hello all,<br>&gt; &gt; &gt; <br>&gt; &gt;  &gt; I have this error :<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; <em>error: itkImageToHistogramFilter.h: No such file or directory</em><br>&gt; &gt; &gt; <br>&gt; &gt; &gt; in the CMakeLists.txt I have :<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; <em>TARGET_LINK_LIBRARIES(test-ivtk ${ITK_LIBRARIES} ITKStatistics ITKBasicFilters ITKCommon ITKIO vtkCommon<br>&gt; &gt;  &gt;  vtkRendering vtkGraphics vtkHybrid vtkImaging vtkIO vtkFiltering vtkWidgets vtkVolumeRendering)</em><br>&gt; &gt; &gt; <br>&gt; &gt; &gt; I include in my file :<br>&gt; &gt; &gt; <em>#include </em><br>&gt; &gt; &gt; <br>&gt; &gt; <p>&gt; &nbsp;</p><p style="margin: 0pt; padding: 0pt" class="im">&gt; Do you know how to do ?<br>&gt; &gt;  &gt; <br>&gt; &gt; &gt;  Thanks<br>&gt; &gt; &gt; <font color="#888888"><br>&gt; &gt; &gt; Mathilde</font><br>&gt; &gt; &gt; </p></blockquote><p style="margin: 0pt; padding: 0pt" class="im">&nbsp;</p><p style="margin: 0pt; padding: 0pt"><br>&gt; &gt; &gt; Which version of ITK are you using?<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; In git master, it exists here:<br>&gt; &gt;  &gt; Modules/Numerics/Statistics/include/itkImageToHistogramFilter.h<br>&gt; &gt; &gt;   <br>&gt; &gt; &gt; Also, you should not need anything more than ${ITK_LIBRARIES} for the ITK part of your linking line.<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; David <br>&gt; &gt; &gt; </p> <p>&gt; &nbsp;</p></blockquote></blockquote><p style="margin: 0pt; padding: 0pt"><br>&gt; &gt; I'm assuming you have:<br>&gt; &gt;  FIND_PACKAGE(ITK REQUIRED)<br>&gt; &gt;  INCLUDE(${ITK_USE_FILE})<br>&gt; &gt; <br>&gt; &gt; in your CMakeLists.txt?<br>&gt; &gt; <br>&gt; &gt; Also, you could try<br>&gt; &gt; <em>#include "itkImageToHistogramFilter.h"<br>&gt; &gt; <br>&gt; &gt; instead of<br>&gt; &gt; <br>&gt; &gt; </em><em>#include <br>&gt; &gt;  </em><br>&gt; &gt; David <br>&gt; &gt; </p><p>&gt; &nbsp;</p> </blockquote><br>&gt; <br>&gt; <a href="https://compte.laposte.net/inscription/index.do?jeux=2011FOOTER_generique" target="_blank"><img src="http://webmail.laposte.net/webmail/fr_FR/panels/images/pied-page-generique_2.jpg"></a><br>&gt; <br>&gt; <a href="https://compte.laposte.net/inscription/index.do?jeux=2011FOOTER_generique" target="_blank"><img src="http://webmail.laposte.net/webmail/fr_FR/panels/images/pied-page-generique_2.jpg"></a><p></p></blockquote><blockquote><p style="margin:0;padding:0;"><span>_____________________________________</span><br>&gt; <span>Powered by <a href="http://www.kitware.com"></a><a href="http://www.kitware.com"></a><a href="http://www.kitware.com"><a href="http://www.kitware.com">www.kitware.com</a></a></span><br>&gt; <span></span><br>&gt; <span>Visit other Kitware open-source projects at</span><br>&gt; <span><a href="http://www.kitware.com/opensource/opensource.html"></a><a href="http://www.kitware.com/opensource/opensource.html"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></a></span><br>&gt; <span></span><br>&gt; <span>Kitware offers ITK Training Courses, for more information visit:</span><br>&gt; <span><a href="http://www.kitware.com/products/protraining.html"></a><a href="http://www.kitware.com/products/protraining.html"><a href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a></a></span><br>&gt; <span></span><br>&gt; <span>Please keep messages on-topic and check the ITK FAQ at:</span><br>&gt; <span><a href="http://www.itk.org/Wiki/ITK_FAQ"></a><a href="http://www.itk.org/Wiki/ITK_FAQ"><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a></a></span><br>&gt; <span></span><br>&gt; <span>Follow this link to subscribe/unsubscribe:</span><br>&gt; <span><a href="http://www.itk.org/mailman/listinfo/insight-users"></a><a href="http://www.itk.org/mailman/listinfo/insight-users"><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a></a></span><br>&gt; </p></blockquote></blockquote><br><br><a target="_blank" href="https://compte.laposte.net/inscription/index.do?jeux=2011FOOTER_generique"><img style="margin: 0pt;" src="http://webmail.laposte.net/webmail/fr_FR/panels/images/pied-page-generique_2.jpg" alt=""></a><a></a></div></blockquote></div></blockquote></body></html>