00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkDensityFunction.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009-03-04 15:23:46 $ 00007 Version: $Revision: 1.11 $ 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 00056 protected: 00057 DensityFunction() {} 00058 virtual ~DensityFunction() {} 00059 00060 void PrintSelf(std::ostream& os, Indent indent) const 00061 { 00062 Superclass::PrintSelf(os,indent); 00063 } 00064 00065 private: 00066 }; // end of class 00067 00068 } // end of namespace Statistics 00069 } // end namespace itk 00070 00071 #endif 00072