Loading...
Searching...
No Matches
elxTranslationTransform.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 elxTranslationTransform_h
#define elxTranslationTransform_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "itkAdvancedTranslationTransform.h"
#include "itkTranslationTransformInitializer.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT TranslationTransformElastix
: public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension>
, public elx::TransformBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(TranslationTransformElastix);
using Self = TranslationTransformElastix;
using Superclass1 = itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension>;
using Superclass2 = elx::TransformBase<TElastix>;
using TranslationTransformType =
itk::AdvancedTranslationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension>;
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(TranslationTransformElastix, itk::AdvancedCombinationTransform);
elxClassNameMacro("TranslationTransform");
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
using typename Superclass1::ScalarType;
using typename Superclass1::ParametersType;
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 Superclass1::NumberOfParametersType;
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 TransformInitializerType =
itk::TranslationTransformInitializer<TranslationTransformType, FixedImageType, MovingImageType>;
using TransformInitializerPointer = typename TransformInitializerType::Pointer;
using TranslationTransformPointer = typename TranslationTransformType::Pointer;
void
BeforeRegistration() override;
protected:
TranslationTransformElastix();
~TranslationTransformElastix() override = default;
const TranslationTransformPointer m_TranslationTransform{ TranslationTransformType::New() };
private:
elxOverrideGetSelfMacro;
void
InitializeTransform();
ParameterMapType
CreateDerivedTransformParameterMap() const override;
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxTranslationTransform.hxx"
#endif
#endif // end #ifndef elxTranslationTransform_h
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::CombinationTransformType
itk::AdvancedCombinationTransform< CoordRepType, Self::FixedImageDimension > CombinationTransformType
Definition elxTransformBase.h:171
elastix::TransformBase::ITKBaseType
CombinationTransformType ITKBaseType
Definition elxTransformBase.h:172
elastix::TranslationTransformElastix::TransformInitializerType
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType > TransformInitializerType
Definition elxTranslationTransform.h:115
elastix::TranslationTransformElastix::TranslationTransformElastix
TranslationTransformElastix()
elastix::TranslationTransformElastix::Superclass2
elx::TransformBase< TElastix > Superclass2
Definition elxTranslationTransform.h:64
elastix::TranslationTransformElastix::Self
TranslationTransformElastix Self
Definition elxTranslationTransform.h:59
elastix::TranslationTransformElastix::Superclass1
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
Definition elxTranslationTransform.h:61
elastix::TranslationTransformElastix::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(TranslationTransformElastix)
elastix::TranslationTransformElastix::BeforeRegistration
void BeforeRegistration() override
elastix::TranslationTransformElastix::elxClassNameMacro
elxClassNameMacro("TranslationTransform")
elastix::TranslationTransformElastix::TranslationTransformPointer
typename TranslationTransformType::Pointer TranslationTransformPointer
Definition elxTranslationTransform.h:118
elastix::TranslationTransformElastix::CreateDerivedTransformParameterMap
ParameterMapType CreateDerivedTransformParameterMap() const override
elastix::TranslationTransformElastix::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxTranslationTransform.h:111
elastix::TranslationTransformElastix::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition elxTransformBase.h:199
elastix::TranslationTransformElastix::TranslationTransformType
itk::AdvancedTranslationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > TranslationTransformType
Definition elxTranslationTransform.h:68
elastix::TranslationTransformElastix::CombinationTransformType
typename Superclass2::CombinationTransformType CombinationTransformType
Definition elxTranslationTransform.h:112
elastix::TranslationTransformElastix::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxTranslationTransform.h:135
elastix::TranslationTransformElastix::InitializeTransform
void InitializeTransform()
elastix::TranslationTransformElastix::Pointer
itk::SmartPointer< Self > Pointer
Definition elxTranslationTransform.h:72
elastix::TranslationTransformElastix::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
elastix::TranslationTransformElastix::~TranslationTransformElastix
~TranslationTransformElastix() override=default
elastix::TranslationTransformElastix::m_TranslationTransform
const TranslationTransformPointer m_TranslationTransform
Definition elxTranslationTransform.h:132
elastix::TranslationTransformElastix::TransformInitializerPointer
typename TransformInitializerType::Pointer TransformInitializerPointer
Definition elxTranslationTransform.h:117
elastix::TranslationTransformElastix::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxTranslationTransform.h:73
itk::AdvancedCombinationTransform
This class combines two transforms: an 'initial transform' with a 'current transform'.
Definition itkAdvancedCombinationTransform.h:57
itk::AdvancedTranslationTransform
Translation transformation of a vector space (e.g. space coordinates).
Definition itkAdvancedTranslationTransform.h:55
itk::TranslationTransformInitializer
TranslationTransformInitializer is a helper class intended to initialize the translation of a Transla...
Definition itkTranslationTransformInitializer.h:62
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::Pointer
SmartPointer< Self > Pointer
Definition itkTranslationTransformInitializer.h:69
elxIncludes.h
itkAdvancedTranslationTransform.h
itkTranslationTransformInitializer.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |