[Insight-users] About mutual information and joint histogram

Karthik Krishnan Karthik.Krishnan at kitware.com
Fri Jan 13 13:21:17 EST 2006


On Fri, 2006-01-13 at 11:46 +0100, Fricotin Bibi wrote:
>  Hello
> Another question about Joint histogram
> 
> I tried to compile the joint histogram plotter that can be found at
> Examples/Registration/ImageRegistrationHistogramPlotter.cxx
> and i got the following errors: 
> 
> Linking CXX executable JHisto
> CMakeFiles/JHisto.dir/JHisto.o(.gnu.linkonce.t._ZN3itk10Statistics23DenseFrequencyContainer3NewEv+0x59): In function `itk::Statistics::DenseFrequencyContainer::New()! ':

You aren't linking your code against the ITKStatistics library.

If you are migrating from an older ITK distribution (such as ITK-2-2
pre) to the current one, you will need to link most Statistics programs
against the ITKStatistics library. 

This wasn't necessary before cause all the code in Statistics/ was
templated. Some of it was converted to .cxx files now.

For instance the CMakeLists.txt in Examples/Registration

  TARGET_LINK_LIBRARIES(ImageRegistrationHistogramPlotter 
                        ITKNumerics ITKIO ITKCommon ITKStatistics)




Does this help ?
bye
karthik


> : undefined reference to
> `itk::Statistics::DenseFrequencyContainer::DenseFrequencyContainer[in-charge]()'
> CMakeFiles/JHisto.dir/JHisto.o(.gnu.linkonce.t._ZN3itk13ObjectFactoryINS_10Statistics23DenseFrequencyContainerEE6CreateEv+0xd): In function `itk::ObjectFactory<itk::Statistics::DenseFrequencyContainer>::Create()':
> : undefined reference to `typeinfo for
> itk::Statistics::DenseFrequencyContainer'
> CMakeFiles/JHisto.dir/JHisto.o(.gnu.linkonce.t._ZN3itk13ObjectFactoryINS_10Statistics23DenseFrequencyContainerEE6CreateEv+0x4e): In function `itk::ObjectFactory<itk::Statistics::DenseFrequencyContainer>::Create()':
> : undefined reference to `typeinfo for
> itk::Statistics::DenseFrequencyContainer'
> CMakeFiles/JHisto.dir/JHisto.o(.gnu.linkonce.t._ZN3itk10Statistics9HistogramIdLj2ENS0_23DenseFrequencyContainerEE10InitializeERKNS_4SizeILj2EEE+0x164): In function `itk::Statistics::Histogram<double, (unsigned)2, itk::Statistics::DenseFrequencyContainer>::Initialize(itk::Size<(unsigned)2> const&)':
> : undefined reference to
> `itk::Statistics::DenseFrequencyContainer::Initialize(unsigned long)'
> CMakeFiles/JHisto.dir/JHisto.o(.gnu.linkonce.t._ZNK3itk10Statistics9HistogramIdLj2ENS0_23DenseFrequencyContainerEE12GetFrequencyERKm+0x23): In function `itk::Statistics::Histogram<double, (unsigned)2, itk::Statistics::DenseFrequencyContainer>::GetFrequency(unsigned long const&) const':
> : undefined reference to
> `itk::Statistics::DenseFrequencyContainer::GetFrequency(unsigned long)
> const'
> CMakeFiles/JHisto.dir/JHisto.o(.gnu.linkonce.t._ZN3itk10Statistics9HistogramIdLj2ENS0_23DenseFrequencyContainerEE17IncreaseFrequencyERKmf+0x2a): In function `itk::Statistics::Histogram<double, (unsigned)2, itk::Statistics::DenseFrequencyContainer>::IncreaseFrequency(unsigned long const&, float)':
> : undefined reference to
> `itk::Statistics::DenseFrequencyContainer::IncreaseFrequency(unsigned
> long, float)'
> CMakeFiles/JHisto.dir/JHisto.o(.gnu.linkonce.t._ZN3itk10Statistics9HistogramIdLj2ENS0_23DenseFrequencyContainerEE9SetToZeroEv+0x18): In function `itk::Statistics::Histogram<double, (unsigned)2, itk::Statistics::DenseFrequencyContainer>::SetToZero()':
> : undefined reference to
> `itk::Statistics::DenseFrequencyContainer::SetToZero()'
> CMakeFiles/JHisto.dir/JHisto.o(.gnu.linkonce.t._ZN3itk10Statistics9HistogramIdLj2ENS0_23DenseFrequencyContainerEE12SetFrequencyERKmf+0x2a): In function `itk::Statistics::Histogram<double, (unsigned)2, itk::Statistics::DenseFrequencyContainer>::SetFrequency(unsigned long const&, float)':
> : undefined reference to
> `itk::Statistics::DenseFrequencyContainer::SetFrequency(unsigned long,
> float)'
> collect2: ld a retourné 1 code d'état d'exécution
> make[2]: *** [JHisto] Erreur 1
> make[1]: *** [CMakeFiles/JHisto.dir/all] Erreur 2
> m! ake: *** [all] Erreur 2
> 
> i use a gentoo-based linux distribution and the other examples works
> well
> gcc vesion is 3.3.5 and itk is 2.4.1
> 
> Any idea??
> 
> 
> 
> ______________________________________________________________________
> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les
> tarifs exceptionnels pour appeler la France et l'international.
> Téléchargez la version beta.
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list