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

itkDensityFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkDensityFunction.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/07/26 15:54:54 $
00007   Version:   $Revision: 1.9 $
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 #ifndef __itkDensityFunction_h
00018 #define __itkDensityFunction_h
00019 
00020 #include "itkMembershipFunctionBase.h"
00021 #include "itkMeasurementVectorTraits.h"
00022 
00023 namespace itk{ 
00024 namespace Statistics{
00025 
00035 template< class TMeasurementVector >
00036 class ITK_EXPORT DensityFunction :
00037     public MembershipFunctionBase< TMeasurementVector >
00038 {
00039 public:
00041   typedef DensityFunction Self;
00042   typedef MembershipFunctionBase< TMeasurementVector > Superclass ;
00043   typedef SmartPointer<Self> Pointer;
00044   typedef SmartPointer<const Self> ConstPointer;
00045 
00047   itkTypeMacro(DensityFunction, MembershipFunctionBase);
00048 
00050   typedef unsigned int MeasurementVectorSizeType;
00051   
00054   virtual double Evaluate(const TMeasurementVector &measurement) const = 0 ;
00055   
00061   itkSetMacro( MeasurementVectorSize, MeasurementVectorSizeType );
00062   itkGetConstMacro( MeasurementVectorSize, MeasurementVectorSizeType );
00063   
00064 protected:
00065   DensityFunction(void): m_MeasurementVectorSize( 0 ) {}
00066   virtual ~DensityFunction(void) {}
00067 
00068   void PrintSelf(std::ostream& os, Indent indent) const
00069     { 
00070     Superclass::PrintSelf(os,indent); 
00071     
00072     os << indent << "MeasurementVectorSize: " 
00073       << m_MeasurementVectorSize << std::endl;
00074     }
00075 
00076 private:
00077   MeasurementVectorSizeType m_MeasurementVectorSize;
00078 } ; // end of class
00079 
00080 } // end of namespace Statistics
00081 } // end namespace itk
00082 
00083 #endif
00084 
00085 
00086 
00087 
00088 

Generated at Wed May 24 23:02:56 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000