Loading...
Searching...
No Matches
elxEulerStackTransform.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 elxEulerStackTransform_h
#define elxEulerStackTransform_h
#include "elxIncludes.h"
#include "itkAdvancedCombinationTransform.h"
#include "itkEulerStackTransform.h"
#include "itkEulerTransform.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT EulerStackTransform
: public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension>
, public elx::TransformBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(EulerStackTransform);
using Self = EulerStackTransform;
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(EulerStackTransform, itk::AdvancedCombinationTransform);
elxClassNameMacro("EulerStackTransform");
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
itkStaticConstMacro(ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1);
using EulerTransformType =
itk::EulerTransform<typename elx::TransformBase<TElastix>::CoordRepType, Self::SpaceDimension>;
using EulerTransformPointer = typename EulerTransformType::Pointer;
using InputPointType = typename EulerTransformType::InputPointType;
using ReducedDimensionEulerTransformType =
itk::EulerTransform<typename elx::TransformBase<TElastix>::CoordRepType, Self::ReducedSpaceDimension>;
using ReducedDimensionEulerTransformPointer = typename ReducedDimensionEulerTransformType::Pointer;
using ReducedDimensionOutputVectorType = typename ReducedDimensionEulerTransformType::OutputVectorType;
using ReducedDimensionInputPointType = typename ReducedDimensionEulerTransformType::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;
virtual void
InitialTransformCenter(ReducedDimensionInputPointType & point);
protected:
EulerStackTransform() { this->Superclass1::SetCurrentTransform(m_StackTransform); }
~EulerStackTransform() override = default;
virtual bool
ReadCenterOfRotationPoint(ReducedDimensionInputPointType & rotationPoint) const;
private:
elxOverrideGetSelfMacro;
void
InitializeTransform();
ParameterMapType
CreateDerivedTransformParameterMap() const override;
using StackTransformType = itk::EulerStackTransform<SpaceDimension>;
const typename StackTransformType::Pointer m_StackTransform{ StackTransformType::New() };
ReducedDimensionEulerTransformPointer m_DummySubTransform;
unsigned int m_NumberOfSubTransforms;
double m_StackOrigin, m_StackSpacing;
unsigned int
InitializeEulerTransform();
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxEulerStackTransform.hxx"
#endif
#endif // end #ifndef elxEulerStackTransform_h
elastix::BaseComponentSE::ElastixType
TElastix ElastixType
Definition elxBaseComponentSE.h:57
elastix::EulerStackTransform::ReducedDimensionSpacingType
typename ReducedDimensionImageType::SpacingType ReducedDimensionSpacingType
Definition elxEulerStackTransform.h:153
elastix::EulerStackTransform::ReadCenterOfRotationPoint
virtual bool ReadCenterOfRotationPoint(ReducedDimensionInputPointType &rotationPoint) const
elastix::EulerStackTransform::EulerTransformType
itk::EulerTransform< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension > EulerTransformType
Definition elxEulerStackTransform.h:119
elastix::EulerStackTransform::CreateDerivedTransformParameterMap
ParameterMapType CreateDerivedTransformParameterMap() const override
elastix::EulerStackTransform::EulerStackTransform
EulerStackTransform()
Definition elxEulerStackTransform.h:203
elastix::EulerStackTransform::SpacingType
typename FixedImageType::SpacingType SpacingType
Definition elxEulerStackTransform.h:164
elastix::EulerStackTransform::ReducedDimensionPointType
typename ReducedDimensionImageType::PointType ReducedDimensionPointType
Definition elxEulerStackTransform.h:150
elastix::EulerStackTransform::m_StackOrigin
double m_StackOrigin
Definition elxEulerStackTransform.h:239
elastix::EulerStackTransform::Self
EulerStackTransform Self
Definition elxEulerStackTransform.h:93
elastix::EulerStackTransform::ReducedDimensionImageType
itk::Image< PixelType, Self::ReducedSpaceDimension > ReducedDimensionImageType
Definition elxEulerStackTransform.h:148
elastix::EulerStackTransform::IndexType
typename FixedImageType::IndexType IndexType
Definition elxEulerStackTransform.h:161
elastix::EulerStackTransform::ReducedDimensionSizeType
typename ReducedDimensionImageType::SizeType ReducedDimensionSizeType
Definition elxEulerStackTransform.h:151
elastix::EulerStackTransform::CombinationTransformType
typename Superclass2::CombinationTransformType CombinationTransformType
Definition elxEulerStackTransform.h:144
elastix::EulerStackTransform::RegionType
typename FixedImageType::RegionType RegionType
Definition elxEulerStackTransform.h:165
elastix::EulerStackTransform::SizeType
typename FixedImageType::SizeType SizeType
Definition elxEulerStackTransform.h:162
elastix::EulerStackTransform::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxEulerStackTransform.h:143
elastix::EulerStackTransform::InputPointType
typename EulerTransformType::InputPointType InputPointType
Definition elxEulerStackTransform.h:122
elastix::EulerStackTransform::EulerTransformPointer
typename EulerTransformType::Pointer EulerTransformPointer
Definition elxEulerStackTransform.h:121
elastix::EulerStackTransform::~EulerStackTransform
~EulerStackTransform() override=default
elastix::EulerStackTransform::m_NumberOfSubTransforms
unsigned int m_NumberOfSubTransforms
Definition elxEulerStackTransform.h:238
elastix::EulerStackTransform::DirectionType
typename FixedImageType::DirectionType DirectionType
Definition elxEulerStackTransform.h:166
elastix::EulerStackTransform::ReducedDimensionEulerTransformType
itk::EulerTransform< typename elx::TransformBase< TElastix >::CoordRepType, Self::ReducedSpaceDimension > ReducedDimensionEulerTransformType
Definition elxEulerStackTransform.h:125
elastix::EulerStackTransform::SetScales
virtual void SetScales()
elastix::EulerStackTransform::InitialTransformCenter
virtual void InitialTransformCenter(ReducedDimensionInputPointType &point)
elastix::EulerStackTransform::BeforeAll
int BeforeAll() override
elastix::EulerStackTransform::PointType
typename FixedImageType::PointType PointType
Definition elxEulerStackTransform.h:163
elastix::EulerStackTransform::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition elxTransformBase.h:199
elastix::EulerStackTransform::ReducedDimensionEulerTransformPointer
typename ReducedDimensionEulerTransformType::Pointer ReducedDimensionEulerTransformPointer
Definition elxEulerStackTransform.h:127
elastix::EulerStackTransform::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxEulerStackTransform.h:217
elastix::EulerStackTransform::Pointer
itk::SmartPointer< Self > Pointer
Definition elxEulerStackTransform.h:97
elastix::EulerStackTransform::m_StackTransform
const StackTransformType::Pointer m_StackTransform
Definition elxEulerStackTransform.h:232
elastix::EulerStackTransform::StackTransformType
itk::EulerStackTransform< SpaceDimension > StackTransformType
Definition elxEulerStackTransform.h:229
elastix::EulerStackTransform::Superclass1
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
Definition elxEulerStackTransform.h:94
elastix::EulerStackTransform::ReducedDimensionDirectionType
typename ReducedDimensionImageType::DirectionType ReducedDimensionDirectionType
Definition elxEulerStackTransform.h:154
elastix::EulerStackTransform::Superclass2
elx::TransformBase< TElastix > Superclass2
Definition elxEulerStackTransform.h:96
elastix::EulerStackTransform::BeforeRegistration
void BeforeRegistration() override
elastix::EulerStackTransform::elxClassNameMacro
elxClassNameMacro("EulerStackTransform")
elastix::EulerStackTransform::m_StackSpacing
double m_StackSpacing
Definition elxEulerStackTransform.h:239
elastix::EulerStackTransform::ReadFromFile
void ReadFromFile() override
elastix::EulerStackTransform::ReducedDimensionOriginType
typename ReducedDimensionImageType::PointType ReducedDimensionOriginType
Definition elxEulerStackTransform.h:155
elastix::EulerStackTransform::ReducedDimensionOutputVectorType
typename ReducedDimensionEulerTransformType::OutputVectorType ReducedDimensionOutputVectorType
Definition elxEulerStackTransform.h:129
elastix::EulerStackTransform::m_DummySubTransform
ReducedDimensionEulerTransformPointer m_DummySubTransform
Definition elxEulerStackTransform.h:235
elastix::EulerStackTransform::ReducedDimensionInputPointType
typename ReducedDimensionEulerTransformType::InputPointType ReducedDimensionInputPointType
Definition elxEulerStackTransform.h:130
elastix::EulerStackTransform::ReducedDimensionContinuousIndexType
typename itk::ContinuousIndex< CoordRepType, ReducedSpaceDimension > ReducedDimensionContinuousIndexType
Definition elxEulerStackTransform.h:167
elastix::EulerStackTransform::ReducedDimensionRegionType
itk::ImageRegion< Self::ReducedSpaceDimension > ReducedDimensionRegionType
Definition elxEulerStackTransform.h:149
elastix::EulerStackTransform::InitializeTransform
void InitializeTransform()
elastix::EulerStackTransform::ContinuousIndexType
typename itk::ContinuousIndex< CoordRepType, SpaceDimension > ContinuousIndexType
Definition elxEulerStackTransform.h:168
elastix::EulerStackTransform::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(EulerStackTransform)
elastix::EulerStackTransform::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
elastix::EulerStackTransform::InitializeEulerTransform
unsigned int InitializeEulerTransform()
elastix::EulerStackTransform::ReducedDimensionIndexType
typename ReducedDimensionRegionType::IndexType ReducedDimensionIndexType
Definition elxEulerStackTransform.h:152
elastix::EulerStackTransform::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxEulerStackTransform.h:98
elastix::EulerStackTransform::itkStaticConstMacro
itkStaticConstMacro(ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1)
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::EulerStackTransform
Definition itkEulerStackTransform.h:30
itk::EulerStackTransform< SpaceDimension >::Pointer
itk::SmartPointer< EulerStackTransform > Pointer
Definition itkEulerStackTransform.h:39
itk::EulerStackTransform< SpaceDimension >::New
static Pointer New()
itk::EulerTransform
This class combines the Euler2DTransform with the Euler3DTransform.
Definition itkEulerTransform.h:89
elxIncludes.h
itkAdvancedCombinationTransform.h
itkEulerStackTransform.h
itkEulerTransform.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |