18 #ifndef itkObjectToObjectOptimizerBase_h 19 #define itkObjectToObjectOptimizerBase_h 79 template<
typename TInternalComputationValueType =
double>
119 itkSetObjectMacro( Metric, MetricType );
120 itkGetModifiableObjectMacro(Metric, MetricType );
126 itkGetConstReferenceMacro( CurrentMetricValue, MeasureType );
133 virtual const MeasureType &
GetValue()
const;
144 itkGetConstReferenceMacro( Scales, ScalesType );
147 itkGetConstReferenceMacro( ScalesAreIdentity,
bool );
150 itkSetMacro( Weights, ScalesType );
154 itkGetConstReferenceMacro( Weights, ScalesType );
157 itkGetConstReferenceMacro( WeightsAreIdentity,
bool );
172 itkSetObjectMacro(ScalesEstimator, ScalesEstimatorType);
179 itkSetMacro(DoEstimateScales,
bool);
180 itkGetConstReferenceMacro(DoEstimateScales,
bool);
181 itkBooleanMacro(DoEstimateScales);
190 itkGetConstReferenceMacro( NumberOfThreads,
ThreadIdType );
257 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
261 void operator=( const Self& ) ITK_DELETE_FUNCTION;
270 #ifndef ITK_MANUAL_INSTANTIATION 271 #include "itkObjectToObjectOptimizerBase.hxx" virtual const StopConditionReturnStringType GetStopConditionDescription() const =0
virtual void StartOptimization(bool doOnlyInitialization=false)
OptimizerParameters< TInternalComputationValueType > ScalesType
Superclass::MeasureType MeasureType
ThreadIdType m_NumberOfThreads
OptimizerParameters< TInternalComputationValueType > ParametersType
ScalesEstimatorType::Pointer m_ScalesEstimator
MetricType::DerivativeType DerivativeType
MetricType::MeasureType MeasureType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
bool GetScalesInitialized() const
Base class for all object-to-object similarlity metrics added in ITKv4.
unsigned long SizeValueType
ObjectToObjectMetricBaseTemplate< TInternalComputationValueType > MetricType
OptimizerParameterScalesEstimatorTemplate< TInternalComputationValueType > ScalesEstimatorType
OptimizerParameterScalesEstimatorTemplate is the base class offering a empty method of estimating the...
SmartPointer< const Self > ConstPointer
std::ostringstream StopConditionDescriptionType
virtual const MeasureType & GetValue() const
virtual const ParametersType & GetCurrentPosition() const
ObjectToObjectOptimizerBaseTemplate Self
bool m_WeightsAreIdentity
virtual ~ObjectToObjectOptimizerBaseTemplate()
MetricTypePointer m_Metric
unsigned int NumberOfParametersType
SizeValueType m_NumberOfIterations
SmartPointer< Self > Pointer
MeasureType m_CurrentMetricValue
unsigned int ThreadIdType
virtual void PrintSelf(std::ostream &os, Indent indent) const override
MetricType::NumberOfParametersType NumberOfParametersType
Control indentation during Print() invocation.
SizeValueType m_CurrentIteration
Superclass::DerivativeType DerivativeType
virtual void SetNumberOfThreads(ThreadIdType number)
std::string StopConditionReturnStringType
Base class for most ITK classes.
ObjectToObjectOptimizerBaseTemplate()
Abstract base for object-to-object optimizers.
virtual void SetScales(const ScalesType &scales)
MetricType::Pointer MetricTypePointer