Loading...
Searching...
No Matches
elxFiniteDifferenceGradientDescent.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 elxFiniteDifferenceGradientDescent_h
#define elxFiniteDifferenceGradientDescent_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "itkFiniteDifferenceGradientDescentOptimizer.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT FiniteDifferenceGradientDescent
: public itk::FiniteDifferenceGradientDescentOptimizer
, public OptimizerBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(FiniteDifferenceGradientDescent);
using Self = FiniteDifferenceGradientDescent;
using Superclass1 = FiniteDifferenceGradientDescentOptimizer;
using Superclass2 = OptimizerBase<TElastix>;
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(FiniteDifferenceGradientDescent, FiniteDifferenceGradientDescentOptimizer);
elxClassNameMacro("FiniteDifferenceGradientDescent");
using Superclass1::CostFunctionType;
using Superclass1::CostFunctionPointer;
using Superclass1::StopConditionType;
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
StartOptimization() override;
protected:
FiniteDifferenceGradientDescent();
~FiniteDifferenceGradientDescent() override = default;
bool m_ShowMetricValues;
private:
elxOverrideGetSelfMacro;
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxFiniteDifferenceGradientDescent.hxx"
#endif
#endif // end #ifndef elxFiniteDifferenceGradientDescent_h
elastix::FiniteDifferenceGradientDescent::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxFiniteDifferenceGradientDescent.h:114
elastix::FiniteDifferenceGradientDescent::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxFiniteDifferenceGradientDescent.h:92
elastix::FiniteDifferenceGradientDescent::BeforeEachResolution
void BeforeEachResolution() override
elastix::FiniteDifferenceGradientDescent::Superclass1
FiniteDifferenceGradientDescentOptimizer Superclass1
Definition elxFiniteDifferenceGradientDescent.h:89
elastix::FiniteDifferenceGradientDescent::Self
FiniteDifferenceGradientDescent Self
Definition elxFiniteDifferenceGradientDescent.h:88
elastix::FiniteDifferenceGradientDescent::AfterRegistration
void AfterRegistration() override
elastix::FiniteDifferenceGradientDescent::m_ShowMetricValues
bool m_ShowMetricValues
Definition elxFiniteDifferenceGradientDescent.h:144
elastix::FiniteDifferenceGradientDescent::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxFiniteDifferenceGradientDescent.h:147
elastix::FiniteDifferenceGradientDescent::elxClassNameMacro
elxClassNameMacro("FiniteDifferenceGradientDescent")
elastix::FiniteDifferenceGradientDescent::~FiniteDifferenceGradientDescent
~FiniteDifferenceGradientDescent() override=default
elastix::FiniteDifferenceGradientDescent::Pointer
itk::SmartPointer< Self > Pointer
Definition elxFiniteDifferenceGradientDescent.h:91
elastix::FiniteDifferenceGradientDescent::BeforeRegistration
void BeforeRegistration() override
elastix::FiniteDifferenceGradientDescent::FiniteDifferenceGradientDescent
FiniteDifferenceGradientDescent()
elastix::FiniteDifferenceGradientDescent::AfterEachIteration
void AfterEachIteration() override
elastix::FiniteDifferenceGradientDescent::StartOptimization
void StartOptimization() override
elastix::FiniteDifferenceGradientDescent::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(FiniteDifferenceGradientDescent)
elastix::FiniteDifferenceGradientDescent::Superclass2
OptimizerBase< TElastix > Superclass2
Definition elxFiniteDifferenceGradientDescent.h:90
elastix::FiniteDifferenceGradientDescent::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::FiniteDifferenceGradientDescentOptimizer
An optimizer based on gradient descent ...
Definition itkFiniteDifferenceGradientDescentOptimizer.h:56
itk::FiniteDifferenceGradientDescentOptimizer::FiniteDifferenceGradientDescentOptimizer
FiniteDifferenceGradientDescentOptimizer()
itk::FiniteDifferenceGradientDescentOptimizer::StopConditionType
StopConditionType
Definition itkFiniteDifferenceGradientDescentOptimizer.h:74
elxIncludes.h
itkFiniteDifferenceGradientDescentOptimizer.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |