Loading...
Searching...
No Matches
elxTranslationStackTransform.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 elxTranslationStackTransform_h
#define elxTranslationStackTransform_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "itkAdvancedCombinationTransform.h"
#include "itkAdvancedTranslationTransform.h"
#include "itkTranslationStackTransform.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT TranslationStackTransform
: public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension>
, public elx::TransformBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(TranslationStackTransform);
using Self = TranslationStackTransform;
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(TranslationStackTransform, itk::AdvancedCombinationTransform);
elxClassNameMacro("TranslationStackTransform");
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
itkStaticConstMacro(ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1);
using TranslationTransformType =
itk::AdvancedTranslationTransform<typename elx::TransformBase<TElastix>::CoordRepType, Self::SpaceDimension>;
using TranslationTransformPointer = typename TranslationTransformType::Pointer;
using ReducedDimensionTranslationTransformType =
itk::AdvancedTranslationTransform<typename elx::TransformBase<TElastix>::CoordRepType, Self::ReducedSpaceDimension>;
using ReducedDimensionTranslationTransformPointer = typename ReducedDimensionTranslationTransformType::Pointer;
using typename Superclass1::ParametersType;
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 SizeType = typename FixedImageType::SizeType;
int
BeforeAll() override;
void
BeforeRegistration() override;
void
ReadFromFile() override;
protected:
TranslationStackTransform() { this->Superclass1::SetCurrentTransform(m_StackTransform); }
~TranslationStackTransform() override = default;
private:
elxOverrideGetSelfMacro;
void
InitializeTransform();
ParameterMapType
CreateDerivedTransformParameterMap() const override;
using StackTransformType = itk::TranslationStackTransform<SpaceDimension>;
const typename StackTransformType::Pointer m_StackTransform{ StackTransformType::New() };
ReducedDimensionTranslationTransformPointer m_DummySubTransform;
unsigned int m_NumberOfSubTransforms;
double m_StackOrigin, m_StackSpacing;
unsigned int
InitializeTranslationTransform();
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxTranslationStackTransform.hxx"
#endif
#endif // end #ifndef elxTranslationStackTransform_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::TranslationStackTransform::ReadFromFile
void ReadFromFile() override
elastix::TranslationStackTransform::~TranslationStackTransform
~TranslationStackTransform() override=default
elastix::TranslationStackTransform::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
elastix::TranslationStackTransform::m_StackSpacing
double m_StackSpacing
Definition elxTranslationStackTransform.h:162
elastix::TranslationStackTransform::TranslationTransformType
itk::AdvancedTranslationTransform< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension > TranslationTransformType
Definition elxTranslationStackTransform.h:92
elastix::TranslationStackTransform::m_NumberOfSubTransforms
unsigned int m_NumberOfSubTransforms
Definition elxTranslationStackTransform.h:161
elastix::TranslationStackTransform::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxTranslationStackTransform.h:141
elastix::TranslationStackTransform::InitializeTranslationTransform
unsigned int InitializeTranslationTransform()
elastix::TranslationStackTransform::StackTransformType
itk::TranslationStackTransform< SpaceDimension > StackTransformType
Definition elxTranslationStackTransform.h:152
elastix::TranslationStackTransform::TranslationTransformPointer
typename TranslationTransformType::Pointer TranslationTransformPointer
Definition elxTranslationStackTransform.h:94
elastix::TranslationStackTransform::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxTranslationStackTransform.h:112
elastix::TranslationStackTransform::m_StackTransform
const StackTransformType::Pointer m_StackTransform
Definition elxTranslationStackTransform.h:155
elastix::TranslationStackTransform::BeforeAll
int BeforeAll() override
elastix::TranslationStackTransform::Superclass2
elx::TransformBase< TElastix > Superclass2
Definition elxTranslationStackTransform.h:69
elastix::TranslationStackTransform::SizeType
typename FixedImageType::SizeType SizeType
Definition elxTranslationStackTransform.h:116
elastix::TranslationStackTransform::CreateDerivedTransformParameterMap
ParameterMapType CreateDerivedTransformParameterMap() const override
elastix::TranslationStackTransform::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxTranslationStackTransform.h:71
elastix::TranslationStackTransform::Superclass1
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
Definition elxTranslationStackTransform.h:67
elastix::TranslationStackTransform::m_StackOrigin
double m_StackOrigin
Definition elxTranslationStackTransform.h:162
elastix::TranslationStackTransform::InitializeTransform
void InitializeTransform()
elastix::TranslationStackTransform::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition elxTransformBase.h:199
elastix::TranslationStackTransform::Self
TranslationStackTransform Self
Definition elxTranslationStackTransform.h:66
elastix::TranslationStackTransform::elxClassNameMacro
elxClassNameMacro("TranslationStackTransform")
elastix::TranslationStackTransform::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(TranslationStackTransform)
elastix::TranslationStackTransform::CombinationTransformType
typename Superclass2::CombinationTransformType CombinationTransformType
Definition elxTranslationStackTransform.h:113
elastix::TranslationStackTransform::BeforeRegistration
void BeforeRegistration() override
elastix::TranslationStackTransform::itkStaticConstMacro
itkStaticConstMacro(ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1)
elastix::TranslationStackTransform::m_DummySubTransform
ReducedDimensionTranslationTransformPointer m_DummySubTransform
Definition elxTranslationStackTransform.h:158
elastix::TranslationStackTransform::ReducedDimensionTranslationTransformPointer
typename ReducedDimensionTranslationTransformType::Pointer ReducedDimensionTranslationTransformPointer
Definition elxTranslationStackTransform.h:99
elastix::TranslationStackTransform::ReducedDimensionTranslationTransformType
itk::AdvancedTranslationTransform< typename elx::TransformBase< TElastix >::CoordRepType, Self::ReducedSpaceDimension > ReducedDimensionTranslationTransformType
Definition elxTranslationStackTransform.h:97
elastix::TranslationStackTransform::Pointer
itk::SmartPointer< Self > Pointer
Definition elxTranslationStackTransform.h:70
elastix::TranslationStackTransform::TranslationStackTransform
TranslationStackTransform()
Definition elxTranslationStackTransform.h:135
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::TranslationStackTransform
Definition itkTranslationStackTransform.h:30
itk::TranslationStackTransform< SpaceDimension >::New
static Pointer New()
itk::TranslationStackTransform< SpaceDimension >::Pointer
itk::SmartPointer< TranslationStackTransform > Pointer
Definition itkTranslationStackTransform.h:39
elxIncludes.h
itkAdvancedCombinationTransform.h
itkAdvancedTranslationTransform.h
itkTranslationStackTransform.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |