frePrecisionSOMetric.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   F.R.E.E. - flexible registration evaluation engine
00004   Version:   v.1.0.0
00005   Date:      $Date: 2006/09/01 12:00:00 $
00006   Module:    $RCSfile: frePrecisionSOMetric.h,v $
00007   Language:  C++
00008 
00009 
00010 
00011   Copyright (c) 2007 Ralf o Floca (Department of Medical Informatics,
00012   Institute for Medical Biometry and Informatics, University of Heidelberg,
00013   Germany). All rights reserved.
00014   See FREECopyright.txt or http://www.mi.med.uni-hd.de/free/copyright.htm
00015   for details.
00016 
00017      This software is distributed WITHOUT ANY WARRANTY; without even 
00018      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00019      PURPOSE.  See the above copyright notices for more information.
00020 
00021 =========================================================================*/
00022 #ifndef __frePrecisionSOMetric_h
00023 #define __frePrecisionSOMetric_h
00024 
00025 #include "freSetupOptimizationMetric.h"
00026 
00027 namespace FREE
00028 {
00029 
00051 class ITK_EXPORT PrecisionSOMetric : public SetupOptimizationMetric
00052 {
00053 public:
00055   typedef PrecisionSOMetric              Self;
00056   typedef SetupOptimizationMetric        Superclass;
00057         typedef itk::SmartPointer<Self>        Pointer;
00058   typedef itk::SmartPointer<const Self>  ConstPointer;
00059 
00060   typedef Superclass::DecomposedMeasureType DecomposedMeasureType;
00061 
00063   itkTypeMacro( PrecisionSOMetric, SetupOptimizationMetric );
00064 
00065         itkNewMacro( Self );
00066  
00067   itkSetMacro( SampleSize, unsigned long);
00068   itkGetMacro( SampleSize, unsigned long);
00069 
00070   itkSetObjectMacro( EvaluationMetric, SetupOptimizationMetric);
00071   itkGetObjectMacro( EvaluationMetric, SetupOptimizationMetric);
00072 
00073   virtual void Initialize();
00074 
00075   virtual unsigned int GetNumberOfValues(void) const;
00076 
00077 protected:
00078   PrecisionSOMetric();
00079 
00080   virtual DecomposedMeasureType ComputeDecomposedValue( const ParametersType & parameters ) const;
00081 
00082   void EnlistInterimResultsToStatistic(const unsigned int iIndex,
00083                                        const DecomposedMeasureType& results,
00084                                        StatisticEntry& entry) const;
00085 
00086   void EnlistDictionaryEntries(StatisticDictionary& dictionary) const;
00087 
00088   mutable std::vector<DecomposedMeasureType> m_Measures;
00089 
00091   SetupOptimizationMetric::Pointer m_EvaluationMetric;
00092 
00093   unsigned long m_SampleSize;
00094 
00095 private:
00096   PrecisionSOMetric(const Self&); //purposely not implemented
00097   void operator=(const Self&); //purposely not implemented
00098 };
00099 
00100 } // end namespace FREE
00101 
00102 #endif
00103 
00104 
00105 

Generated at Sat Oct 13 17:07:02 2007 for f.r.e.e. - Flexible Registration and Evaluation Engine by doxygen 1.5.3 written by Dimitri van Heesch, © 1997-2000