#include "elxElastixBase.h"
#include "itkObject.h"
#include "itkObjectFactory.h"
#include "itkCommand.h"
#include "itkImage.h"
#include "itkImageFileReader.h"
#include "itkImageToImageMetric.h"
#include "elxRegistrationBase.h"
#include "elxFixedImagePyramidBase.h"
#include "elxMovingImagePyramidBase.h"
#include "elxInterpolatorBase.h"
#include "elxImageSamplerBase.h"
#include "elxMetricBase.h"
#include "elxOptimizerBase.h"
#include "elxResamplerBase.h"
#include "elxResampleInterpolatorBase.h"
#include "elxTransformBase.h"
#include "itkTimeProbe.h"
#include <sstream>
#include <fstream>
#include "elxElastixTemplate.hxx"
Go to the source code of this file.
◆ elxGetBaseMacro
#define elxGetBaseMacro |
( |
|
_name, |
|
|
|
_elxbasetype |
|
) |
| |
Value: virtual _elxbasetype * GetElx##_name##Base( void ) const \
{ \
return this->GetElx##_name##Base( 0 ); \
} \
_elxbasetype * GetElx##_name##Base( unsigned int idx ) const \
{ \
if( idx < this->GetNumberOf##_name##s() ) \
{ \
return dynamic_cast< _elxbasetype * >( \
this->Get##_name##Container()->ElementAt( idx ).GetPointer() ); \
} \
return 0; \
}
Macro that defines to functions. In the case of _name = Metric and _elxBaseType = MetricBaseType this results in: MetricBaseType * GetElxMetricBase(void) const; MetricBaseType * GetElxMetricBase(unsigned int idx) const;
The first function simply calls the second with argument = 0. The second retrieves the metric component from the MetricContainer and casts it to a MetricBaseType*;
This macro is #undef'ed at the end of this header file.
Definition at line 60 of file elxElastixTemplate.h.