<br><br><div class="gmail_quote">On Fri, Jul 8, 2011 at 10:59 AM, mathilde.merle <span dir="ltr"><<a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<p style="margin: 0pt; padding: 0pt;" align="left"><br></p><br>Thanks for the answer,<br><br>I use InsightToolkit-3.20.0.<br><br>I found the file in the ITK directory, but if I copy it into my current directory, I have other errors :<br>
<i>error: itkImageToListSampleAdaptor.h: No such file or directory<br>error: itkSampleToHistogramFilter.h: No such file or directory<br>error: itkDenseFrequencyContainer2.h: No such file or directory <br>error: itkImageToHistogramFilter.txx: No such file or directory</i><br>
<br><blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid rgb(255, 0, 0);">> Message du 08/07/11 15:43<br>> De : "David Doria" <br>> A : "mathilde.merle" <br>> Copie à : "insight-users itk org" <br>
> Objet : Re: [Insight-users] itkImageToHistogramFilter.h<br>><br>> <br>> <br>> <p style="margin: 0pt; padding: 0pt;" class="gmail_quote"></p><div class="im">On Fri, Jul 8, 2011 at 10:35 AM, mathilde.merle <span><<a href="mailto:mathilde.merle@laposte.net" target="_blank">mathilde.merle@laposte.net</a>></span> wrote:<br>
> </div><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"> <p style="margin: 0pt; padding: 0pt;" align="left"><br>> </p>Hello all,<br>> <br>
> I have this error :<br>> <br>> <i>error: itkImageToHistogramFilter.h: No such file or directory</i><br>> <br>> in the CMakeLists.txt I have :<br>> <br>> <i>TARGET_LINK_LIBRARIES(test-ivtk ${ITK_LIBRARIES} ITKStatistics ITKBasicFilters ITKCommon ITKIO vtkCommon<br>
> vtkRendering vtkGraphics vtkHybrid vtkImaging vtkIO vtkFiltering vtkWidgets vtkVolumeRendering)</i><br>> <br>> I include in my file :<br>> <i>#include </i><br>> <br></div><div class="im">> Do you know how to do ?<br>
> <br>> Thanks<br>> <font color="#888888"><br>> Mathilde</font><br>> </div></blockquote><div class="im"><p style="margin: 0pt; padding: 0pt;"><br>> Which version of ITK are you using?<br>> <br>> In git master, it exists here:<br>
> Modules/Numerics/Statistics/include/itkImageToHistogramFilter.h<br>> <br>> Also, you should not need anything more than ${ITK_LIBRARIES} for the ITK part of your linking line.<br>> <br>> David <br>> </p>
</div></blockquote></blockquote><div><br>I'm assuming you have:<br>
FIND_PACKAGE(ITK REQUIRED)<br>
INCLUDE(${ITK_USE_FILE})<br><br>in your CMakeLists.txt?<br><br>Also, you could try<br><em>#include "itkImageToHistogramFilter.h"<br><br>instead of<br><br></em><em>#include <itkImageToHistogramFilter.h><br>
</em><br>David <br></div></div>