<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta name="robots" content="noindex"> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>ITK: itkGreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.h Source File</title> <link href="DoxygenStyle.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Section customized for INSIGHT : Tue Jul 17 01:02:45 2001 --> <center> <a href="index.html" class="qindex">Main Page</a> <a href="modules.html" class="qindex">Groups</a> <a href="namespaces.html" class="qindex">Namespace List</a> <a href="hierarchy.html" class="qindex">Class Hierarchy</a> <a href="classes.html" class="qindex">Alphabetical List</a> <a href="annotated.html" class="qindex">Compound List</a> <a href="files.html" class="qindex">File List</a> <a href="namespacemembers.html" class="qindex">Namespace Members</a> <a href="functions.html" class="qindex">Compound Members</a> <a href="globals.html" class="qindex">File Members</a> <a href="pages.html" class="qindex">Concepts</a></center> <!-- Generated by Doxygen 1.5.9 --> <div class="navpath"><a class="el" href="dir_02e23d841c198393a6e961e9a0678fff.html">Code</a> » <a class="el" href="dir_2c33022d19e8077162952ea9ed57656d.html">Numerics</a> » <a class="el" href="dir_e82fe55e9fab4124d6625d716e091a5f.html">Statistics</a> </div> <div class="contents"> <h1>itkGreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.h</h1><a href="itkGreyLevelCooccurrenceMatrixTextureCoefficientsCalculator_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span> <a name="l00002"></a>00002 <span class="comment"></span> <a name="l00003"></a>00003 <span class="comment"> Program: Insight Segmentation & Registration Toolkit</span> <a name="l00004"></a>00004 <span class="comment"> Module: $RCSfile: itkGreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.h,v $</span> <a name="l00005"></a>00005 <span class="comment"> Language: C++</span> <a name="l00006"></a>00006 <span class="comment"> Date: $Date: 2005-04-20 20:31:22 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.4 $</span> <a name="l00008"></a>00008 <span class="comment"></span> <a name="l00009"></a>00009 <span class="comment"> Copyright (c) Insight Software Consortium. All rights reserved.</span> <a name="l00010"></a>00010 <span class="comment"> See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.</span> <a name="l00011"></a>00011 <span class="comment"></span> <a name="l00012"></a>00012 <span class="comment"> This software is distributed WITHOUT ANY WARRANTY; without even </span> <a name="l00013"></a>00013 <span class="comment"> the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR </span> <a name="l00014"></a>00014 <span class="comment"> PURPOSE. See the above copyright notices for more information.</span> <a name="l00015"></a>00015 <span class="comment"></span> <a name="l00016"></a>00016 <span class="comment">=========================================================================*/</span> <a name="l00017"></a>00017 <span class="preprocessor">#ifndef __itkGreyLevelCooccurrenceMatrixTextureCoefficientsCalculator_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkGreyLevelCooccurrenceMatrixTextureCoefficientsCalculator_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkHistogram_8h.html">itkHistogram.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkMacro_8h.html">itkMacro.h</a>"</span> <a name="l00022"></a>00022 <a name="l00023"></a>00023 <span class="keyword">namespace </span>itk { <a name="l00024"></a>00024 <span class="keyword">namespace </span>Statistics { <a name="l00025"></a>00025 <a name="l00098"></a><a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b4">00098</a> <span class="keyword">enum</span> <a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b4">TextureFeatureName</a> { <a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b471211215dca071b28c737ba688393c4d">Energy</a>, <a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b446f9b906126054d688b1cf479b4484e7">Entropy</a>, <a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b45a78966112b3b5fbd76352681cede49f">Correlation</a>, <a name="l00099"></a><a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b462b1cb2544396b2113deda1aa629fb3a">00099</a> <a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b462b1cb2544396b2113deda1aa629fb3a">InverseDifferenceMoment</a>, <a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b45920462c43bc231d33cff00830182de1">Inertia</a>, <a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b42079f16a7bdf546944f5644bd220fbb0">ClusterShade</a>, <a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b4b4c73123c87e05ee3e19ca187507cf2f">ClusterProminence</a>, <a name="l00100"></a><a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b4e23819de2f6b82c9e7cb751af3aec04d">00100</a> <a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b4e23819de2f6b82c9e7cb751af3aec04d">HaralickCorrelation</a> }; <a name="l00101"></a>00101 <a name="l00102"></a>00102 <span class="keyword">template</span>< <span class="keyword">class</span> THistogram > <a name="l00103"></a><a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html">00103</a> <span class="keyword">class </span><a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html" title="This class computes texture feature coefficients from a grey level co-occurrence...">GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator</a> : <span class="keyword">public</span> <a class="code" href="classitk_1_1Object.html" title="Base class for most itk classes.">Object</a> <a name="l00104"></a>00104 { <a name="l00105"></a>00105 <span class="keyword">public</span>: <a name="l00107"></a><a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#a3a38efaaeb10f05a82c62a7fe6638f8">00107</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html" title="This class computes texture feature coefficients from a grey level co-occurrence...">GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator</a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>; <a name="l00108"></a><a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#2e67148b0ae2aeb019141b4e7280d511">00108</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Object.html" title="Base class for most itk classes.">Object</a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Superclass</a>; <a name="l00109"></a><a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#84903debeb342efc94d21952bbf9a3e3">00109</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer<Self></a> <a class="code" href="classitk_1_1SmartPointer.html">Pointer</a>; <a name="l00110"></a><a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#386fab59f9ffd49ba72e6dd2159749eb">00110</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer<const Self></a> <a class="code" href="classitk_1_1SmartPointer.html">ConstPointer</a>; <a name="l00111"></a>00111 <a name="l00113"></a>00113 <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html" title="This class computes texture feature coefficients from a grey level co-occurrence...">GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator</a>, <a class="code" href="classitk_1_1Object.html" title="Base class for most itk classes.">Object</a>); <a name="l00114"></a>00114 <a name="l00116"></a><a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#1e139ce6f3cff4136d24ed561bb3c1dd">00116</a> <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>) ; <a name="l00117"></a>00117 <a name="l00118"></a>00118 <span class="keyword">typedef</span> THistogram <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#1e139ce6f3cff4136d24ed561bb3c1dd">HistogramType</a>; <a name="l00119"></a><a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#2dc426ad24bce401aeff929fc5b21813">00119</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">HistogramType::Pointer</a> <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#2dc426ad24bce401aeff929fc5b21813">HistogramPointer</a>; <a name="l00120"></a><a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#d57ac360d00967489053b0fcb408a1fd">00120</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#68fafcc6909430ccd70cbc4aeee0107c">HistogramType::ConstPointer</a> <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#d57ac360d00967489053b0fcb408a1fd">HistogramConstPointer</a>; <a name="l00121"></a><a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#a8895eeae12f82b7b670b36179b42af2">00121</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> HistogramType::MeasurementType <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#a8895eeae12f82b7b670b36179b42af2">MeasurementType</a>; <a name="l00122"></a><a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#f3b178e02f27d3d83e6bddaca94057be">00122</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> HistogramType::MeasurementVectorType <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#f3b178e02f27d3d83e6bddaca94057be">MeasurementVectorType</a>; <a name="l00123"></a><a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#0b8cff413cc9071126db272faa0840b9">00123</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">HistogramType::IndexType</a> <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#0b8cff413cc9071126db272faa0840b9">IndexType</a>; <a name="l00124"></a><a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#299cd0d5951403250609cf533848ba5f">00124</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> HistogramType::FrequencyType <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#299cd0d5951403250609cf533848ba5f">FrequencyType</a>; <a name="l00125"></a>00125 <a name="l00127"></a>00127 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#a4c9664447f0ef09f20d67b796dceb0c">Compute</a>( <span class="keywordtype">void</span> ); <a name="l00128"></a>00128 <a name="l00130"></a>00130 <a class="code" href="itkMacro_8h.html#b950b763422e5059348e6178e2a5f425">itkSetObjectMacro</a>( <a class="code" href="classitk_1_1Statistics_1_1Histogram.html" title="This class stores measurement vectors in the context of n-dimensional histogram.">Histogram</a>, <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#1e139ce6f3cff4136d24ed561bb3c1dd">HistogramType</a> ); <a name="l00131"></a>00131 <a class="code" href="itkMacro_8h.html#f6bef9ee7e4c077b96a08848ed4e7660">itkGetObjectMacro</a>( <a class="code" href="classitk_1_1Statistics_1_1Histogram.html" title="This class stores measurement vectors in the context of n-dimensional histogram.">Histogram</a>, <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#1e139ce6f3cff4136d24ed561bb3c1dd">HistogramType</a> ); <a name="l00133"></a>00133 <a name="l00137"></a>00137 <span class="keywordtype">double</span> <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#9b2bb1acb68920a39c86487e2b7f415f">GetFeature</a>(<a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b4">TextureFeatureName</a> feature); <a name="l00138"></a>00138 <a name="l00139"></a>00139 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(<a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b471211215dca071b28c737ba688393c4d">Energy</a>, <span class="keywordtype">double</span>); <a name="l00140"></a>00140 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(<a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b446f9b906126054d688b1cf479b4484e7">Entropy</a>, <span class="keywordtype">double</span>); <a name="l00141"></a>00141 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(<a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b45a78966112b3b5fbd76352681cede49f">Correlation</a>, <span class="keywordtype">double</span>); <a name="l00142"></a>00142 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(<a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b462b1cb2544396b2113deda1aa629fb3a">InverseDifferenceMoment</a>, <span class="keywordtype">double</span>); <a name="l00143"></a>00143 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(<a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b45920462c43bc231d33cff00830182de1">Inertia</a>, <span class="keywordtype">double</span>); <a name="l00144"></a>00144 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(<a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b42079f16a7bdf546944f5644bd220fbb0">ClusterShade</a>, <span class="keywordtype">double</span>); <a name="l00145"></a>00145 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(<a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b4b4c73123c87e05ee3e19ca187507cf2f">ClusterProminence</a>, <span class="keywordtype">double</span>); <a name="l00146"></a>00146 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(<a class="code" href="namespaceitk_1_1Statistics.html#85ef4c19b7197649913814c0ee8165b4e23819de2f6b82c9e7cb751af3aec04d">HaralickCorrelation</a>, <span class="keywordtype">double</span>); <a name="l00147"></a>00147 <a name="l00148"></a>00148 <span class="keyword">protected</span>: <a name="l00149"></a><a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#5ffb28f319bef045df5f6f1ab3f16b60">00149</a> <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#5ffb28f319bef045df5f6f1ab3f16b60">GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator</a>() {}; <a name="l00150"></a><a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#46fe9ad12a428b12210fe5d6a9fb575d">00150</a> <span class="keyword">virtual</span> <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#46fe9ad12a428b12210fe5d6a9fb575d">~GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator</a>() {}; <a name="l00151"></a>00151 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#3b353ff6c73113d6b1a9f951e2c9fdc7">PrintSelf</a>(std::ostream& os, <a class="code" href="classitk_1_1Indent.html" title="Control indentation during Print() invocation.">Indent</a> indent) <span class="keyword">const</span>; <a name="l00152"></a>00152 <a name="l00153"></a>00153 <span class="keyword">private</span>: <a name="l00154"></a>00154 <a class="code" href="classitk_1_1Statistics_1_1GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.html#2dc426ad24bce401aeff929fc5b21813">HistogramPointer</a> m_Histogram; <a name="l00155"></a>00155 <span class="keywordtype">double</span> m_Energy, m_Entropy, m_Correlation, m_InverseDifferenceMoment, <a name="l00156"></a>00156 m_Inertia, m_ClusterShade, m_ClusterProminence, m_HaralickCorrelation; <a name="l00157"></a>00157 <span class="keywordtype">void</span> NormalizeHistogram(<span class="keywordtype">void</span>); <a name="l00158"></a>00158 <span class="keywordtype">void</span> ComputeMeansAndVariances( <span class="keywordtype">double</span> &pixelMean, <span class="keywordtype">double</span> &marginalMean, <a name="l00159"></a>00159 <span class="keywordtype">double</span> &marginalDevSquared, <span class="keywordtype">double</span> &pixelVariance ); <a name="l00160"></a>00160 }; <a name="l00161"></a>00161 <a name="l00162"></a>00162 <a name="l00163"></a>00163 } <span class="comment">// end of namespace Statistics </span> <a name="l00164"></a>00164 } <span class="comment">// end of namespace itk </span> <a name="l00165"></a>00165 <a name="l00166"></a>00166 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span> <a name="l00167"></a>00167 <span class="preprocessor"></span><span class="preprocessor">#include "itkGreyLevelCooccurrenceMatrixTextureCoefficientsCalculator.txx"</span> <a name="l00168"></a>00168 <span class="preprocessor">#endif</span> <a name="l00169"></a>00169 <span class="preprocessor"></span> <a name="l00170"></a>00170 <span class="preprocessor">#endif</span> <a name="l00171"></a>00171 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Thu May 7 22:55:01 2009 for ITK by <a href="http://www.stack.nl/~dimitri/doxygen/index.html"> <img src="http://www.stack.nl/~dimitri/doxygen/doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53> </a> 1.5.9 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2000</small></address> </body> </html>