15 #ifndef __elxMetricBase_h
16 #define __elxMetricBase_h
24 #include "itkPointSet.h"
72 template <
class TElastix>
106 itkStaticConstMacro( FixedImageDimension,
unsigned int, FixedImageType::ImageDimension );
108 itkStaticConstMacro( MovingImageDimension,
unsigned int, MovingImageType::ImageDimension );
114 DefaultStaticMeshTraits<
116 FixedImageDimension, FixedImageDimension,
121 DefaultStaticMeshTraits<
123 MovingImageDimension, MovingImageDimension,
149 virtual void BeforeEachResolutionBase(
void );
154 virtual void AfterEachIterationBase(
void );
159 virtual void SelectNewSamples(
void );
164 virtual bool GetAdvancedMetricUseImageSampler(
void )
const;
170 virtual void SetAdvancedMetricImageSampler( ImageSamplerBaseType * sampler );
176 virtual ImageSamplerBaseType * GetAdvancedMetricImageSampler(
void )
const;
180 {
return this->m_ShowExactMetricValue; }
184 {
return this->m_CurrentExactMetricValue; }
210 virtual MeasureType GetExactValue(
const ParametersType& parameters );
223 void operator=(
const Self& );
230 #ifndef ITK_MANUAL_INSTANTIATION
231 #include "elxMetricBase.hxx"
234 #endif // end #ifndef __elxMetricBase_h
The BaseComponentSE class is a base class for elastix components that provides some basic functionali...
Superclass::ElastixPointer ElastixPointer
Superclass::RegistrationType RegistrationType
ITKBaseType::MeasureType MeasureType
virtual MeasureType GetCurrentExactMetricValue(void) const
ElastixType::RegistrationBaseType RegistrationType
ElastixType::ConfigurationPointer ConfigurationPointer
Superclass::ConfigurationType ConfigurationType
BaseComponentSE< TElastix > Superclass
ElastixType::Pointer ElastixPointer
ElastixType::ConfigurationType ConfigurationType
An extension of the ITK ImageToImageMetric. It is the intended base class for all elastix metrics...
AdvancedMetricType::ImageSamplerType ImageSamplerBaseType
AdvancedImageToImageMetric< FixedImageType, MovingImageType > AdvancedMetricType
virtual bool GetShowExactMetricValue(void) const
InputImageType::OffsetType SampleGridSpacingType
PointSet< CoordinateRepresentationType, MovingImageDimension, DefaultStaticMeshTraits< CoordinateRepresentationType, MovingImageDimension, MovingImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > MovingPointSetType
ElastixType::FixedImageType FixedImageType
SmartPointer< Self > Pointer
virtual ITKBaseType * GetAsITKBaseType(void)
RegistrationType * RegistrationPointer
PointSet< CoordinateRepresentationType, FixedImageDimension, DefaultStaticMeshTraits< CoordinateRepresentationType, FixedImageDimension, FixedImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > FixedPointSetType
This class is a base class for any image sampler.
MovingPointType::ValueType MovingPointValueType
ExactMetricImageSamplerType::Pointer m_ExactMetricSampler
SingleValuedCostFunction ITKBaseType
MovingImageType::PointType MovingPointType
ITKBaseType::ParametersType ParametersType
FixedPointType::ValueType FixedPointValueType
MeasureType m_CurrentExactMetricValue
FixedImageType::PointType FixedPointType
Superclass::ElastixType ElastixType
ElastixType::MovingImageType MovingImageType
Superclass::RegistrationPointer RegistrationPointer
itk::ImageGridSampler< FixedImageType > ExactMetricImageSamplerType
ITKBaseType::ParametersValueType CoordinateRepresentationType
bool m_ShowExactMetricValue
virtual const ITKBaseType * GetAsITKBaseType(void) const
Superclass::ConfigurationPointer ConfigurationPointer
ExactMetricImageSamplerType::SampleGridSpacingType ExactMetricSampleGridSpacingType
ExactMetricSampleGridSpacingType m_ExactMetricSampleGridSpacing
Samples image voxels on a regular grid.
This class is the elastix base class for all Metrics.