zxhproj v 2.2
zxhproj
|
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>
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 | |
zxhMetricBase * | m_pConstDiscretePathMetricBase |
to this in derived class, none-clone-ible | |
int | m_nNumberOfConstDiscretePathStep |
zxhImageData * | m_pImageRefOrigin [ZXH_CONSTDISCRETEPATH_NUMREFIMAGE] |
zxhTransformBase * | m_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 |
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)
zxhMetricConstDiscretePathBase::~zxhMetricConstDiscretePathBase | ( | void | ) |
zxhMetricConstDiscretePathBase * zxhMetricConstDiscretePathBase::Clone | ( | zxhMetricConstDiscretePathBase *& | pRet | ) | [virtual] |
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.
float zxhMetricConstDiscretePathBase::m_fIsoSpacingUpdatedRefImage [protected] |
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
int zxhMetricConstDiscretePathBase::m_nNumberOfConstDiscretePathStep [protected] |
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