Loading...
Searching...
No Matches
elxFullSearchOptimizer.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 elxFullSearchOptimizer_h
#define elxFullSearchOptimizer_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "itkFullSearchOptimizer.h"
#include <map>
#include "itkNDImageBase.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT FullSearch
: public itk::FullSearchOptimizer
, public OptimizerBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(FullSearch);
using Self = FullSearch;
using Superclass1 = itk::FullSearchOptimizer;
using Superclass2 = OptimizerBase<TElastix>;
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(FullSearch, itk::FullSearchOptimizer);
elxClassNameMacro("FullSearch");
using Superclass1::CostFunctionType;
using Superclass1::CostFunctionPointer;
using Superclass1::ParametersType;
using Superclass1::MeasureType;
using Superclass1::ParameterValueType;
using Superclass1::RangeValueType;
using Superclass1::RangeType;
using Superclass1::SearchSpaceType;
using Superclass1::SearchSpacePointer;
using Superclass1::SearchSpaceIteratorType;
using Superclass1::SearchSpacePointType;
using Superclass1::SearchSpaceIndexType;
using Superclass1::SearchSpaceSizeType;
using typename Superclass2::ElastixType;
using typename Superclass2::RegistrationType;
using ITKBaseType = typename Superclass2::ITKBaseType;
using NDImageType = itk::NDImageBase<float>;
using NDImagePointer = typename NDImageType::Pointer;
using DimensionNameMapType = std::map<unsigned int, std::string>;
using NameIteratorType = typename DimensionNameMapType::const_iterator;
void
BeforeRegistration() override;
void
BeforeEachResolution() override;
void
AfterEachResolution() override;
void
AfterEachIteration() override;
void
AfterRegistration() override;
itkGetModifiableObjectMacro(OptimizationSurface, NDImageType);
protected:
FullSearch();
~FullSearch() override = default;
NDImagePointer m_OptimizationSurface;
DimensionNameMapType m_SearchSpaceDimensionNames;
// virtual int CheckSearchSpaceRangeDefinition(const std::string & fullFieldName,
// int errorcode, unsigned int entry_nr);
virtual bool
CheckSearchSpaceRangeDefinition(const std::string & fullFieldName,
const bool found,
const unsigned int entry_nr) const;
private:
elxOverrideGetSelfMacro;
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxFullSearchOptimizer.hxx"
#endif
#endif // end #ifndef elxFullSearchOptimizer_h
elastix::FullSearch::Pointer
itk::SmartPointer< Self > Pointer
Definition elxFullSearchOptimizer.h:68
elastix::FullSearch::Self
FullSearch Self
Definition elxFullSearchOptimizer.h:65
elastix::FullSearch::m_OptimizationSurface
NDImagePointer m_OptimizationSurface
Definition elxFullSearchOptimizer.h:136
elastix::FullSearch::Superclass1
itk::FullSearchOptimizer Superclass1
Definition elxFullSearchOptimizer.h:66
elastix::FullSearch::NDImagePointer
typename NDImageType::Pointer NDImagePointer
Definition elxFullSearchOptimizer.h:105
elastix::FullSearch::AfterEachIteration
void AfterEachIteration() override
elastix::FullSearch::FullSearch
FullSearch()
elastix::FullSearch::AfterEachResolution
void AfterEachResolution() override
elastix::FullSearch::BeforeEachResolution
void BeforeEachResolution() override
elastix::FullSearch::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxFullSearchOptimizer.h:69
elastix::FullSearch::AfterRegistration
void AfterRegistration() override
elastix::FullSearch::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxFullSearchOptimizer.h:101
elastix::FullSearch::m_SearchSpaceDimensionNames
DimensionNameMapType m_SearchSpaceDimensionNames
Definition elxFullSearchOptimizer.h:138
elastix::FullSearch::itkGetModifiableObjectMacro
itkGetModifiableObjectMacro(OptimizationSurface, NDImageType)
elastix::FullSearch::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxFullSearchOptimizer.h:152
elastix::FullSearch::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(FullSearch)
elastix::FullSearch::CheckSearchSpaceRangeDefinition
virtual bool CheckSearchSpaceRangeDefinition(const std::string &fullFieldName, const bool found, const unsigned int entry_nr) const
elastix::FullSearch::NameIteratorType
typename DimensionNameMapType::const_iterator NameIteratorType
Definition elxFullSearchOptimizer.h:109
elastix::FullSearch::Superclass2
OptimizerBase< TElastix > Superclass2
Definition elxFullSearchOptimizer.h:67
elastix::FullSearch::~FullSearch
~FullSearch() override=default
elastix::FullSearch::BeforeRegistration
void BeforeRegistration() override
elastix::FullSearch::DimensionNameMapType
std::map< unsigned int, std::string > DimensionNameMapType
Definition elxFullSearchOptimizer.h:108
elastix::FullSearch::elxClassNameMacro
elxClassNameMacro("FullSearch")
elastix::FullSearch::NDImageType
itk::NDImageBase< float > NDImageType
Definition elxFullSearchOptimizer.h:104
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::FullSearchOptimizer
An optimizer based on full search.
Definition itkFullSearchOptimizer.h:47
itk::FullSearchOptimizer::SearchSpacePointType
Array< ParameterValueType > SearchSpacePointType
Definition itkFullSearchOptimizer.h:85
itk::FullSearchOptimizer::ParameterValueType
ParametersType::ValueType ParameterValueType
Definition itkFullSearchOptimizer.h:76
itk::FullSearchOptimizer::SearchSpaceSizeType
Array< SizeValueType > SearchSpaceSizeType
Definition itkFullSearchOptimizer.h:92
itk::FullSearchOptimizer::SearchSpacePointer
SearchSpaceType::Pointer SearchSpacePointer
Definition itkFullSearchOptimizer.h:80
itk::FullSearchOptimizer::SearchSpaceIteratorType
SearchSpaceType::ConstIterator SearchSpaceIteratorType
Definition itkFullSearchOptimizer.h:81
itk::FullSearchOptimizer::SearchSpaceType
MapContainer< unsigned int, RangeType > SearchSpaceType
Definition itkFullSearchOptimizer.h:79
itk::FullSearchOptimizer::RangeValueType
ParameterValueType RangeValueType
Definition itkFullSearchOptimizer.h:77
itk::FullSearchOptimizer::SearchSpaceIndexType
Array< IndexValueType > SearchSpaceIndexType
Definition itkFullSearchOptimizer.h:89
itk::FullSearchOptimizer::RangeType
FixedArray< RangeValueType, 3 > RangeType
Definition itkFullSearchOptimizer.h:78
itk::NDImageBase
An image whose dimension can be specified at runtime.
Definition itkNDImageBase.h:59
itk::NDImageBase< float >::Pointer
SmartPointer< Self > Pointer
Definition itkNDImageBase.h:66
elxIncludes.h
itkFullSearchOptimizer.h
itkNDImageBase.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |