zxhproj v 2.2
zxhproj

zxhMetricRMS.h

00001 
00002 /*=========================================================================
00003 
00004   Program:   ZXH Registration Software
00005   Author:    Xiahai Zhuang
00006   Module:    $RCSfle: zxhMetricRMS.h    $
00007   Language:  C++
00008   Date:      $Date: From  2004-01 $
00009   Version:   $Revision: 1.0, 2.0 $
00010 
00011 =========================================================================*/
00012 
00013 #ifndef zxhMetricRMS_h
00014 #define zxhMetricRMS_h
00015 
00016 #include "zxhMetricFFDBase.h"
00017 #include "zxhMetricBase.h" 
00018 
00025 
00026 class zxhMetricRMS:
00027      public zxhMetricFFDBase, public zxhMetricBase
00028 {
00029 public:
00031     zxhMetricRMS(void);
00033     virtual ~zxhMetricRMS(void);
00034 
00036     virtual std::string GetMetricType() {return "_RMS_"+zxhMetricFFDBase::GetMetricType(); } ;
00037 
00039     virtual zxhMetricBase*  Clone(zxhMetricBase*&pRet);
00041     virtual int GetValue(zxhlfloat&fValue);
00043     
00045     virtual int ComputeConstanceForFFDGradient()        { return 1;} ;
00046 
00048     virtual int GetValueByFFDGrid(zxhlfloat&fValue, int aiCtrPnt[ImageDimensionMax]); 
00049 
00050 protected:
00052     virtual void    SetFFDMetricBase()  {m_pMetricBase=this;};
00053 };
00054 typedef zxhMetricRMS zxhMetricRMSFFD ;
00055 
00056 
00057 
00058 #endif//zxhMetricRMS_h
00059 
00060 
 All Classes Namespaces Functions Variables Typedefs