<span style="color: #808000">I found&nbsp; : <br /><br />I had to build ITK with &quot;ITK_USE_REVIEW_STATISTICS&quot; and &quot;ITK_USE_REVIEW&quot; to &quot;on&quot;.<br /><br />Mathilde<br /></span> <br /> <br /><br /><blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid #ff0000">&gt; Message du 11/07/11 15:45<br />&gt; De : &quot;mathilde.merle&quot; <br />&gt; A : &quot;John Jan Drozd&quot; <br />&gt; Copie &agrave; : &quot;insight-users itk org&quot; <br />&gt; Objet : Re: [Insight-users] itkImageToHistogramFilter.h<br />&gt;<br />&gt; Does anyone know how to compile the code with in the CMakeLists.txt : <br /><br />INCLUDE_DIRECTORIES(<br />&quot;/Users/../../Dev/InsightToolkit-3.20.0/Code/Review/Statistics/&quot;<br />)<br /><br />which generate compiling errors with itkMeasurementVectorTraits class ? &nbsp; <br /><br />Thanks<br /><br />Mathilde<br /><blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid #ff0000">&gt; Message du 11/07/11 11:54<br />&gt; De : &quot;mathilde.merle&quot; <br />&gt; A : &quot;John Jan Drozd&quot; <br />&gt; Copie &agrave; : &quot;insight-users itk org&quot; <br />&gt; Objet : Re: [Insight-users] itkImageToHistogramFilter.h<br />&gt;<br />&gt; I think that I found the error :<br /><br />All the files have problems with the itkMeasurementVectorTraits.h. <br />In the ITK Statistics directory, I have the &quot;.h&quot; but not the &quot;.txx&quot;...<br /><br /><blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid #ff0000">&gt; Message du 08/07/11 17:45<br />&gt; De : &quot;John Jan Drozd&quot; <br />&gt; A : &quot;John Jan Drozd&quot; <br />&gt; Copie &agrave; : &quot;mathilde.merle&quot; , &quot;insight-users itk org&quot; <br />&gt; Objet : Re: [Insight-users] itkImageToHistogramFilter.h<br />&gt;<br />&gt; <p style="margin: 0pt; padding: 0pt">Sorry, I meant right (not write) argument type.</p><p style="margin: 0pt; padding: 0pt"><br />&gt; </p><p style="margin: 0pt; padding: 0pt">John<br />&gt; <br />&gt; Sent from my iPhone</p><p style="margin: 0pt; padding: 0pt"><br />&gt; 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 />&gt; <br />&gt; </p><blockquote><p style="margin: 0pt; padding: 0pt">&nbsp;</p><p style="margin: 0pt; padding: 0pt">It is a problem with your .cxx file.</p><p style="margin: 0pt; padding: 0pt">Your first argument in the template instantiation may be of the wrong type.<br />&gt; Examine the class reference for that template and make sure you are using the write argument type.</p><p style="margin: 0pt; padding: 0pt">Without see your .cxx file, I can't get more specific about the remIning errors.</p><p style="margin: 0pt; padding: 0pt"><br />&gt; </p><p style="margin: 0pt; padding: 0pt">John</p><p style="margin: 0pt; padding: 0pt"><br />&gt; </p><p style="margin: 0pt; padding: 0pt"><br />&gt; </p><p style="margin: 0pt; padding: 0pt">Sent from my iPhone</p><p style="margin: 0pt; padding: 0pt"><br />&gt; On 2011-07-08, at 11:42 AM, &quot;mathilde.merle&quot; &lt;<a href="mailto:mathilde.merle@laposte.net"></a><a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</a>&gt; wrote:<br />&gt; <br />&gt; </p><blockquote><p style="margin: 0pt; padding: 0pt">Thank you, files are found with :<br />&gt; <br />&gt; <font color="#0000FF">INCLUDE_DIRECTORIES(<br />&gt; &quot;/.../.../Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/&quot;<br />&gt; )</font><br />&gt; <br />&gt; However, I have other errors :<br />&gt; <br />&gt; <em>/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:50: error: template argument 1 is invalid<br />&gt; /Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:57: error: template argument 1 is invalid<br />&gt; /Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:84: error: expected nested-name-specifier before &lsquo;MeasurementVectorPixelTraits&rsquo;<br />&gt; /Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:84: error: expected &lsquo;;&rsquo; before &lsquo;&lt;&rsquo; token<br />&gt; /Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:86: error: expected nested-name-specifier before &lsquo;MeasurementVectorTraitsTypes&rsquo;<br />&gt; /Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:86: error: expected &lsquo;;&rsquo; before &lsquo;&lt;&rsquo; token</em><br />&gt; <br />&gt; etc... when the <em>#include </em> is compiled !<br />&gt; <br />&gt; Do you no why ?<br />&gt; <br />&gt; Mathilde<br />&gt; <br />&gt; <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:16<br />&gt; &gt; De : &quot;John Jan Drozd&quot; <br />&gt; &gt; A : &quot;mathilde.merle&quot; <br />&gt; &gt; Copie &agrave; : <a href="mailto:insight-users@itk.org"></a><a href="mailto:insight-users@itk.org"></a><a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br />&gt; &gt; Objet : Re: [Insight-users] itkImageToHistogramFilter.h<br />&gt; &gt;<br />&gt; &gt; <p style="margin: 0pt; padding: 0pt">Hi,</p><p style="margin: 0pt; padding: 0pt"><br />&gt; &gt; </p><p style="margin: 0pt; padding: 0pt">I solve this problem by putting</p><p style="margin: 0pt; padding: 0pt">include_directories( ... ) in my CMakeLists.txt file.</p><p style="margin: 0pt; padding: 0pt">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: 0pt; padding: 0pt"><br />&gt; &gt; </p><p style="margin: 0pt; padding: 0pt">John</p><p style="margin: 0pt; padding: 0pt"><br />&gt; &gt; <br />&gt; &gt; Sent from my iPhone</p><p style="margin: 0pt; padding: 0pt"><br />&gt; &gt; On 2011-07-08, at 11:11 AM, &quot;mathilde.merle&quot; &lt;<a href="mailto:mathilde.merle@laposte.net"></a><a href="mailto:mathilde.merle@laposte.net"></a><a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</a>&gt; wrote:<br />&gt; &gt; <br />&gt; &gt; </p><blockquote><p style="margin: 0pt; padding: 0pt"><br />&gt; &gt; &nbsp;Both solutions don't work ... <br />&gt; &gt; <br />&gt; &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; &gt; De : &quot;David Doria&quot; <br />&gt; &gt; &gt; A : &quot;mathilde.merle&quot; , &quot;ITK&quot; <br />&gt; &gt; &gt; Copie &agrave; : <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">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><a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</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" align="left"><br />&gt; &gt; &gt; </p><br />&gt; &gt; &gt; Thanks for the answer,<br />&gt; &gt; &gt; <br />&gt; &gt; &gt; I use InsightToolkit-3.20.0.<br />&gt; &gt; &gt; <br />&gt; &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; &gt;  <em>error: itkImageToListSampleAdaptor.h: No such file or directory<br />&gt; &gt; &gt; error: itkSampleToHistogramFilter.h: No such file or directory<br />&gt; &gt; &gt; error: itkDenseFrequencyContainer2.h: No such file or directory <br />&gt; &gt; &gt; error: itkImageToHistogramFilter.txx: No such file or directory</em><br />&gt; &gt; &gt;  <br />&gt; &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; &gt; De : &quot;David Doria&quot; <br />&gt; &gt; &gt; &gt; A : &quot;mathilde.merle&quot; <br />&gt; &gt; &gt; &gt; Copie &agrave; : &quot;insight-users itk org&quot; <br />&gt; &gt; &gt;  &gt; Objet : Re: [Insight-users] itkImageToHistogramFilter.h<br />&gt; &gt; &gt; &gt;<br />&gt; &gt; &gt; &gt;  <br />&gt; &gt; &gt; &gt; <br />&gt; &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><a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</a>&gt;</span> wrote:<br />&gt; &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; &gt; </p>Hello all,<br />&gt; &gt; &gt; &gt; <br />&gt; &gt; &gt;  &gt; I have this error :<br />&gt; &gt; &gt; &gt; <br />&gt; &gt; &gt; &gt; <em>error: itkImageToHistogramFilter.h: No such file or directory</em><br />&gt; &gt; &gt; &gt; <br />&gt; &gt; &gt; &gt; in the CMakeLists.txt I have :<br />&gt; &gt; &gt; &gt; <br />&gt; &gt; &gt; &gt; <em>TARGET_LINK_LIBRARIES(test-ivtk ${ITK_LIBRARIES} ITKStatistics ITKBasicFilters ITKCommon ITKIO vtkCommon<br />&gt; &gt; &gt;  &gt;  vtkRendering vtkGraphics vtkHybrid vtkImaging vtkIO vtkFiltering vtkWidgets vtkVolumeRendering)</em><br />&gt; &gt; &gt; &gt; <br />&gt; &gt; &gt; &gt; I include in my file :<br />&gt; &gt; &gt; &gt; <em>#include </em><br />&gt; &gt; &gt; &gt; <br />&gt; &gt; &gt; <p>&gt; &gt; &gt; &gt; &nbsp;</p><p style="margin: 0pt; padding: 0pt" class="im">&gt; Do you know how to do ?<br />&gt; &gt; &gt;  &gt; <br />&gt; &gt; &gt; &gt;  Thanks<br />&gt; &gt; &gt; &gt; <font color="#888888"><br />&gt; &gt; &gt; &gt; Mathilde</font><br />&gt; &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; &gt; Which version of ITK are you using?<br />&gt; &gt; &gt; &gt; <br />&gt; &gt; &gt; &gt; In git master, it exists here:<br />&gt; &gt; &gt;  &gt; Modules/Numerics/Statistics/include/itkImageToHistogramFilter.h<br />&gt; &gt; &gt; &gt;   <br />&gt; &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; &gt; <br />&gt; &gt; &gt; &gt; David <br />&gt; &gt; &gt; &gt; </p> <p>&gt; &gt; &gt; &gt; &nbsp;</p></blockquote></blockquote><p style="margin: 0pt; padding: 0pt"><br />&gt; &gt; &gt; I'm assuming you have:<br />&gt; &gt; &gt;  FIND_PACKAGE(ITK REQUIRED)<br />&gt; &gt; &gt;  INCLUDE(${ITK_USE_FILE})<br />&gt; &gt; &gt; <br />&gt; &gt; &gt; in your CMakeLists.txt?<br />&gt; &gt; &gt; <br />&gt; &gt; &gt; Also, you could try<br />&gt; &gt; &gt; <em>#include &quot;itkImageToHistogramFilter.h&quot;<br />&gt; &gt; &gt; <br />&gt; &gt; &gt; instead of<br />&gt; &gt; &gt; <br />&gt; &gt; &gt; </em><em>#include <br />&gt; &gt; &gt;  </em><br />&gt; &gt; &gt; David <br />&gt; &gt; &gt; </p><p>&gt; &gt; &gt; &gt; &nbsp;</p> </blockquote><br />&gt; &gt; <br />&gt; &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; &gt; <br />&gt; &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>&gt; &gt; &gt; </p></blockquote><blockquote><p style="margin: 0pt; padding: 0pt"><span>_____________________________________</span><br />&gt; &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><a href="http://www.kitware.com">www.kitware.com</a></span><br />&gt; &gt; <span></span><br />&gt; &gt; <span>Visit other Kitware open-source projects at</span><br />&gt; &gt; <span><a href="http://www.kitware.com/opensource/opensource.html"></a><a href="http://www.kitware.com/opensource/opensource.html"></a><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br />&gt; &gt; <span></span><br />&gt; &gt; <span>Kitware offers ITK Training Courses, for more information visit:</span><br />&gt; &gt; <span><a href="http://www.kitware.com/products/protraining.html"></a><a href="http://www.kitware.com/products/protraining.html"></a><a href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a></span><br />&gt; &gt; <span></span><br />&gt; &gt; <span>Please keep messages on-topic and check the ITK FAQ at:</span><br />&gt; &gt; <span><a href="http://www.itk.org/Wiki/ITK_FAQ"></a><a href="http://www.itk.org/Wiki/ITK_FAQ"></a><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a></span><br />&gt; &gt; <span></span><br />&gt; &gt; <span>Follow this link to subscribe/unsubscribe:</span><br />&gt; &gt; <span><a href="http://www.itk.org/mailman/listinfo/insight-users"></a><a href="http://www.itk.org/mailman/listinfo/insight-users"></a><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a></span><br />&gt; &gt; </p></blockquote></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><p>&gt; &nbsp;</p></blockquote><p>&gt; &nbsp;</p></blockquote></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>&gt;<br />&gt; [ (pas de nom de fichier) (0.5 Ko) ]</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>&gt;<br />&gt; [ (pas de nom de fichier) (0.5 Ko) ]</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>