Loading...
Searching...
No Matches
elxCMAEvolutionStrategy.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef elxCMAEvolutionStrategy_h
#define elxCMAEvolutionStrategy_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "itkCMAEvolutionStrategyOptimizer.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT CMAEvolutionStrategy
: public itk::CMAEvolutionStrategyOptimizer
, public OptimizerBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(CMAEvolutionStrategy);
using Self = CMAEvolutionStrategy;
using Superclass1 = CMAEvolutionStrategyOptimizer;
using Superclass2 = OptimizerBase<TElastix>;
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(CMAEvolutionStrategy, CMAEvolutionStrategyOptimizer);
elxClassNameMacro("CMAEvolutionStrategy");
using Superclass1::CostFunctionType;
using Superclass1::CostFunctionPointer;
using Superclass1::StopConditionType;
using Superclass1::ParametersType;
using Superclass1::DerivativeType;
using Superclass1::ScalesType;
using typename Superclass2::ElastixType;
using typename Superclass2::RegistrationType;
using ITKBaseType = typename Superclass2::ITKBaseType;
void
StartOptimization() override;
void
BeforeRegistration() override;
void
BeforeEachResolution() override;
void
AfterEachResolution() override;
void
AfterEachIteration() override;
void
AfterRegistration() override;
protected:
CMAEvolutionStrategy() = default;
~CMAEvolutionStrategy() override = default;
void
InitializeProgressVariables() override;
private:
elxOverrideGetSelfMacro;
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxCMAEvolutionStrategy.hxx"
#endif
#endif // end #ifndef elxCMAEvolutionStrategy_h
elastix::CMAEvolutionStrategy::InitializeProgressVariables
void InitializeProgressVariables() override
elastix::CMAEvolutionStrategy::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxCMAEvolutionStrategy.h:185
elastix::CMAEvolutionStrategy::Superclass2
OptimizerBase< TElastix > Superclass2
Definition elxCMAEvolutionStrategy.h:125
elastix::CMAEvolutionStrategy::~CMAEvolutionStrategy
~CMAEvolutionStrategy() override=default
elastix::CMAEvolutionStrategy::BeforeEachResolution
void BeforeEachResolution() override
elastix::CMAEvolutionStrategy::CMAEvolutionStrategy
CMAEvolutionStrategy()=default
elastix::CMAEvolutionStrategy::elxClassNameMacro
elxClassNameMacro("CMAEvolutionStrategy")
elastix::CMAEvolutionStrategy::Superclass1
CMAEvolutionStrategyOptimizer Superclass1
Definition elxCMAEvolutionStrategy.h:124
elastix::CMAEvolutionStrategy::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxCMAEvolutionStrategy.h:127
elastix::CMAEvolutionStrategy::AfterEachIteration
void AfterEachIteration() override
elastix::CMAEvolutionStrategy::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(CMAEvolutionStrategy)
elastix::CMAEvolutionStrategy::BeforeRegistration
void BeforeRegistration() override
elastix::CMAEvolutionStrategy::Pointer
itk::SmartPointer< Self > Pointer
Definition elxCMAEvolutionStrategy.h:126
elastix::CMAEvolutionStrategy::StartOptimization
void StartOptimization() override
elastix::CMAEvolutionStrategy::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxCMAEvolutionStrategy.h:152
elastix::CMAEvolutionStrategy::AfterRegistration
void AfterRegistration() override
elastix::CMAEvolutionStrategy::Self
CMAEvolutionStrategy Self
Definition elxCMAEvolutionStrategy.h:123
elastix::CMAEvolutionStrategy::AfterEachResolution
void AfterEachResolution() override
elastix::OptimizerBase::OptimizerBase
OptimizerBase()=default
elastix::OptimizerBase::RegistrationType
typename ElastixType::RegistrationBaseType RegistrationType
Definition elxBaseComponentSE.h:62
elastix::OptimizerBase::ElastixType
TElastix ElastixType
Definition elxBaseComponentSE.h:57
elastix::OptimizerBase::ITKBaseType
itk::Optimizer ITKBaseType
Definition elxOptimizerBase.h:70
itk::CMAEvolutionStrategyOptimizer
A Covariance Matrix Adaptation Evolution Strategy Optimizer.
Definition itkCMAEvolutionStrategyOptimizer.h:50
itk::CMAEvolutionStrategyOptimizer::ScalesType
NonLinearOptimizer::ScalesType ScalesType
Definition itkScaledSingleValuedNonLinearOptimizer.h:85
itk::CMAEvolutionStrategyOptimizer::StopConditionType
StopConditionType
Definition itkCMAEvolutionStrategyOptimizer.h:70
itk::CMAEvolutionStrategyOptimizer::CMAEvolutionStrategyOptimizer
CMAEvolutionStrategyOptimizer()
elxIncludes.h
itkCMAEvolutionStrategyOptimizer.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |