<div>He means that in your CMakeLists.txt you should include ITKStatistics in your TARGET_LINK_LIBRARIES(...) command</div>
<div> </div>
<div>Regards<br><br> </div>
<div><span class="gmail_quote">2006/10/20, Luca Binotto <<a href="mailto:binotto@lycos.de">binotto@lycos.de</a>>:</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 "linking a program with ITKStatistics",
<br>Can u give me an example ?<br>Thanks again 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 <binotto at
<a href="http://lycos.de">lycos.de</a>> wrote:<br><br>> Hello there,<br>><br>> I'm working on a 3D scalar dataset, I applied the gradient magnitude<br>> and the laplacian filter to it, then I combined them in a
<br>> vector image by means of the itkCompose3DVectorImageFilter.<br>> After that I gave its output to the itkImageToHistogramGenerator<br>> but I got errors.Cannot understand what's going wrong.<br>><br>> The read image is: (256x256x128)
<br>> typedef unsigned char PixelType;<br>> const unsigned int Dimension = 3;<br>> typedef itk::Image<PixelType,Dimension> ImageType;<br>><br>><br>> typedef itk::Compose3DVectorImageFilter<ImageType > vectImageFilterType;
<br>> vectImageFilterType::Pointer composer = vectImageFilterType::New();<br>><br>> composer->SetInput1( reader->GetOutput() );<br>> composer->SetInput2( gradientMagnitude->GetOutput() );<br>
> composer->SetInput3( laplacian->GetOutput() );<br>><br>> typedef vectImageFilterType::OutputImageType CompImageType;<br>><br>> typedef itk::Statistics::ImageToHistogramGenerator< CompImageType >
<br>> HistogramGeneratorType;<br>> HistogramGeneratorType::Pointer histogramGenerator =<br>> HistogramGeneratorType::New();<br>><br>> typedef HistogramGeneratorType::SizeType SizeType;<br>><br>> SizeType size;
<br>><br>> size[0] = 255;<br>> size[1] = 255;<br>> size[2] = 255;<br>><br>> histogramGenerator->SetNumberOfBins( size );<br>><br>> histogramGenerator->SetInput( composer->GetOutput());
<br>> histogramGenerator->SetMarginalScale( 10.0 );<br>> histogramGenerator->Compute();<br>><br>> my compiler output:<br>><br>> CMakeFiles/vtkitkOTF.dir/main.o: In function<br>> `itk::ObjectFactory<itk::Statistics::DenseFrequencyContainer>::Create()':
<br>> main.cpp:(.text._ZN3itk13ObjectFactoryINS_10Statistics23DenseFrequencyContainerEE6CreateEv[itk::ObjectFactory<itk::Statistics::DenseFrequencyContainer>::Create()]+0x8):<br>> undefined reference to `typeinfo for
<br>> itk::Statistics::DenseFrequencyContainer'<br>> main.cpp:(.text._ZN3itk13ObjectFactoryINS_10Statistics23DenseFrequencyContainerEE6CreateEv[itk::ObjectFactory<itk::Statistics::DenseFrequencyContainer>::Create()]+0x55):
<br>> undefined reference to `typeinfo for<br>> itk::Statistics::DenseFrequencyContainer'<br>> CMakeFiles/vtkitkOTF.dir/main.o: In function<br>> `itk::Statistics::Histogram<double, 3u,<br>> itk::Statistics::DenseFrequencyContainer>::GetFrequency(unsigned long
<br>> const&) const':<br>> main.cpp:(.text._ZNK3itk10Statistics9HistogramIdLj3ENS0_23DenseFrequencyContainerEE12GetFrequencyERKm[itk::Statistics::Histogram<double,<br>> 3u, itk::Statistics::DenseFrequencyContainer>::GetFrequency(unsigned
<br>> long const&) const]+0x22): undefined reference to<br>> `itk::Statistics::DenseFrequencyContainer::GetFrequency(unsigned long)<br>> const'<br>> CMakeFiles/vtkitkOTF.dir/main.o: In function<br>> `itk::Statistics::DenseFrequencyContainer::New()':
<br>> main.cpp:(.text._ZN3itk10Statistics23DenseFrequencyContainer3NewEv[itk::Statistics::DenseFrequencyContainer::New()]+0x55):<br>> undefined reference to<br>> `itk::Statistics::DenseFrequencyContainer::DenseFrequencyContainer()'
<br>> CMakeFiles/vtkitkOTF.dir/main.o: In function<br>> `itk::Statistics::Histogram<double, 3u,<br>> itk::Statistics::DenseFrequencyContainer>::SetToZero()':<br>> main.cpp:(.text._ZN3itk10Statistics9HistogramIdLj3ENS0_23DenseFrequencyContainerEE9SetToZeroEv[itk::Statistics::Histogram<double,
<br>> 3u, itk::Statistics::DenseFrequencyContainer>::SetToZero()]+0x18):<br>> undefined reference to<br>> `itk::Statistics::DenseFrequencyContainer::SetToZero()'<br>> CMakeFiles/vtkitkOTF.dir/main.o: In function
<br>> `itk::Statistics::Histogram<double, 3u,<br>> itk::Statistics::DenseFrequencyContainer>::Initialize(itk::Size<3u><br>> const&)':<br>> main.cpp:(.text._ZN3itk10Statistics9HistogramIdLj3ENS0_23DenseFrequencyContainerEE10InitializeERKNS_4SizeILj3EEE[itk::Statistics::Histogram<double,
<br>> 3u, itk::Statistics::DenseFrequencyContainer>::Initialize(itk::Size<3u><br>> const&)]+0x238): undefined reference to<br>> `itk::Statistics::DenseFrequencyContainer::Initialize(unsigned long)'<br>
> CMakeFiles/vtkitkOTF.dir/main.o: In function<br>> `itk::Statistics::Histogram<double, 3u,<br>> itk::Statistics::DenseFrequencyContainer>::IncreaseFrequency(unsigned<br>> long const&, float)':<br>>
main.cpp:(.text._ZN3itk10Statistics9HistogramIdLj3ENS0_23DenseFrequencyContainerEE17IncreaseFrequencyERKmf[itk::Statistics::Histogram<double,<br>> 3u,<br>> itk::Statistics::DenseFrequencyContainer>::IncreaseFrequency(unsigned
<br>> long const&, float)]+0x2b): undefined reference to<br>> `itk::Statistics::DenseFrequencyContainer::IncreaseFrequency(unsigned<br>> long, float)'<br>> collect2: ld returned 1 exit status<br>> make[2]: *** [vtkitkOTF] Error 1
<br>> make[2]: Leaving directory `/home/luca/devel/vtkitkOTF'<br>> make[1]: *** [CMakeFiles/vtkitkOTF.dir/all] Error 2<br>> make[1]: Leaving directory `/home/luca/devel/vtkitkOTF'<br>> make: *** [all] Error 2<br>
><br>> Someone can explain me the problem ?<br>><br>> Thanks in advance, Luca<br>><br>> Benachrichtigung bei E-Mail Empfang! -<br>> <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 fax: 01 34 65 29 09<br><a href="http://voxel.jouy.inra.fr">http://voxel.jouy.inra.fr
</a><br><br> * Previous message: [Insight-users] Problems with ImageToHistogramGenerator<br> * Next message: [Insight-users] error C2440<br> * 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&trackingID=email_footertxt">
http://www.lycos.de/startseite/online/dsl/index.html?prod=DSL&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>