Loading...
Searching...
No Matches
elxSimultaneousPerturbation.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 elxSimultaneousPerturbation_h
#define elxSimultaneousPerturbation_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "itkSPSAOptimizer.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT SimultaneousPerturbation
: public itk::SPSAOptimizer
, public OptimizerBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(SimultaneousPerturbation);
using Self = SimultaneousPerturbation;
using Superclass1 = SPSAOptimizer;
using Superclass2 = OptimizerBase<TElastix>;
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(SimultaneousPerturbation, SPSAOptimizer);
elxClassNameMacro("SimultaneousPerturbation");
using Superclass1::CostFunctionType;
using Superclass1::CostFunctionPointer;
using typename Superclass2::ElastixType;
using typename Superclass2::RegistrationType;
using ITKBaseType = typename Superclass2::ITKBaseType;
using typename Superclass1::ParametersType;
void
BeforeRegistration() override;
void
BeforeEachResolution() override;
void
AfterEachResolution() override;
void
AfterEachIteration() override;
void
AfterRegistration() override;
void
SetInitialPosition(const ParametersType & param) override;
protected:
SimultaneousPerturbation();
~SimultaneousPerturbation() override = default;
bool m_ShowMetricValues;
private:
elxOverrideGetSelfMacro;
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxSimultaneousPerturbation.hxx"
#endif
#endif // end #ifndef elxSimultaneousPerturbation_h
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
elastix::OptimizerBase::ParametersType
typename ITKBaseType::ParametersType ParametersType
Definition elxOptimizerBase.h:73
elastix::SimultaneousPerturbation::Superclass2
OptimizerBase< TElastix > Superclass2
Definition elxSimultaneousPerturbation.h:93
elastix::SimultaneousPerturbation::AfterRegistration
void AfterRegistration() override
elastix::SimultaneousPerturbation::BeforeRegistration
void BeforeRegistration() override
elastix::SimultaneousPerturbation::BeforeEachResolution
void BeforeEachResolution() override
elastix::SimultaneousPerturbation::Superclass1
SPSAOptimizer Superclass1
Definition elxSimultaneousPerturbation.h:92
elastix::SimultaneousPerturbation::Self
SimultaneousPerturbation Self
Definition elxSimultaneousPerturbation.h:91
elastix::SimultaneousPerturbation::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxSimultaneousPerturbation.h:116
elastix::SimultaneousPerturbation::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(SimultaneousPerturbation)
elastix::SimultaneousPerturbation::~SimultaneousPerturbation
~SimultaneousPerturbation() override=default
elastix::SimultaneousPerturbation::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxSimultaneousPerturbation.h:151
elastix::SimultaneousPerturbation::SimultaneousPerturbation
SimultaneousPerturbation()
elastix::SimultaneousPerturbation::SetInitialPosition
void SetInitialPosition(const ParametersType &param) override
elastix::SimultaneousPerturbation::AfterEachResolution
void AfterEachResolution() override
elastix::SimultaneousPerturbation::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxSimultaneousPerturbation.h:95
elastix::SimultaneousPerturbation::AfterEachIteration
void AfterEachIteration() override
elastix::SimultaneousPerturbation::Pointer
itk::SmartPointer< Self > Pointer
Definition elxSimultaneousPerturbation.h:94
elastix::SimultaneousPerturbation::elxClassNameMacro
elxClassNameMacro("SimultaneousPerturbation")
elastix::SimultaneousPerturbation::m_ShowMetricValues
bool m_ShowMetricValues
Definition elxSimultaneousPerturbation.h:148
elxIncludes.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |