Loading...
Searching...
No Matches
elxAdvancedAffineTransform.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 elxAdvancedAffineTransform_h
#define elxAdvancedAffineTransform_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "itkAdvancedMatrixOffsetTransformBase.h"
#include "itkAdvancedCombinationTransform.h"
#include "itkCenteredTransformInitializer2.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT AdvancedAffineTransformElastix
: public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension>
, public elx::TransformBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(AdvancedAffineTransformElastix);
using Self = AdvancedAffineTransformElastix;
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>;
using AffineTransformType =
itk::AdvancedMatrixOffsetTransformBase<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension,
elx::TransformBase<TElastix>::MovingImageDimension>;
itkNewMacro(Self);
itkTypeMacro(AdvancedAffineTransformElastix, itk::AdvancedCombinationTransform);
elxClassNameMacro("AffineTransform");
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
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 typename Superclass2::ElastixType;
using typename Superclass2::ParameterMapType;
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 IndexType = typename FixedImageType::IndexType;
using IndexValueType = typename IndexType::IndexValueType;
using SizeType = typename FixedImageType::SizeType;
using PointType = typename FixedImageType::PointType;
using SpacingType = typename FixedImageType::SpacingType;
using RegionType = typename FixedImageType::RegionType;
using DirectionType = typename FixedImageType::DirectionType;
// typedef CenteredTransformInitializer<
using TransformInitializerType =
itk::CenteredTransformInitializer2<AffineTransformType, FixedImageType, MovingImageType>;
using TransformInitializerPointer = typename TransformInitializerType::Pointer;
using AffineTransformPointer = typename AffineTransformType::Pointer;
using typename Superclass2::ScalesType;
void
BeforeRegistration() override;
virtual void
SetScales();
void
ReadFromFile() override;
protected:
AdvancedAffineTransformElastix();
~AdvancedAffineTransformElastix() override = default;
virtual bool
ReadCenterOfRotationPoint(InputPointType & rotationPoint) const;
private:
elxOverrideGetSelfMacro;
void
InitializeTransform();
ParameterMapType
CreateDerivedTransformParameterMap() const override;
const AffineTransformPointer m_AffineTransform{ AffineTransformType::New() };
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxAdvancedAffineTransform.hxx"
#endif
#endif // end #ifndef elxAdvancedAffineTransform_h
elastix::AdvancedAffineTransformElastix::ReadFromFile
void ReadFromFile() override
elastix::AdvancedAffineTransformElastix::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxAdvancedAffineTransform.h:196
elastix::AdvancedAffineTransformElastix::PointType
typename FixedImageType::PointType PointType
Definition elxAdvancedAffineTransform.h:143
elastix::AdvancedAffineTransformElastix::IndexValueType
typename IndexType::IndexValueType IndexValueType
Definition elxAdvancedAffineTransform.h:141
elastix::AdvancedAffineTransformElastix::RegionType
typename FixedImageType::RegionType RegionType
Definition elxAdvancedAffineTransform.h:145
elastix::AdvancedAffineTransformElastix::Superclass1
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
Definition elxAdvancedAffineTransform.h:87
elastix::AdvancedAffineTransformElastix::TransformInitializerPointer
typename TransformInitializerType::Pointer TransformInitializerPointer
Definition elxAdvancedAffineTransform.h:151
elastix::AdvancedAffineTransformElastix::CombinationTransformType
typename Superclass2::CombinationTransformType CombinationTransformType
Definition elxAdvancedAffineTransform.h:137
elastix::AdvancedAffineTransformElastix::IndexType
typename FixedImageType::IndexType IndexType
Definition elxAdvancedAffineTransform.h:140
elastix::AdvancedAffineTransformElastix::AffineTransformType
itk::AdvancedMatrixOffsetTransformBase< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension, elx::TransformBase< TElastix >::MovingImageDimension > AffineTransformType
Definition elxAdvancedAffineTransform.h:95
elastix::AdvancedAffineTransformElastix::elxClassNameMacro
elxClassNameMacro("AffineTransform")
elastix::AdvancedAffineTransformElastix::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(AdvancedAffineTransformElastix)
elastix::AdvancedAffineTransformElastix::BeforeRegistration
void BeforeRegistration() override
elastix::AdvancedAffineTransformElastix::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxAdvancedAffineTransform.h:91
elastix::AdvancedAffineTransformElastix::SetScales
virtual void SetScales()
elastix::AdvancedAffineTransformElastix::InitializeTransform
void InitializeTransform()
elastix::AdvancedAffineTransformElastix::TransformInitializerType
itk::CenteredTransformInitializer2< AffineTransformType, FixedImageType, MovingImageType > TransformInitializerType
Definition elxAdvancedAffineTransform.h:149
elastix::AdvancedAffineTransformElastix::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
elastix::AdvancedAffineTransformElastix::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition elxTransformBase.h:199
elastix::AdvancedAffineTransformElastix::Superclass2
elx::TransformBase< TElastix > Superclass2
Definition elxAdvancedAffineTransform.h:89
elastix::AdvancedAffineTransformElastix::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxAdvancedAffineTransform.h:136
elastix::AdvancedAffineTransformElastix::AdvancedAffineTransformElastix
AdvancedAffineTransformElastix()
elastix::AdvancedAffineTransformElastix::Pointer
itk::SmartPointer< Self > Pointer
Definition elxAdvancedAffineTransform.h:90
elastix::AdvancedAffineTransformElastix::SizeType
typename FixedImageType::SizeType SizeType
Definition elxAdvancedAffineTransform.h:142
elastix::AdvancedAffineTransformElastix::DirectionType
typename FixedImageType::DirectionType DirectionType
Definition elxAdvancedAffineTransform.h:146
elastix::AdvancedAffineTransformElastix::Self
AdvancedAffineTransformElastix Self
Definition elxAdvancedAffineTransform.h:86
elastix::AdvancedAffineTransformElastix::SpacingType
typename FixedImageType::SpacingType SpacingType
Definition elxAdvancedAffineTransform.h:144
elastix::AdvancedAffineTransformElastix::~AdvancedAffineTransformElastix
~AdvancedAffineTransformElastix() override=default
elastix::AdvancedAffineTransformElastix::m_AffineTransform
const AffineTransformPointer m_AffineTransform
Definition elxAdvancedAffineTransform.h:220
elastix::AdvancedAffineTransformElastix::CreateDerivedTransformParameterMap
ParameterMapType CreateDerivedTransformParameterMap() const override
elastix::AdvancedAffineTransformElastix::AffineTransformPointer
typename AffineTransformType::Pointer AffineTransformPointer
Definition elxAdvancedAffineTransform.h:152
elastix::AdvancedAffineTransformElastix::ReadCenterOfRotationPoint
virtual bool ReadCenterOfRotationPoint(InputPointType &rotationPoint) const
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::InputPointType
typename ITKBaseType::InputPointType InputPointType
Definition elxTransformBase.h:180
elastix::TransformBase::ScalesType
itk::Optimizer::ScalesType ScalesType
Definition elxTransformBase.h:190
elastix::TransformBase::CombinationTransformType
itk::AdvancedCombinationTransform< CoordRepType, Self::FixedImageDimension > CombinationTransformType
Definition elxTransformBase.h:171
elastix::TransformBase::ITKBaseType
CombinationTransformType ITKBaseType
Definition elxTransformBase.h:172
itk::AdvancedCombinationTransform
This class combines two transforms: an 'initial transform' with a 'current transform'.
Definition itkAdvancedCombinationTransform.h:57
itk::AdvancedMatrixOffsetTransformBase
Definition itkAdvancedMatrixOffsetTransformBase.h:97
itk::CenteredTransformInitializer2
CenteredTransformInitializer2 is a helper class intended to initialize the center of rotation and the...
Definition itkCenteredTransformInitializer2.h:92
itk::CenteredTransformInitializer2< AffineTransformType, FixedImageType, MovingImageType >::Pointer
SmartPointer< Self > Pointer
Definition itkCenteredTransformInitializer2.h:99
elxIncludes.h
itkAdvancedCombinationTransform.h
itkAdvancedMatrixOffsetTransformBase.h
itkCenteredTransformInitializer2.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |