<!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: itkImageClassifierBase.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_16b0d2d22c345042f35cebae66b36010.html">Algorithms</a> </div> <div class="contents"> <h1>itkImageClassifierBase.h</h1><a href="itkImageClassifierBase_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: itkImageClassifierBase.h,v $</span> <a name="l00005"></a>00005 <span class="comment"> Language: C++</span> <a name="l00006"></a>00006 <span class="comment"> Date: $Date: 2009-01-24 20:02:54 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.8 $</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 __itkImageClassifierBase_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkImageClassifierBase_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkClassifierBase_8h.html">itkClassifierBase.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkExceptionObject_8h.html">itkExceptionObject.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkImageRegionIterator_8h.html">itkImageRegionIterator.h</a>"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkImageRegionConstIterator_8h.html">itkImageRegionConstIterator.h</a>"</span> <a name="l00024"></a>00024 <a name="l00025"></a>00025 <span class="keyword">namespace </span>itk <a name="l00026"></a>00026 { <a name="l00027"></a>00027 <a name="l00069"></a>00069 <span class="keyword">template</span> <<span class="keyword">class </span>TInputImage, <a name="l00070"></a>00070 <span class="keyword">class </span>TClassifiedImage> <a name="l00071"></a><a class="code" href="classitk_1_1ImageClassifierBase.html">00071</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1ImageClassifierBase.html" title="Base class for ImageClassifierBase object.">ImageClassifierBase</a>: <a name="l00072"></a>00072 <span class="keyword">public</span> <a class="code" href="classitk_1_1ClassifierBase.html" title="Base class for classifier object.">ClassifierBase</a><TInputImage> <a name="l00073"></a>00073 { <a name="l00074"></a>00074 <span class="keyword">public</span>: <a name="l00076"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#d3c00f3907eceb5af6613d2c9b605d66">00076</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImageClassifierBase.html" title="Base class for ImageClassifierBase object.">ImageClassifierBase</a> <a class="code" href="classitk_1_1ImageClassifierBase.html" title="Base class for ImageClassifierBase object.">Self</a>; <a name="l00077"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#fdb5ee829608118dc20b0af6036459eb">00077</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ClassifierBase.html">ClassifierBase<TInputImage></a> <a class="code" href="classitk_1_1ClassifierBase.html">Superclass</a>; <a name="l00078"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#842c5ee2415aa9eb8aefbf60464a2882">00078</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="l00079"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#eb8f0c522a43d270f5621d0490b8589e">00079</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="l00080"></a>00080 <a name="l00082"></a>00082 <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1ImageClassifierBase.html" title="Base class for ImageClassifierBase object.">Self</a>); <a name="l00083"></a>00083 <a name="l00085"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#1ea5ed46079b701d24a4cfeea6e4f845">00085</a> <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1ImageClassifierBase.html" title="Base class for ImageClassifierBase object.">ImageClassifierBase</a>,<a class="code" href="classitk_1_1ClassifierBase.html" title="Base class for classifier object.">ClassifierBase</a>); <a name="l00086"></a>00086 <a name="l00088"></a>00088 <span class="keyword">typedef</span> TInputImage <a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">InputImageType</a>; <a name="l00089"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#aef068c65f64545a0b0bd9a1ac1d4ca7">00089</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">TInputImage::Pointer</a> InputImagePointer; <a name="l00090"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#152f83771d5b06b8406fb1c6c3bdad6b">00090</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#68fafcc6909430ccd70cbc4aeee0107c">TInputImage::ConstPointer</a> InputImageConstPointer; <a name="l00091"></a>00091 <a name="l00093"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#f13165010278ada9d67d49293f3d6329">00093</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">TClassifiedImage::Pointer</a> ClassifiedImagePointer; <a name="l00094"></a>00094 <a name="l00098"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#79d487dfdc1b6575cbe3d085f094104e">00098</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::MeasurementVectorType MeasurementVectorType; <a name="l00099"></a>00099 <a name="l00101"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#f4423e8c277e046c10719b0151a02f2f">00101</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Statistics_1_1MembershipFunctionBase.html" title="MembershipFunctionBase class declares common interfaces for membership functions...">Superclass::MembershipFunctionType</a> <a class="code" href="classitk_1_1Statistics_1_1MembershipFunctionBase.html" title="MembershipFunctionBase class declares common interfaces for membership functions...">MembershipFunctionType</a>; <a name="l00102"></a>00102 <a name="l00103"></a>00103 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">Superclass::MembershipFunctionPointer</a> <a name="l00104"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#518ddcd6ee24c026bf2641b0af313269">00104</a> <a class="code" href="classitk_1_1SmartPointer.html">MembershipFunctionPointer</a>; <a name="l00105"></a>00105 <a name="l00106"></a>00106 <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::MembershipFunctionPointerVector <a name="l00107"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#331fb413eb73fd18534e079557254532">00107</a> MembershipFunctionPointerVector; <a name="l00108"></a>00108 <a name="l00110"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#7b1bbb812e9041e936c9f6dd41aa93fc">00110</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1DecisionRuleBase.html" title="Base class that allows the setting of usage of differnt decision rules used in classification...">Superclass::DecisionRuleType</a> <a class="code" href="classitk_1_1DecisionRuleBase.html" title="Base class that allows the setting of usage of differnt decision rules used in classification...">DecisionRuleType</a>; <a name="l00111"></a>00111 <a name="l00113"></a>00113 <a class="code" href="itkMacro_8h.html#1e680e0abf41fd9bbefa2829ea3d1e6a">itkSetConstObjectMacro</a>(InputImage,<a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">InputImageType</a> ); <a name="l00114"></a>00114 <a name="l00116"></a>00116 <a class="code" href="itkMacro_8h.html#d11f8adb47609be2b4b58948904f8a7c">itkGetConstObjectMacro</a>(InputImage,<a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">InputImageType</a>); <a name="l00117"></a>00117 <a name="l00119"></a>00119 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(ClassifiedImage,ClassifiedImagePointer); <a name="l00120"></a>00120 <a name="l00122"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#726739527ecbf83a943e5a322bea64ae">00122</a> <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(ClassifiedImage,ClassifiedImagePointer); <a name="l00123"></a>00123 <a name="l00126"></a>00126 <span class="keyword">typedef</span> <span class="keyword">typename</span> TInputImage::PixelType InputImagePixelType; <a name="l00127"></a>00127 <a name="l00130"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#4d31b98b78a9fed5ff68a2e9fd8e2d94">00130</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TClassifiedImage::PixelType ClassifiedImagePixelType; <a name="l00131"></a>00131 <a name="l00133"></a>00133 <span class="keyword">typedef</span> <a name="l00134"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#e7f67e60d7bc697c0d5707c9b9a66f81">00134</a> <a class="code" href="classitk_1_1ImageRegionConstIterator.html" title="A multi-dimensional iterator templated over image type that walks a region of pixels...">ImageRegionConstIterator< TInputImage ></a> <a class="code" href="classitk_1_1ImageRegionConstIterator.html" title="A multi-dimensional iterator templated over image type that walks a region of pixels...">InputImageConstIterator</a>; <a name="l00135"></a>00135 <span class="keyword">typedef</span> <a name="l00136"></a><a class="code" href="classitk_1_1ImageClassifierBase.html#8215c098fdd2ebdd8fab5be9098e407f">00136</a> <a class="code" href="classitk_1_1ImageRegionIterator.html" title="A multi-dimensional iterator templated over image type that walks a region of pixels...">ImageRegionIterator< TClassifiedImage ></a> <a class="code" href="classitk_1_1ImageRegionIterator.html" title="A multi-dimensional iterator templated over image type that walks a region of pixels...">ClassifiedImageIterator</a>; <a name="l00137"></a>00137 <a name="l00139"></a>00139 <span class="keyword">const</span> std::vector<double> & <a name="l00140"></a>00140 GetPixelMembershipValue(<span class="keyword">const</span> InputImagePixelType inputImagePixel ); <a name="l00141"></a>00141 <a name="l00142"></a>00142 <a name="l00143"></a>00143 <span class="keyword">protected</span>: <a name="l00144"></a>00144 <a class="code" href="classitk_1_1ImageClassifierBase.html" title="Base class for ImageClassifierBase object.">ImageClassifierBase</a>(); <a name="l00145"></a>00145 ~<a class="code" href="classitk_1_1ImageClassifierBase.html" title="Base class for ImageClassifierBase object.">ImageClassifierBase</a>(); <a name="l00146"></a>00146 <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#920ae03048a5ad715d803ca2e92b52de">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="l00147"></a>00147 <a name="l00149"></a>00149 <span class="keywordtype">void</span> Allocate(); <a name="l00150"></a>00150 <a name="l00152"></a>00152 <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#f75a5945cdd8315676941024a0b8c1e9">GenerateData</a>(); <a name="l00153"></a>00153 <a name="l00154"></a>00154 <span class="keyword">private</span>: <a name="l00155"></a>00155 <a class="code" href="classitk_1_1ImageClassifierBase.html" title="Base class for ImageClassifierBase object.">ImageClassifierBase</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1ImageClassifierBase.html" title="Base class for ImageClassifierBase object.">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00156"></a>00156 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classitk_1_1ImageClassifierBase.html" title="Base class for ImageClassifierBase object.">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00157"></a>00157 <a name="l00158"></a>00158 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">TInputImage::SizeType</a> InputImageSizeType; <a name="l00159"></a>00159 <a name="l00160"></a>00160 InputImageConstPointer m_InputImage; <a name="l00161"></a>00161 ClassifiedImagePointer m_ClassifiedImage; <a name="l00162"></a>00162 std::vector< double > m_PixelMembershipValue; <a name="l00163"></a>00163 <a name="l00165"></a>00165 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Classify(); <a name="l00166"></a>00166 <a name="l00167"></a>00167 }; <span class="comment">// class ImageClassifierBase</span> <a name="l00168"></a>00168 <a name="l00169"></a>00169 } <span class="comment">// namespace itk</span> <a name="l00170"></a>00170 <a name="l00171"></a>00171 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span> <a name="l00172"></a>00172 <span class="preprocessor"></span><span class="preprocessor">#include "itkImageClassifierBase.txx"</span> <a name="l00173"></a>00173 <span class="preprocessor">#endif</span> <a name="l00174"></a>00174 <span class="preprocessor"></span> <a name="l00175"></a>00175 <span class="preprocessor">#endif</span> <a name="l00176"></a>00176 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Thu May 7 23:01:35 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>