00001 /*========================================================================= 00002 00003 Program: 3DMed 00004 Date: $Date: 2014-02-25 18:30:00 +0800 $ 00005 Version: $Version: 4.6.0 $ 00006 Copyright: MIPG, Institute of Automation, Chinese Academy of Sciences 00007 00008 =========================================================================*/ 00009 00010 00011 #ifndef __mitkNormalizedCorrelationMetric_h 00012 #define __mitkNormalizedCorrelationMetric_h 00013 00014 #include "mitkMetric.h" 00015 00016 00027 00028 class MITK_REGISTRATION_API mitkNormalizedCorrelationMetric : public mitkMetric 00029 { 00030 public: 00031 MITK_TYPE(mitkNormalizedCorrelationMetric, mitkMetric) 00032 virtual void PrintSelf(ostream &os); 00033 00037 mitkNormalizedCorrelationMetric(); 00038 00045 virtual bool GetSimilarity(const VectorParameterType & parameters, ScalarParameterType &similarity); 00046 00054 virtual bool GetSimilarityAndDerivative(const VectorParameterType & parameters, 00055 ScalarParameterType & similarity, 00056 VectorParameterType & derivative); 00057 00062 void SetSubtractMeanFlag(bool flag){ m_SubtractMean = flag;} 00063 00064 protected: 00065 virtual ~mitkNormalizedCorrelationMetric(); 00066 00067 bool m_SubtractMean; 00068 00069 private: 00070 mitkNormalizedCorrelationMetric(const mitkNormalizedCorrelationMetric&); 00071 void operator = (const mitkNormalizedCorrelationMetric&); 00072 00073 }; 00074 00075 00076 //#define DEFINED_mitkNormalizedCorrelationMetric 00077 00078 00079 00080 #endif 00081