Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkMeanCalculator.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkMeanCalculator.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/12/09 16:53:08 $ 00007 Version: $Revision: 1.10 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef __itkMeanCalculator_h 00019 #define __itkMeanCalculator_h 00020 00021 #include "itkSampleAlgorithmBase.h" 00022 00023 #include "itkVector.h" 00024 00025 namespace itk{ 00026 namespace Statistics{ 00027 00040 template< class TSample > 00041 class MeanCalculator : 00042 public SampleAlgorithmBase< TSample > 00043 { 00044 public: 00046 typedef MeanCalculator Self; 00047 typedef Object Superclass ; 00048 typedef SmartPointer<Self> Pointer; 00049 typedef SmartPointer<const Self> ConstPointer; 00050 00052 itkTypeMacro(MeanCalculator, Object); 00053 itkNewMacro(Self) ; 00054 00055 itkStaticConstMacro(MeasurementVectorSize, unsigned int, 00056 TSample::MeasurementVectorSize); 00057 00059 typedef Vector< double, 00060 itkGetStaticConstMacro(MeasurementVectorSize) > OutputType ; 00061 00063 OutputType* GetOutput() ; 00064 00065 protected: 00066 MeanCalculator() ; 00067 virtual ~MeanCalculator() {} 00068 void PrintSelf(std::ostream& os, Indent indent) const; 00069 00071 void GenerateData() ; 00072 00073 private: 00075 OutputType m_Output ; 00076 } ; // end of class 00077 00078 } // end of namespace Statistics 00079 } // end of namespace itk 00080 00081 #ifndef ITK_MANUAL_INSTANTIATION 00082 #include "itkMeanCalculator.txx" 00083 #endif 00084 00085 #endif 00086

Generated at Sun Apr 1 02:37:19 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000