Is there a way to get rid of DenseFrequencyContainer errors without moving to the review Statistics framework? <br><br><div class="gmail_quote">On Mon, May 9, 2011 at 2:51 PM, Neil Panjwani <span dir="ltr">&lt;<a href="mailto:paniwani@gmail.com">paniwani@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I&#39;m trying to modify some of the OTB texture filter code as an ITK filter (b/c I&#39;m unable to build OTB in 64-bit). I&#39;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&#39;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 &quot;protected: __cdecl itk::Statistics::DenseFrequencyContainer::DenseFrequencyContainer(void)&quot; (??0DenseFrequencyContainer@Statistics@itk@@IEAA@XZ) referenced in function &quot;public: static class itk::SmartPointer&lt;class itk::Statistics::DenseFrequencyContainer&gt; __cdecl itk::Statistics::DenseFrequencyContainer::New(void)&quot; (?New@DenseFrequencyContainer@Statistics@itk@@SA?AV?$SmartPointer@VDenseFrequencyContainer@Statistics@itk@@@3@XZ)</div>


<div>1&gt;Texture2.obj : error LNK2019: unresolved external symbol &quot;public: float __cdecl itk::Statistics::DenseFrequencyContainer::GetFrequency(unsigned long)const &quot; (?GetFrequency@DenseFrequencyContainer@Statistics@itk@@QEBAMK@Z) referenced in function &quot;public: virtual float __cdecl itk::Statistics::Histogram&lt;double,2,class itk::Statistics::DenseFrequencyContainer&gt;::GetFrequency(unsigned long const &amp;)const &quot; (?GetFrequency@?$Histogram@N$01VDenseFrequencyContainer@Statistics@itk@@@Statistics@itk@@UEBAMAEBK@Z)</div>


<div>1&gt;Texture2.obj : error LNK2019: unresolved external symbol &quot;public: bool __cdecl itk::Statistics::DenseFrequencyContainer::IncreaseFrequency(unsigned long,float)&quot; (?IncreaseFrequency@DenseFrequencyContainer@Statistics@itk@@QEAA_NKM@Z) referenced in function &quot;public: bool __cdecl itk::Statistics::Histogram&lt;double,2,class itk::Statistics::DenseFrequencyContainer&gt;::IncreaseFrequency(unsigned long const &amp;,float)&quot; (?IncreaseFrequency@?$Histogram@N$01VDenseFrequencyContainer@Statistics@itk@@@Statistics@itk@@QEAA_NAEBKM@Z)</div>


<div>1&gt;Texture2.obj : error LNK2019: unresolved external symbol &quot;public: bool __cdecl itk::Statistics::DenseFrequencyContainer::SetFrequency(unsigned long,float)&quot; (?SetFrequency@DenseFrequencyContainer@Statistics@itk@@QEAA_NKM@Z) referenced in function &quot;public: bool __cdecl itk::Statistics::Histogram&lt;double,2,class itk::Statistics::DenseFrequencyContainer&gt;::SetFrequency(unsigned long const &amp;,float)&quot; (?SetFrequency@?$Histogram@N$01VDenseFrequencyContainer@Statistics@itk@@@Statistics@itk@@QEAA_NAEBKM@Z)</div>


<div>1&gt;Texture2.obj : error LNK2019: unresolved external symbol &quot;public: void __cdecl itk::Statistics::DenseFrequencyContainer::Initialize(unsigned long)&quot; (?Initialize@DenseFrequencyContainer@Statistics@itk@@QEAAXK@Z) referenced in function &quot;public: void __cdecl itk::Statistics::Histogram&lt;double,2,class itk::Statistics::DenseFrequencyContainer&gt;::Initialize(class itk::Size&lt;2&gt; const &amp;)&quot; (?Initialize@?$Histogram@N$01VDenseFrequencyContainer@Statistics@itk@@@Statistics@itk@@QEAAXAEBV?$Size@$01@3@@Z)</div>


<div>1&gt;Texture2.obj : error LNK2019: unresolved external symbol &quot;public: void __cdecl itk::Statistics::DenseFrequencyContainer::SetToZero(void)&quot; (?SetToZero@DenseFrequencyContainer@Statistics@itk@@QEAAXXZ) referenced in function &quot;public: void __cdecl itk::Statistics::Histogram&lt;double,2,class itk::Statistics::DenseFrequencyContainer&gt;::SetToZero(void)&quot; (?SetToZero@?$Histogram@N$01VDenseFrequencyContainer@Statistics@itk@@@Statistics@itk@@QEAAXXZ)</div>


<div><br></div><div>I&#39;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>
</blockquote></div><br>