Loading...
Searching...
No Matches
elxAffineLogStackTransform.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 ELXAFFINELOGSTACKTRANSFORM_H
#define ELXAFFINELOGSTACKTRANSFORM_H
#include "itkAdvancedCombinationTransform.h"
#include "itkAffineLogStackTransform.h"
#include "../AffineLogTransform/itkAffineLogTransform.h"
#include "elxIncludes.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT AffineLogStackTransform
: public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension>
, public elx::TransformBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(AffineLogStackTransform);
using Self = AffineLogStackTransform;
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(AffineLogStackTransform, itk::AdvancedCombinationTransform);
elxClassNameMacro("AffineLogStackTransform");
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
itkStaticConstMacro(ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1);
using AffineLogTransformType =
itk::AffineLogTransform<typename elx::TransformBase<TElastix>::CoordRepType, Self::SpaceDimension>;
using AffineLogTransformPointer = typename AffineLogTransformType::Pointer;
using InputPointType = typename AffineLogTransformType::InputPointType;
using ReducedDimensionAffineLogTransformBaseType =
itk::AffineLogTransform<typename elx::TransformBase<TElastix>::CoordRepType, Self::ReducedSpaceDimension>;
using ReducedDimensionAffineLogTransformBasePointer = typename ReducedDimensionAffineLogTransformBaseType::Pointer;
using ReducedDimensionOutputVectorType = typename ReducedDimensionAffineLogTransformBaseType::OutputVectorType;
using ReducedDimensionInputPointType = typename ReducedDimensionAffineLogTransformBaseType::InputPointType;
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 PixelType = float;
using ReducedDimensionImageType = itk::Image<PixelType, Self::ReducedSpaceDimension>;
using ReducedDimensionRegionType = itk::ImageRegion<Self::ReducedSpaceDimension>;
using ReducedDimensionPointType = typename ReducedDimensionImageType::PointType;
using ReducedDimensionSizeType = typename ReducedDimensionImageType::SizeType;
using ReducedDimensionIndexType = typename ReducedDimensionRegionType::IndexType;
using ReducedDimensionSpacingType = typename ReducedDimensionImageType::SpacingType;
using ReducedDimensionDirectionType = typename ReducedDimensionImageType::DirectionType;
using ReducedDimensionOriginType = typename ReducedDimensionImageType::PointType;
using typename Superclass2::ScalesType;
using IndexType = typename FixedImageType::IndexType;
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;
using ReducedDimensionContinuousIndexType = typename itk::ContinuousIndex<CoordRepType, ReducedSpaceDimension>;
using ContinuousIndexType = typename itk::ContinuousIndex<CoordRepType, SpaceDimension>;
int
BeforeAll() override;
void
BeforeRegistration() override;
virtual void
SetScales();
void
ReadFromFile() override;
protected:
AffineLogStackTransform() { this->Superclass1::SetCurrentTransform(m_StackTransform); }
~AffineLogStackTransform() override = default;
virtual bool
ReadCenterOfRotationPoint(ReducedDimensionInputPointType & rotationPoint) const;
private:
elxOverrideGetSelfMacro;
void
InitializeTransform();
ParameterMapType
CreateDerivedTransformParameterMap() const override;
using StackTransformType = itk::AffineLogStackTransform<SpaceDimension>;
const typename StackTransformType::Pointer m_StackTransform{ StackTransformType::New() };
ReducedDimensionAffineLogTransformBasePointer m_DummySubTransform;
unsigned int m_NumberOfSubTransforms;
double m_StackOrigin, m_StackSpacing;
unsigned int
InitializeAffineLogTransform();
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxAffineLogStackTransform.hxx"
#endif
#endif // ELXAFFINELOGSTACKTRANSFORM_H
elastix::AffineLogStackTransform::SetScales
virtual void SetScales()
elastix::AffineLogStackTransform::m_StackOrigin
double m_StackOrigin
Definition elxAffineLogStackTransform.h:189
elastix::AffineLogStackTransform::SpacingType
typename FixedImageType::SpacingType SpacingType
Definition elxAffineLogStackTransform.h:118
elastix::AffineLogStackTransform::ReducedDimensionOriginType
typename ReducedDimensionImageType::PointType ReducedDimensionOriginType
Definition elxAffineLogStackTransform.h:109
elastix::AffineLogStackTransform::ContinuousIndexType
typename itk::ContinuousIndex< CoordRepType, SpaceDimension > ContinuousIndexType
Definition elxAffineLogStackTransform.h:122
elastix::AffineLogStackTransform::InitializeTransform
void InitializeTransform()
elastix::AffineLogStackTransform::m_StackSpacing
double m_StackSpacing
Definition elxAffineLogStackTransform.h:189
elastix::AffineLogStackTransform::DirectionType
typename FixedImageType::DirectionType DirectionType
Definition elxAffineLogStackTransform.h:120
elastix::AffineLogStackTransform::BeforeAll
int BeforeAll() override
elastix::AffineLogStackTransform::AffineLogTransformType
itk::AffineLogTransform< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension > AffineLogTransformType
Definition elxAffineLogStackTransform.h:73
elastix::AffineLogStackTransform::ReducedDimensionRegionType
itk::ImageRegion< Self::ReducedSpaceDimension > ReducedDimensionRegionType
Definition elxAffineLogStackTransform.h:103
elastix::AffineLogStackTransform::ReducedDimensionContinuousIndexType
typename itk::ContinuousIndex< CoordRepType, ReducedSpaceDimension > ReducedDimensionContinuousIndexType
Definition elxAffineLogStackTransform.h:121
elastix::AffineLogStackTransform::CreateDerivedTransformParameterMap
ParameterMapType CreateDerivedTransformParameterMap() const override
elastix::AffineLogStackTransform::ReadFromFile
void ReadFromFile() override
elastix::AffineLogStackTransform::RegionType
typename FixedImageType::RegionType RegionType
Definition elxAffineLogStackTransform.h:119
elastix::AffineLogStackTransform::m_NumberOfSubTransforms
unsigned int m_NumberOfSubTransforms
Definition elxAffineLogStackTransform.h:188
elastix::AffineLogStackTransform::m_StackTransform
const StackTransformType::Pointer m_StackTransform
Definition elxAffineLogStackTransform.h:182
elastix::AffineLogStackTransform::ReducedDimensionImageType
itk::Image< PixelType, Self::ReducedSpaceDimension > ReducedDimensionImageType
Definition elxAffineLogStackTransform.h:102
elastix::AffineLogStackTransform::ReducedDimensionOutputVectorType
typename ReducedDimensionAffineLogTransformBaseType::OutputVectorType ReducedDimensionOutputVectorType
Definition elxAffineLogStackTransform.h:83
elastix::AffineLogStackTransform::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxAffineLogStackTransform.h:97
elastix::AffineLogStackTransform::AffineLogTransformPointer
typename AffineLogTransformType::Pointer AffineLogTransformPointer
Definition elxAffineLogStackTransform.h:75
elastix::AffineLogStackTransform::ReducedDimensionPointType
typename ReducedDimensionImageType::PointType ReducedDimensionPointType
Definition elxAffineLogStackTransform.h:104
elastix::AffineLogStackTransform::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition elxTransformBase.h:199
elastix::AffineLogStackTransform::Pointer
itk::SmartPointer< Self > Pointer
Definition elxAffineLogStackTransform.h:54
elastix::AffineLogStackTransform::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
elastix::AffineLogStackTransform::ReadCenterOfRotationPoint
virtual bool ReadCenterOfRotationPoint(ReducedDimensionInputPointType &rotationPoint) const
elastix::AffineLogStackTransform::Superclass2
elx::TransformBase< TElastix > Superclass2
Definition elxAffineLogStackTransform.h:53
elastix::AffineLogStackTransform::InitializeAffineLogTransform
unsigned int InitializeAffineLogTransform()
elastix::AffineLogStackTransform::InputPointType
typename AffineLogTransformType::InputPointType InputPointType
Definition elxAffineLogStackTransform.h:76
elastix::AffineLogStackTransform::m_DummySubTransform
ReducedDimensionAffineLogTransformBasePointer m_DummySubTransform
Definition elxAffineLogStackTransform.h:185
elastix::AffineLogStackTransform::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxAffineLogStackTransform.h:167
elastix::AffineLogStackTransform::ReducedDimensionSizeType
typename ReducedDimensionImageType::SizeType ReducedDimensionSizeType
Definition elxAffineLogStackTransform.h:105
elastix::AffineLogStackTransform::elxClassNameMacro
elxClassNameMacro("AffineLogStackTransform")
elastix::AffineLogStackTransform::~AffineLogStackTransform
~AffineLogStackTransform() override=default
elastix::AffineLogStackTransform::ReducedDimensionInputPointType
typename ReducedDimensionAffineLogTransformBaseType::InputPointType ReducedDimensionInputPointType
Definition elxAffineLogStackTransform.h:84
elastix::AffineLogStackTransform::SizeType
typename FixedImageType::SizeType SizeType
Definition elxAffineLogStackTransform.h:116
elastix::AffineLogStackTransform::BeforeRegistration
void BeforeRegistration() override
elastix::AffineLogStackTransform::PointType
typename FixedImageType::PointType PointType
Definition elxAffineLogStackTransform.h:117
elastix::AffineLogStackTransform::CombinationTransformType
typename Superclass2::CombinationTransformType CombinationTransformType
Definition elxAffineLogStackTransform.h:98
elastix::AffineLogStackTransform::Superclass1
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
Definition elxAffineLogStackTransform.h:51
elastix::AffineLogStackTransform::ReducedDimensionIndexType
typename ReducedDimensionRegionType::IndexType ReducedDimensionIndexType
Definition elxAffineLogStackTransform.h:106
elastix::AffineLogStackTransform::ReducedDimensionSpacingType
typename ReducedDimensionImageType::SpacingType ReducedDimensionSpacingType
Definition elxAffineLogStackTransform.h:107
elastix::AffineLogStackTransform::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(AffineLogStackTransform)
elastix::AffineLogStackTransform::Self
AffineLogStackTransform Self
Definition elxAffineLogStackTransform.h:50
elastix::AffineLogStackTransform::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxAffineLogStackTransform.h:55
elastix::AffineLogStackTransform::AffineLogStackTransform
AffineLogStackTransform()
Definition elxAffineLogStackTransform.h:153
elastix::AffineLogStackTransform::IndexType
typename FixedImageType::IndexType IndexType
Definition elxAffineLogStackTransform.h:115
elastix::AffineLogStackTransform::ReducedDimensionDirectionType
typename ReducedDimensionImageType::DirectionType ReducedDimensionDirectionType
Definition elxAffineLogStackTransform.h:108
elastix::AffineLogStackTransform::StackTransformType
itk::AffineLogStackTransform< SpaceDimension > StackTransformType
Definition elxAffineLogStackTransform.h:179
elastix::AffineLogStackTransform::ReducedDimensionAffineLogTransformBaseType
itk::AffineLogTransform< typename elx::TransformBase< TElastix >::CoordRepType, Self::ReducedSpaceDimension > ReducedDimensionAffineLogTransformBaseType
Definition elxAffineLogStackTransform.h:79
elastix::AffineLogStackTransform::ReducedDimensionAffineLogTransformBasePointer
typename ReducedDimensionAffineLogTransformBaseType::Pointer ReducedDimensionAffineLogTransformBasePointer
Definition elxAffineLogStackTransform.h:81
elastix::AffineLogStackTransform::itkStaticConstMacro
itkStaticConstMacro(ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1)
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::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
float
itk::AdvancedCombinationTransform
This class combines two transforms: an 'initial transform' with a 'current transform'.
Definition itkAdvancedCombinationTransform.h:57
itk::AffineLogStackTransform
Definition itkAffineLogStackTransform.h:30
itk::AffineLogStackTransform< SpaceDimension >::Pointer
itk::SmartPointer< AffineLogStackTransform > Pointer
Definition itkAffineLogStackTransform.h:39
itk::AffineLogStackTransform< SpaceDimension >::New
static Pointer New()
itk::AffineLogTransform
Definition itkAffineLogTransform.h:34
elxIncludes.h
itkAdvancedCombinationTransform.h
itkAffineLogStackTransform.h
itkAffineLogTransform.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |