Loading...
Searching...
No Matches
elxAdvancedBSplineTransform.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 elxAdvancedBSplineTransform_h
#define elxAdvancedBSplineTransform_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "itkAdvancedCombinationTransform.h"
#include "itkAdvancedBSplineDeformableTransform.h"
#include "itkGridScheduleComputer.h"
#include "itkCyclicBSplineDeformableTransform.h"
#include "itkCyclicGridScheduleComputer.h"
#include "itkUpsampleBSplineParametersFilter.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT AdvancedBSplineTransform
: public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension>
, public TransformBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(AdvancedBSplineTransform);
using Self = AdvancedBSplineTransform;
using Superclass1 = itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension>;
using Superclass2 = elx::TransformBase<TElastix>;
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(AdvancedBSplineTransform, itk::AdvancedCombinationTransform);
elxClassNameMacro("BSplineTransform");
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
using BSplineTransformBaseType =
itk::AdvancedBSplineDeformableTransformBase<typename elx::TransformBase<TElastix>::CoordRepType,
Self::SpaceDimension>;
using BSplineTransformBasePointer = typename BSplineTransformBaseType::Pointer;
using typename Superclass1::ScalarType;
using typename Superclass1::ParametersType;
using typename Superclass1::NumberOfParametersType;
using typename Superclass1::JacobianType;
using typename Superclass1::InputVectorType;
using typename Superclass1::OutputVectorType;
using typename Superclass1::InputCovariantVectorType;
using typename Superclass1::OutputCovariantVectorType;
using typename Superclass1::InputVnlVectorType;
using typename Superclass1::OutputVnlVectorType;
using typename Superclass1::InputPointType;
using typename Superclass1::OutputPointType;
using PixelType = typename BSplineTransformBaseType::PixelType;
using ImageType = typename BSplineTransformBaseType::ImageType;
using ImagePointer = typename BSplineTransformBaseType::ImagePointer;
using RegionType = typename BSplineTransformBaseType::RegionType;
using IndexType = typename BSplineTransformBaseType::IndexType;
using SizeType = typename BSplineTransformBaseType::SizeType;
using SpacingType = typename BSplineTransformBaseType::SpacingType;
using OriginType = typename BSplineTransformBaseType::OriginType;
using DirectionType = typename BSplineTransformBaseType::DirectionType;
using ContinuousIndexType = typename BSplineTransformBaseType::ContinuousIndexType;
using ParameterIndexArrayType = typename BSplineTransformBaseType::ParameterIndexArrayType;
using typename Superclass2::ElastixType;
using typename Superclass2::RegistrationType;
using typename Superclass2::CoordRepType;
using typename Superclass2::FixedImageType;
using typename Superclass2::MovingImageType;
using ITKBaseType = typename Superclass2::ITKBaseType;
using CombinationTransformType = typename Superclass2::CombinationTransformType;
using GridScheduleComputerType = itk::GridScheduleComputer<CoordRepType, SpaceDimension>;
using CyclicGridScheduleComputerType = itk::CyclicGridScheduleComputer<CoordRepType, SpaceDimension>;
using GridScheduleComputerPointer = typename GridScheduleComputerType::Pointer;
using GridScheduleType = typename GridScheduleComputerType ::VectorGridSpacingFactorType;
using GridUpsamplerType = itk::UpsampleBSplineParametersFilter<ParametersType, ImageType>;
using GridUpsamplerPointer = typename GridUpsamplerType::Pointer;
using typename Superclass2::ParameterMapType;
int
BeforeAll() override;
void
BeforeRegistration() override;
void
BeforeEachResolution() override;
virtual void
IncreaseScale();
void
ReadFromFile() override;
virtual void
SetOptimizerScales(const unsigned int edgeWidth);
protected:
AdvancedBSplineTransform() = default;
~AdvancedBSplineTransform() override = default;
virtual void
PreComputeGridInformation();
private:
elxOverrideGetSelfMacro;
void
InitializeTransform();
ParameterMapType
CreateDerivedTransformParameterMap() const override;
BSplineTransformBasePointer m_BSplineTransform;
GridScheduleComputerPointer m_GridScheduleComputer;
GridUpsamplerPointer m_GridUpsampler;
unsigned int m_SplineOrder;
bool m_Cyclic;
unsigned int
InitializeBSplineTransform();
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxAdvancedBSplineTransform.hxx"
#endif
#endif // end #ifndef elxAdvancedBSplineTransform_h
elastix::AdvancedBSplineTransform::elxClassNameMacro
elxClassNameMacro("BSplineTransform")
elastix::AdvancedBSplineTransform::InitializeTransform
void InitializeTransform()
elastix::AdvancedBSplineTransform::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxAdvancedBSplineTransform.h:181
elastix::AdvancedBSplineTransform::InitializeBSplineTransform
unsigned int InitializeBSplineTransform()
elastix::AdvancedBSplineTransform::RegionType
typename BSplineTransformBaseType::RegionType RegionType
Definition elxAdvancedBSplineTransform.h:166
elastix::AdvancedBSplineTransform::~AdvancedBSplineTransform
~AdvancedBSplineTransform() override=default
elastix::AdvancedBSplineTransform::OriginType
typename BSplineTransformBaseType::OriginType OriginType
Definition elxAdvancedBSplineTransform.h:170
elastix::AdvancedBSplineTransform::BeforeEachResolution
void BeforeEachResolution() override
elastix::AdvancedBSplineTransform::Pointer
itk::SmartPointer< Self > Pointer
Definition elxAdvancedBSplineTransform.h:122
elastix::AdvancedBSplineTransform::Superclass1
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
Definition elxAdvancedBSplineTransform.h:119
elastix::AdvancedBSplineTransform::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxAdvancedBSplineTransform.h:123
elastix::AdvancedBSplineTransform::m_SplineOrder
unsigned int m_SplineOrder
Definition elxAdvancedBSplineTransform.h:271
elastix::AdvancedBSplineTransform::ImageType
typename BSplineTransformBaseType::ImageType ImageType
Definition elxAdvancedBSplineTransform.h:164
elastix::AdvancedBSplineTransform::m_GridScheduleComputer
GridScheduleComputerPointer m_GridScheduleComputer
Definition elxAdvancedBSplineTransform.h:267
elastix::AdvancedBSplineTransform::AdvancedBSplineTransform
AdvancedBSplineTransform()=default
elastix::AdvancedBSplineTransform::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition elxTransformBase.h:199
elastix::AdvancedBSplineTransform::CombinationTransformType
typename Superclass2::CombinationTransformType CombinationTransformType
Definition elxAdvancedBSplineTransform.h:182
elastix::AdvancedBSplineTransform::GridScheduleComputerPointer
typename GridScheduleComputerType::Pointer GridScheduleComputerPointer
Definition elxAdvancedBSplineTransform.h:187
elastix::AdvancedBSplineTransform::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxAdvancedBSplineTransform.h:251
elastix::AdvancedBSplineTransform::SpacingType
typename BSplineTransformBaseType::SpacingType SpacingType
Definition elxAdvancedBSplineTransform.h:169
elastix::AdvancedBSplineTransform::m_Cyclic
bool m_Cyclic
Definition elxAdvancedBSplineTransform.h:272
elastix::AdvancedBSplineTransform::ImagePointer
typename BSplineTransformBaseType::ImagePointer ImagePointer
Definition elxAdvancedBSplineTransform.h:165
elastix::AdvancedBSplineTransform::m_BSplineTransform
BSplineTransformBasePointer m_BSplineTransform
Definition elxAdvancedBSplineTransform.h:266
elastix::AdvancedBSplineTransform::GridScheduleType
typename GridScheduleComputerType ::VectorGridSpacingFactorType GridScheduleType
Definition elxAdvancedBSplineTransform.h:188
elastix::AdvancedBSplineTransform::Superclass2
elx::TransformBase< TElastix > Superclass2
Definition elxAdvancedBSplineTransform.h:121
elastix::AdvancedBSplineTransform::GridScheduleComputerType
itk::GridScheduleComputer< CoordRepType, SpaceDimension > GridScheduleComputerType
Definition elxAdvancedBSplineTransform.h:185
elastix::AdvancedBSplineTransform::SizeType
typename BSplineTransformBaseType::SizeType SizeType
Definition elxAdvancedBSplineTransform.h:168
elastix::AdvancedBSplineTransform::ContinuousIndexType
typename BSplineTransformBaseType::ContinuousIndexType ContinuousIndexType
Definition elxAdvancedBSplineTransform.h:172
elastix::AdvancedBSplineTransform::BSplineTransformBasePointer
typename BSplineTransformBaseType::Pointer BSplineTransformBasePointer
Definition elxAdvancedBSplineTransform.h:146
elastix::AdvancedBSplineTransform::BeforeAll
int BeforeAll() override
elastix::AdvancedBSplineTransform::BeforeRegistration
void BeforeRegistration() override
elastix::AdvancedBSplineTransform::ReadFromFile
void ReadFromFile() override
elastix::AdvancedBSplineTransform::SetOptimizerScales
virtual void SetOptimizerScales(const unsigned int edgeWidth)
elastix::AdvancedBSplineTransform::IndexType
typename BSplineTransformBaseType::IndexType IndexType
Definition elxAdvancedBSplineTransform.h:167
elastix::AdvancedBSplineTransform::Self
AdvancedBSplineTransform Self
Definition elxAdvancedBSplineTransform.h:118
elastix::AdvancedBSplineTransform::DirectionType
typename BSplineTransformBaseType::DirectionType DirectionType
Definition elxAdvancedBSplineTransform.h:171
elastix::AdvancedBSplineTransform::PreComputeGridInformation
virtual void PreComputeGridInformation()
elastix::AdvancedBSplineTransform::BSplineTransformBaseType
itk::AdvancedBSplineDeformableTransformBase< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension > BSplineTransformBaseType
Definition elxAdvancedBSplineTransform.h:143
elastix::AdvancedBSplineTransform::GridUpsamplerPointer
typename GridUpsamplerType::Pointer GridUpsamplerPointer
Definition elxAdvancedBSplineTransform.h:190
elastix::AdvancedBSplineTransform::GridUpsamplerType
itk::UpsampleBSplineParametersFilter< ParametersType, ImageType > GridUpsamplerType
Definition elxAdvancedBSplineTransform.h:189
elastix::AdvancedBSplineTransform::ParameterIndexArrayType
typename BSplineTransformBaseType::ParameterIndexArrayType ParameterIndexArrayType
Definition elxAdvancedBSplineTransform.h:173
elastix::AdvancedBSplineTransform::m_GridUpsampler
GridUpsamplerPointer m_GridUpsampler
Definition elxAdvancedBSplineTransform.h:268
elastix::AdvancedBSplineTransform::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(AdvancedBSplineTransform)
elastix::AdvancedBSplineTransform::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
elastix::AdvancedBSplineTransform::CreateDerivedTransformParameterMap
ParameterMapType CreateDerivedTransformParameterMap() const override
elastix::AdvancedBSplineTransform::CyclicGridScheduleComputerType
itk::CyclicGridScheduleComputer< CoordRepType, SpaceDimension > CyclicGridScheduleComputerType
Definition elxAdvancedBSplineTransform.h:186
elastix::AdvancedBSplineTransform::IncreaseScale
virtual void IncreaseScale()
elastix::BaseComponentSE::ElastixType
TElastix ElastixType
Definition elxBaseComponentSE.h:57
elastix::TransformBase
This class is the elastix base class for all Transforms.
Definition elxTransformBase.h:138
elastix::TransformBase::FixedImageType
typename TElastix::FixedImageType FixedImageType
Definition elxTransformBase.h:157
elastix::TransformBase::CoordRepType
ElastixBase::CoordRepType CoordRepType
Definition elxTransformBase.h:156
elastix::TransformBase::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition elxTransformBase.h:199
elastix::TransformBase::MovingImageType
typename TElastix::MovingImageType MovingImageType
Definition elxTransformBase.h:158
elastix::TransformBase::RegistrationType
typename ElastixType::RegistrationBaseType RegistrationType
Definition elxBaseComponentSE.h:62
elastix::TransformBase::TransformBase
TransformBase()=default
elastix::TransformBase::CombinationTransformType
itk::AdvancedCombinationTransform< CoordRepType, Self::FixedImageDimension > CombinationTransformType
Definition elxTransformBase.h:171
elastix::TransformBase::ITKBaseType
CombinationTransformType ITKBaseType
Definition elxTransformBase.h:172
itk::AdvancedBSplineDeformableTransformBase
Base class for deformable transform using a B-spline representation.
Definition itkAdvancedBSplineDeformableTransformBase.h:43
itk::AdvancedCombinationTransform
This class combines two transforms: an 'initial transform' with a 'current transform'.
Definition itkAdvancedCombinationTransform.h:57
itk::CyclicGridScheduleComputer
This class computes all information about the B-spline grid.
Definition itkCyclicGridScheduleComputer.h:43
itk::GridScheduleComputer
This class computes all information about the B-spline grid, given the image information and the desi...
Definition itkGridScheduleComputer.h:41
itk::GridScheduleComputer< CoordRepType, SpaceDimension >::Pointer
SmartPointer< Self > Pointer
Definition itkGridScheduleComputer.h:48
itk::UpsampleBSplineParametersFilter
Convenience class for upsampling a B-spline coefficient image.
Definition itkUpsampleBSplineParametersFilter.h:40
itk::UpsampleBSplineParametersFilter< ParametersType, ImageType >::Pointer
SmartPointer< Self > Pointer
Definition itkUpsampleBSplineParametersFilter.h:47
elxIncludes.h
itkAdvancedBSplineDeformableTransform.h
itkAdvancedCombinationTransform.h
itkCyclicBSplineDeformableTransform.h
itkCyclicGridScheduleComputer.h
itkGridScheduleComputer.h
itkUpsampleBSplineParametersFilter.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |