00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkDensityFunction.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/12/09 16:53:08 $ 00007 Version: $Revision: 1.8 $ 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 typedef SmartPointer<const Self> ConstPointer; 00042 00044 itkTypeMacro(DensityFunction, MembershipFunctionBase); 00045 00048 virtual double Evaluate(const TMeasurementVector &measurement) const = 0 ; 00049 00050 protected: 00051 DensityFunction(void) {} 00052 virtual ~DensityFunction(void) {} 00053 00054 void PrintSelf(std::ostream& os, Indent indent) const 00055 { Superclass::PrintSelf(os,indent) ; } 00056 } ; // end of class 00057 00058 } // end of namespace Statistics 00059 } // end namespace itk 00060 00061 #endif 00062 00063 00064 00065 00066