00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkDensityFunction.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:44 $ 00007 Version: $Revision: 1.7 $ 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 00022 namespace itk{ 00023 namespace Statistics{ 00024 00032 template< class TMeasurementVector > 00033 class ITK_EXPORT DensityFunction : 00034 public MembershipFunctionBase< TMeasurementVector > 00035 { 00036 public: 00038 typedef DensityFunction Self; 00039 typedef MembershipFunctionBase< TMeasurementVector > Superclass ; 00040 typedef SmartPointer<Self> Pointer; 00041 00043 itkTypeMacro(DensityFunction, MembershipFunctionBase); 00044 00047 virtual double Evaluate(const TMeasurementVector &measurement) const = 0 ; 00048 00049 protected: 00050 DensityFunction(void) {} 00051 virtual ~DensityFunction(void) {} 00052 00053 void PrintSelf(std::ostream& os, Indent indent) const 00054 { Superclass::PrintSelf(os,indent) ; } 00055 } ; // end of class 00056 00057 } // end of namespace Statistics 00058 } // end namespace itk 00059 00060 #endif 00061 00062 00063 00064 00065