zxhproj v 2.2
zxhproj
|
#include <zxhMetricCCFFD2.h>
Public Member Functions | |
zxhMetricCCFFD2 (void) | |
constructor | |
virtual | ~zxhMetricCCFFD2 (void) |
virtual std::string | GetMetricType () |
GetMetricType()=0. | |
virtual zxhMetricBase * | Clone (zxhMetricBase *&pRet) |
virtual int | GetValue (zxhlfloat &fValue) |
virtual int | ComputeConstanceForFFDGradient () |
Protected Member Functions | |
virtual void | SetFFDMetricBase () |
this function is to remind of setting m_pMetricBase in non-abstract derived class | |
virtual int | ComputeConstanceForGradient () |
virtual bool | EvaluateAllPixelOnTargetForceForMetric () |
1. call EvaluateOnPixelSource2TargetForce to compute each voxel and minus the force direction | |
virtual void | EvaluateOnPixelTarget2SourceForce (float *afForce, const float *gridCoTest, const float *gridCoRef) |
Protected Attributes | |
int | m_nc_Samples |
zxhlfloat | m_fc_SumTest |
zxhlfloat | m_fc_SumRef |
zxhlfloat | m_fc_SumTestSquare |
zxhlfloat | m_fc_SumRefSquare |
zxhlfloat | m_fc_SumTestRef |
zxhlfloat | m_fc_Numerator |
zxhlfloat | m_fc_Denominator |
zxhlfloat | m_fc_DenoTest |
zxhlfloat | m_fc_DenoRef |
zxhlfloat | m_fc_SquareCC |
zxhlfloat | m_fc_minusSSD |
zxhlfloat | m_fc_FactorTest |
zxhlfloat | m_fc_FactorRef |
use square of correlation coefficient = ( SumAB - SumA*SumB/N )^2 /( (SumA2 - SumA*SumA/N)*(SumB2-SumB*SumB/N) ) ; where d/dT in zxhMetricCCFFD2_derivativeCC.pdf;
zxhMetricCCFFD2::~zxhMetricCCFFD2 | ( | void | ) | [virtual] |
zxhMetricBase * zxhMetricCCFFD2::Clone | ( | zxhMetricBase *& | pRet | ) | [virtual] |
virtual int zxhMetricCCFFD2::ComputeConstanceForFFDGradient | ( | ) | [inline, virtual] |
Call 1. ComputeConstanceForGradient to compute the constant from CC 2. zxhMetricFFD2Base::ComputeConstanceForFFDGradient which calls EvaluateAllPixelOnTargetForceForMetric
Reimplemented from zxhMetricFFD2Base.
Reimplemented in zxhMetricCCFFD2ConstDiscretePath.
bool zxhMetricCCFFD2::EvaluateAllPixelOnTargetForceForMetric | ( | ) | [protected, virtual] |
1. call EvaluateOnPixelSource2TargetForce to compute each voxel and minus the force direction
1. call EvaluateOnPixelSource2TargetForce to compute each voxel and minus the force direction 2. add weight info from m_pWeightModelTest(Ref)
Implements zxhMetricFFD2Base.
int zxhMetricCCFFD2::GetValue | ( | zxhlfloat & | fValue | ) | [virtual] |
Reimplemented from zxhMetricCC.