<div>He means that in your CMakeLists.txt you should include ITKStatistics in your TARGET_LINK_LIBRARIES(...) command</div>
<div>&nbsp;</div>
<div>Regards<br><br>&nbsp;</div>
<div><span class="gmail_quote">2006/10/20, Luca Binotto &lt;<a href="mailto:binotto@lycos.de">binotto@lycos.de</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello Gaetan,<br>thanks for the replay !<br>I don't understand what do you mean with &quot;linking a program with ITKStatistics&quot;,
<br>Can u give me an example ?<br>Thanks again&nbsp;&nbsp; Luca<br><br>Hi,<br><br>have you linked your program with ITKStatistics ?<br><br>Regards,<br><br>Gaetan<br><br>On Thu, 19 Oct 2006 15:50:29 +0200, Luca Binotto &lt;binotto at 
<a href="http://lycos.de">lycos.de</a>&gt; wrote:<br><br>&gt; Hello there,<br>&gt;<br>&gt; I'm working on a 3D scalar dataset, I applied the gradient magnitude<br>&gt; and the laplacian filter to it, then I combined them in a
<br>&gt; vector image by means of the itkCompose3DVectorImageFilter.<br>&gt; After that I gave its output to the itkImageToHistogramGenerator<br>&gt; but I got errors.Cannot understand what's going wrong.<br>&gt;<br>&gt; The read image is: (256x256x128)
<br>&gt; typedef unsigned char&nbsp;&nbsp; PixelType;<br>&gt;&nbsp;&nbsp; const unsigned int&nbsp;&nbsp; Dimension = 3;<br>&gt; typedef itk::Image&lt;PixelType,Dimension&gt;&nbsp;&nbsp;ImageType;<br>&gt;<br>&gt;<br>&gt; typedef itk::Compose3DVectorImageFilter&lt;ImageType &gt;&nbsp;&nbsp;vectImageFilterType;
<br>&gt;&nbsp;&nbsp; vectImageFilterType::Pointer composer =&nbsp;&nbsp;vectImageFilterType::New();<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;composer-&gt;SetInput1( reader-&gt;GetOutput() );<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;composer-&gt;SetInput2( gradientMagnitude-&gt;GetOutput() );<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;composer-&gt;SetInput3( laplacian-&gt;GetOutput() );<br>&gt;<br>&gt;&nbsp;&nbsp;typedef&nbsp;&nbsp;vectImageFilterType::OutputImageType&nbsp;&nbsp;CompImageType;<br>&gt;<br>&gt;&nbsp;&nbsp;typedef itk::Statistics::ImageToHistogramGenerator&lt;&nbsp;&nbsp; CompImageType &gt;
<br>&gt; HistogramGeneratorType;<br>&gt; HistogramGeneratorType::Pointer histogramGenerator =<br>&gt; HistogramGeneratorType::New();<br>&gt;<br>&gt;&nbsp;&nbsp;typedef HistogramGeneratorType::SizeType&nbsp;&nbsp; SizeType;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;SizeType size;
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;size[0] = 255;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;size[1] = 255;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;size[2] = 255;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;histogramGenerator-&gt;SetNumberOfBins( size );<br>&gt;<br>&gt;&nbsp;&nbsp; histogramGenerator-&gt;SetInput( composer-&gt;GetOutput());
<br>&gt;&nbsp;&nbsp; histogramGenerator-&gt;SetMarginalScale( 10.0 );<br>&gt;&nbsp;&nbsp; histogramGenerator-&gt;Compute();<br>&gt;<br>&gt; my compiler output:<br>&gt;<br>&gt; CMakeFiles/vtkitkOTF.dir/main.o: In function<br>&gt; `itk::ObjectFactory&lt;itk::Statistics::DenseFrequencyContainer&gt;::Create()':
<br>&gt; main.cpp:(.text._ZN3itk13ObjectFactoryINS_10Statistics23DenseFrequencyContainerEE6CreateEv[itk::ObjectFactory&lt;itk::Statistics::DenseFrequencyContainer&gt;::Create()]+0x8):<br>&gt; undefined reference to `typeinfo for
<br>&gt; itk::Statistics::DenseFrequencyContainer'<br>&gt; main.cpp:(.text._ZN3itk13ObjectFactoryINS_10Statistics23DenseFrequencyContainerEE6CreateEv[itk::ObjectFactory&lt;itk::Statistics::DenseFrequencyContainer&gt;::Create()]+0x55):
<br>&gt; undefined reference to `typeinfo for<br>&gt; itk::Statistics::DenseFrequencyContainer'<br>&gt; CMakeFiles/vtkitkOTF.dir/main.o: In function<br>&gt; `itk::Statistics::Histogram&lt;double, 3u,<br>&gt; itk::Statistics::DenseFrequencyContainer&gt;::GetFrequency(unsigned long
<br>&gt; const&amp;) const':<br>&gt; main.cpp:(.text._ZNK3itk10Statistics9HistogramIdLj3ENS0_23DenseFrequencyContainerEE12GetFrequencyERKm[itk::Statistics::Histogram&lt;double,<br>&gt; 3u, itk::Statistics::DenseFrequencyContainer&gt;::GetFrequency(unsigned
<br>&gt; long const&amp;) const]+0x22): undefined reference to<br>&gt; `itk::Statistics::DenseFrequencyContainer::GetFrequency(unsigned long)<br>&gt; const'<br>&gt; CMakeFiles/vtkitkOTF.dir/main.o: In function<br>&gt; `itk::Statistics::DenseFrequencyContainer::New()':
<br>&gt; main.cpp:(.text._ZN3itk10Statistics23DenseFrequencyContainer3NewEv[itk::Statistics::DenseFrequencyContainer::New()]+0x55):<br>&gt; undefined reference to<br>&gt; `itk::Statistics::DenseFrequencyContainer::DenseFrequencyContainer()'
<br>&gt; CMakeFiles/vtkitkOTF.dir/main.o: In function<br>&gt; `itk::Statistics::Histogram&lt;double, 3u,<br>&gt; itk::Statistics::DenseFrequencyContainer&gt;::SetToZero()':<br>&gt; main.cpp:(.text._ZN3itk10Statistics9HistogramIdLj3ENS0_23DenseFrequencyContainerEE9SetToZeroEv[itk::Statistics::Histogram&lt;double,
<br>&gt; 3u, itk::Statistics::DenseFrequencyContainer&gt;::SetToZero()]+0x18):<br>&gt; undefined reference to<br>&gt; `itk::Statistics::DenseFrequencyContainer::SetToZero()'<br>&gt; CMakeFiles/vtkitkOTF.dir/main.o: In function
<br>&gt; `itk::Statistics::Histogram&lt;double, 3u,<br>&gt; itk::Statistics::DenseFrequencyContainer&gt;::Initialize(itk::Size&lt;3u&gt;<br>&gt; const&amp;)':<br>&gt; main.cpp:(.text._ZN3itk10Statistics9HistogramIdLj3ENS0_23DenseFrequencyContainerEE10InitializeERKNS_4SizeILj3EEE[itk::Statistics::Histogram&lt;double,
<br>&gt; 3u, itk::Statistics::DenseFrequencyContainer&gt;::Initialize(itk::Size&lt;3u&gt;<br>&gt; const&amp;)]+0x238): undefined reference to<br>&gt; `itk::Statistics::DenseFrequencyContainer::Initialize(unsigned long)'<br>
&gt; CMakeFiles/vtkitkOTF.dir/main.o: In function<br>&gt; `itk::Statistics::Histogram&lt;double, 3u,<br>&gt; itk::Statistics::DenseFrequencyContainer&gt;::IncreaseFrequency(unsigned<br>&gt; long const&amp;, float)':<br>&gt; 
main.cpp:(.text._ZN3itk10Statistics9HistogramIdLj3ENS0_23DenseFrequencyContainerEE17IncreaseFrequencyERKmf[itk::Statistics::Histogram&lt;double,<br>&gt; 3u,<br>&gt; itk::Statistics::DenseFrequencyContainer&gt;::IncreaseFrequency(unsigned
<br>&gt; long const&amp;, float)]+0x2b): undefined reference to<br>&gt; `itk::Statistics::DenseFrequencyContainer::IncreaseFrequency(unsigned<br>&gt; long, float)'<br>&gt; collect2: ld returned 1 exit status<br>&gt; make[2]: *** [vtkitkOTF] Error 1
<br>&gt; make[2]: Leaving directory `/home/luca/devel/vtkitkOTF'<br>&gt; make[1]: *** [CMakeFiles/vtkitkOTF.dir/all] Error 2<br>&gt; make[1]: Leaving directory `/home/luca/devel/vtkitkOTF'<br>&gt; make: *** [all] Error 2<br>
&gt;<br>&gt; Someone can explain me the problem ?<br>&gt;<br>&gt; Thanks in advance, Luca<br>&gt;<br>&gt; Benachrichtigung bei E-Mail Empfang! -<br>&gt; <a href="http://mail.lycos.de/app/lycosinside/setupLI.exe">http://mail.lycos.de/app/lycosinside/setupLI.exe
</a><br><br><br><br>--<br>Gaëtan Lehmann<br>Biologie du Développement et de la Reproduction<br>INRA de Jouy-en-Josas (France)<br>tel: +33 1 34 65 29 66&nbsp;&nbsp;&nbsp;&nbsp;fax: 01 34 65 29 09<br><a href="http://voxel.jouy.inra.fr">http://voxel.jouy.inra.fr
</a><br><br>&nbsp;&nbsp; * Previous message: [Insight-users] Problems with ImageToHistogramGenerator<br>&nbsp;&nbsp; * Next message: [Insight-users] error C2440<br>&nbsp;&nbsp; * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]<br><br>More information about the Insight-users mailing list
<br><br>Schnell und einfach ohne Anschlusswechsel zur Lycos DSL Flatrate wechseln und 3 Monate kostenlos ab effektiven 5,21 EUR pro Monat im ersten Jahr surfen.<br><a href="http://www.lycos.de/startseite/online/dsl/index.html?prod=DSL&amp;trackingID=email_footertxt">
http://www.lycos.de/startseite/online/dsl/index.html?prod=DSL&amp;trackingID=email_footertxt</a><br><br>_______________________________________________<br>Insight-users mailing list<br><a href="mailto:Insight-users@itk.org">
Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br><br><br></blockquote></div><br>