zxhproj v 2.2
zxhproj

zxhMetricCCFFD2ConstDiscretePath.h

00001 
00002 /*=========================================================================
00003 
00004   Program:   ZXH Registration Software
00005   Author:    Xiahai Zhuang
00006   Module:    $RCSfle: zxhMetricCCFFD2ConstDiscretePath.h    $
00007   Language:  C++
00008   Date:      $Date: From  2011-01 $
00009   Version:   $Revision: 2.1.3 $
00010   revision:
00011 =========================================================================*/
00012 #ifndef zxhMetricCCFFD2ConstDiscretePath_h
00013 #define zxhMetricCCFFD2ConstDiscretePath_h
00014 
00015 #include "zxh.h"
00016 #include <time.h>
00017 #include "zxhMetricCCFFD2.h"
00018 #include "zxhMetricConstDiscretePathBase.h"
00019 #include "zxhTransformFields.h"
00020 #include <math.h>
00025 class zxhMetricCCFFD2ConstDiscretePath :    public zxhMetricCCFFD2, public zxhMetricConstDiscretePathBase // interface for FFD2
00026 {
00027 public:
00029     zxhMetricCCFFD2ConstDiscretePath(void);
00031     ~zxhMetricCCFFD2ConstDiscretePath(void);
00032 
00034     virtual std::string GetMetricType() {return zxhMetricCCFFD2::GetMetricType()+"_"+zxhMetricConstDiscretePathBase::GetMetricType(); } ;
00035 
00037     virtual zxhMetricBase* Clone( zxhMetricBase * & pRet ); 
00038 
00040     virtual int     ComputeConstanceForFFDGradient() ;
00041 
00043     virtual bool    SetImage(zxhImageData*pImageTest,zxhImageData*pImageRef)
00044     {   bool b=zxhMetricCCFFD2::SetImage( pImageTest,pImageRef ) ; m_pImageRefOrigin[0] = pImageRef ; return b;} ;
00046     virtual bool    SetMaskImage(zxhImageData*pMaskTest,zxhImageData*pMaskRef)
00047     {   bool b=zxhMetricCCFFD2::SetMaskImage( pMaskTest,pMaskRef ) ; m_pImageRefOrigin[1] = pMaskRef; return b;} ;
00048 protected:
00050     virtual void    SetConstDiscretePathMetricBase()                { m_pConstDiscretePathMetricBase = this;};
00052     virtual void    SetUpdatedImages() ;
00053 };
00054 
00055 #endif
00056 
00057 
00058 
00059 
 All Classes Namespaces Functions Variables Typedefs