I'm trying to modify some of the OTB texture filter code as an ITK filter (b/c I'm unable to build OTB in 64-bit). I'm trying to compute the 8 local Haralick texture features averaged over all offsets. In order to compute the textures locally, I need to compute the GLCM over a local user-defined region. I've modified the itkMaskedScalarImageToGreyLevelCooccurrenceMatrixGenerator to operate on a given region, however it gives me the following errors:<div>
<br></div><div><div>Texture2.obj : error LNK2019: unresolved external symbol "protected: __cdecl itk::Statistics::DenseFrequencyContainer::DenseFrequencyContainer(void)" (??0DenseFrequencyContainer@Statistics@itk@@IEAA@XZ) referenced in function "public: static class itk::SmartPointer<class itk::Statistics::DenseFrequencyContainer> __cdecl itk::Statistics::DenseFrequencyContainer::New(void)" (?New@DenseFrequencyContainer@Statistics@itk@@SA?AV?$SmartPointer@VDenseFrequencyContainer@Statistics@itk@@@3@XZ)</div>
<div>1>Texture2.obj : error LNK2019: unresolved external symbol "public: float __cdecl itk::Statistics::DenseFrequencyContainer::GetFrequency(unsigned long)const " (?GetFrequency@DenseFrequencyContainer@Statistics@itk@@QEBAMK@Z) referenced in function "public: virtual float __cdecl itk::Statistics::Histogram<double,2,class itk::Statistics::DenseFrequencyContainer>::GetFrequency(unsigned long const &)const " (?GetFrequency@?$Histogram@N$01VDenseFrequencyContainer@Statistics@itk@@@Statistics@itk@@UEBAMAEBK@Z)</div>
<div>1>Texture2.obj : error LNK2019: unresolved external symbol "public: bool __cdecl itk::Statistics::DenseFrequencyContainer::IncreaseFrequency(unsigned long,float)" (?IncreaseFrequency@DenseFrequencyContainer@Statistics@itk@@QEAA_NKM@Z) referenced in function "public: bool __cdecl itk::Statistics::Histogram<double,2,class itk::Statistics::DenseFrequencyContainer>::IncreaseFrequency(unsigned long const &,float)" (?IncreaseFrequency@?$Histogram@N$01VDenseFrequencyContainer@Statistics@itk@@@Statistics@itk@@QEAA_NAEBKM@Z)</div>
<div>1>Texture2.obj : error LNK2019: unresolved external symbol "public: bool __cdecl itk::Statistics::DenseFrequencyContainer::SetFrequency(unsigned long,float)" (?SetFrequency@DenseFrequencyContainer@Statistics@itk@@QEAA_NKM@Z) referenced in function "public: bool __cdecl itk::Statistics::Histogram<double,2,class itk::Statistics::DenseFrequencyContainer>::SetFrequency(unsigned long const &,float)" (?SetFrequency@?$Histogram@N$01VDenseFrequencyContainer@Statistics@itk@@@Statistics@itk@@QEAA_NAEBKM@Z)</div>
<div>1>Texture2.obj : error LNK2019: unresolved external symbol "public: void __cdecl itk::Statistics::DenseFrequencyContainer::Initialize(unsigned long)" (?Initialize@DenseFrequencyContainer@Statistics@itk@@QEAAXK@Z) referenced in function "public: void __cdecl itk::Statistics::Histogram<double,2,class itk::Statistics::DenseFrequencyContainer>::Initialize(class itk::Size<2> const &)" (?Initialize@?$Histogram@N$01VDenseFrequencyContainer@Statistics@itk@@@Statistics@itk@@QEAAXAEBV?$Size@$01@3@@Z)</div>
<div>1>Texture2.obj : error LNK2019: unresolved external symbol "public: void __cdecl itk::Statistics::DenseFrequencyContainer::SetToZero(void)" (?SetToZero@DenseFrequencyContainer@Statistics@itk@@QEAAXXZ) referenced in function "public: void __cdecl itk::Statistics::Histogram<double,2,class itk::Statistics::DenseFrequencyContainer>::SetToZero(void)" (?SetToZero@?$Histogram@N$01VDenseFrequencyContainer@Statistics@itk@@@Statistics@itk@@QEAAXXZ)</div>
<div><br></div><div>I've seen this DenseFrequencyContainer errors before. I was able to circumvent the problem by using the review Statistics package. However, that package does not contain this GLCM generator that I need for the local textures. What can I do to avoid these silly container errors and got on with computing texture already...</div>
</div><div><br></div>