zxhproj v 2.2
zxhproj

zxhMetricConstDiscretePathBase Class Reference

can input multiple images for registration m_pImageTest(Ref) are the same, and used as coordinate reference, such as when define FFD m_imgRef are dT(m_pImageRef)^{-n} to implement methods in drived classes SetConstDiscretePathMetricBase; GetValue/ComputeConstant (UpdateImage); SetImage; SetMaskImage; SetFFDMaskImage (ffd) for registration using this metric, there should not involve transformation concatenation (e.g. for diffeomorphism) More...

#include <zxhMetricConstDiscretePathBase.h>

Inheritance diagram for zxhMetricConstDiscretePathBase:
zxhMetricCCFFD2ConstDiscretePath zxhMetricMIFFD2ConstDiscretePath zxhMetricPhaseLocalAffinesConstDiscretePath zxhMetricPhaseLocalMatrixConstDiscretePath

List of all members.

Public Member Functions

 zxhMetricConstDiscretePathBase (void)
 constructor
 ~zxhMetricConstDiscretePathBase (void)
virtual std::string GetMetricType ()
virtual
zxhMetricConstDiscretePathBase
Clone (zxhMetricConstDiscretePathBase *&pRet)
virtual void SetNumberOfConstDiscretePathStep (int n)
virtual int GetNumberOfConstDiscretePathStep () const
virtual void SetStepsForUpdatingRefImage (int n)
virtual int GetStepsForUpdatingRefImage () const
virtual void SetIsoSpacingUpdatedRefImage (float f)
virtual float GetIsoSpacingUpdatedRefImage () const
virtual bool UpdateAndSetImage ()

Protected Member Functions

void GetUpdateImageSpacingSizeInfo (float spacing[], int size[], zxhImageInfo &imageinfo) const
bool NeedUpdateImage ()
virtual bool UpdateImage ()
virtual void SetUpdatedImages ()=0
virtual void SetConstDiscretePathMetricBase ()=0
 this function is to remind of this setting in derived class

Protected Attributes

zxhMetricBasem_pConstDiscretePathMetricBase
 to this in derived class, none-clone-ible
int m_nNumberOfConstDiscretePathStep
zxhImageDatam_pImageRefOrigin [ZXH_CONSTDISCRETEPATH_NUMREFIMAGE]
zxhTransformBasem_pConstDiscretePathTransform
 pointer to the estimated const discrete path transformation; use m_pConstDiscretePathMericBase->GetTranform() is m_pConstDiscretePathTransform==0
int m_nStepsForUpdatingRefImage
int m_iTimesCallingUpdatingRefImage
zxhImageData m_imgRefUpdated [ZXH_CONSTDISCRETEPATH_NUMREFIMAGE]
float m_fIsoSpacingUpdatedRefImage

Detailed Description

can input multiple images for registration m_pImageTest(Ref) are the same, and used as coordinate reference, such as when define FFD m_imgRef are dT(m_pImageRef)^{-n} to implement methods in drived classes SetConstDiscretePathMetricBase; GetValue/ComputeConstant (UpdateImage); SetImage; SetMaskImage; SetFFDMaskImage (ffd) for registration using this metric, there should not involve transformation concatenation (e.g. for diffeomorphism)


Constructor & Destructor Documentation

zxhMetricConstDiscretePathBase::~zxhMetricConstDiscretePathBase ( void  )
Returns:

Member Function Documentation

zxhMetricConstDiscretePathBase * zxhMetricConstDiscretePathBase::Clone ( zxhMetricConstDiscretePathBase *&  pRet) [virtual]
Returns:
bool zxhMetricConstDiscretePathBase::UpdateAndSetImage ( ) [virtual]

return whether update (need called in NeedUpdateImage) 1. update ref image; 2. set images to metricbase and transformation

bool zxhMetricConstDiscretePathBase::UpdateImage ( ) [protected, virtual]

return whether update (need called in NeedUpdateImage) 1. update ref image;

Reimplemented in zxhMetricPhaseLocalMatrixConstDiscretePath.


Member Data Documentation

mm in registration use Default: 0 (original image's), negative (times of sampling interval), positive (isotropic spacing mm)

zxhImageData zxhMetricConstDiscretePathBase::m_imgRefUpdated[ZXH_CONSTDISCRETEPATH_NUMREFIMAGE] [protected]

updated ref image [0] and ref mask imge [1], else backup

compose metricbase::transform m_nNumberOfConstDiscretePathStep times get the transformation from original test to ref images metricbase::transform for optimizing and (metricbase::transform)^{m_nNumberOfConstDiscretePathStep-1} for updating ref images

zxhImageData* zxhMetricConstDiscretePathBase::m_pImageRefOrigin[ZXH_CONSTDISCRETEPATH_NUMREFIMAGE] [protected]

pointer to original ref image [0] and mask image [1], else backup need to reimplement SetImage and SetMaskImage in derived class


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs