go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxEulerStackTransform.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef __elxEulerStackTransform_h
19#define __elxEulerStackTransform_h
20
21#include "elxIncludes.h"
24#include "itkStackTransform.h"
25#include "itkEulerTransform.h"
26
27namespace elastix
28{
29
80template< class TElastix >
83 typename elx::TransformBase< TElastix >::CoordRepType,
84 elx::TransformBase< TElastix >::FixedImageDimension >,
85 public elx::TransformBase< TElastix >
86{
87public:
88
95 typedef itk::SmartPointer< Self > Pointer;
96 typedef itk::SmartPointer< const Self > ConstPointer;
97
99 itkNewMacro( Self );
100
103
108 elxClassNameMacro( "EulerStackTransform" );
109
111 itkStaticConstMacro( SpaceDimension, unsigned int, Superclass2::FixedImageDimension );
112 itkStaticConstMacro( ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1 );
113
117 typedef itk::EulerTransform<
119 itkGetStaticConstMacro( SpaceDimension ) > EulerTransformType;
122
124 typedef itk::EulerTransform<
126 itkGetStaticConstMacro( ReducedSpaceDimension ) > ReducedDimensionEulerTransformType;
128
131
133 typedef itk::StackTransform<
135 itkGetStaticConstMacro( SpaceDimension ),
136 itkGetStaticConstMacro( SpaceDimension ) > EulerStackTransformType;
138
142
155
157 typedef float PixelType;
158 typedef itk::Image< PixelType,
159 itkGetStaticConstMacro( ReducedSpaceDimension ) > ReducedDimensionImageType;
160 typedef itk::ImageRegion<
161 itkGetStaticConstMacro( ReducedSpaceDimension ) > ReducedDimensionRegionType;
162 typedef typename ReducedDimensionImageType::PointType ReducedDimensionPointType;
163 typedef typename ReducedDimensionImageType::SizeType ReducedDimensionSizeType;
164 typedef typename ReducedDimensionRegionType::IndexType ReducedDimensionIndexType;
165 typedef typename ReducedDimensionImageType::SpacingType ReducedDimensionSpacingType;
166 typedef typename ReducedDimensionImageType::DirectionType ReducedDimensionDirectionType;
167 typedef typename ReducedDimensionImageType::PointType ReducedDimensionOriginType;
168
171
173 typedef typename FixedImageType::IndexType IndexType;
174 typedef typename FixedImageType::SizeType SizeType;
175 typedef typename FixedImageType::PointType PointType;
176 typedef typename FixedImageType::SpacingType SpacingType;
177 typedef typename FixedImageType::RegionType RegionType;
178 typedef typename FixedImageType::DirectionType DirectionType;
179 typedef typename itk::ContinuousIndex< CoordRepType, ReducedSpaceDimension > ReducedDimensionContinuousIndexType;
180 typedef typename itk::ContinuousIndex< CoordRepType, SpaceDimension > ContinuousIndexType;
181
184 int BeforeAll( void ) override;
185
191 void BeforeRegistration( void ) override;
192
194 virtual void InitializeTransform( void );
195
203 virtual void SetScales( void );
204
206 void ReadFromFile( void ) override;
207
209 void WriteToFile( const ParametersType & param ) const override;
210
213
214protected:
215
218
221
227 virtual bool ReadCenterOfRotationPoint( ReducedDimensionInputPointType & rotationPoint ) const;
228
229private:
230
232 EulerStackTransform( const Self & ); // purposely not implemented
233 void operator=( const Self & ); // purposely not implemented
234
237
240
244
247
248};
249
250
251} // end namespace elastix
252
253#ifndef ITK_MANUAL_INSTANTIATION
254#include "elxEulerStackTransform.hxx"
255#endif
256
257#endif // end #ifndef __elxEulerStackTransform_h
A class that deals with user given parameters and command line arguments.
A stack transform based on the itk EulerTransforms.
ReducedDimensionEulerTransformType::OutputVectorType ReducedDimensionOutputVectorType
ReducedDimensionEulerTransformPointer m_EulerDummySubTransform
Superclass1::ParametersType ParametersType
virtual bool ReadCenterOfRotationPoint(ReducedDimensionInputPointType &rotationPoint) const
Superclass2::ConfigurationType ConfigurationType
ReducedDimensionImageType::SizeType ReducedDimensionSizeType
itk::EulerTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension) > EulerTransformType
FixedImageType::SpacingType SpacingType
itk::ImageRegion< itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionRegionType
Superclass2::FixedImageType FixedImageType
Superclass2::ElastixType ElastixType
void BeforeRegistration(void) override
ReducedDimensionImageType::SpacingType ReducedDimensionSpacingType
EulerTransformType::InputPointType InputPointType
EulerStackTransform(const Self &)
FixedImageType::DirectionType DirectionType
itk::ContinuousIndex< CoordRepType, SpaceDimension > ContinuousIndexType
Superclass2::MovingImageType MovingImageType
EulerTransformType::Pointer EulerTransformPointer
Superclass1::NumberOfParametersType NumberOfParametersType
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
Superclass2::RegistrationType RegistrationType
itk::EulerTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionEulerTransformType
itk::Image< PixelType, itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionImageType
virtual void SetScales(void)
itk::SmartPointer< const Self > ConstPointer
virtual void InitializeTransform(void)
virtual void InitialTransformCenter(ReducedDimensionInputPointType &point)
ReducedDimensionImageType::DirectionType ReducedDimensionDirectionType
void WriteToFile(const ParametersType &param) const override
FixedImageType::IndexType IndexType
Superclass2::ITKBaseType ITKBaseType
Superclass2::CoordRepType CoordRepType
EulerStackTransformType::Pointer EulerStackTransformPointer
FixedImageType::RegionType RegionType
void ReadFromFile(void) override
elx::TransformBase< TElastix > Superclass2
itk::SmartPointer< Self > Pointer
Superclass2::ScalesType ScalesType
Superclass2::ConfigurationPointer ConfigurationPointer
elxClassNameMacro("EulerStackTransform")
ReducedDimensionEulerTransformType::InputPointType ReducedDimensionInputPointType
ReducedDimensionEulerTransformType::Pointer ReducedDimensionEulerTransformPointer
itk::ContinuousIndex< CoordRepType, ReducedSpaceDimension > ReducedDimensionContinuousIndexType
FixedImageType::SizeType SizeType
itk::StackTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension), itkGetStaticConstMacro(SpaceDimension) > EulerStackTransformType
ReducedDimensionImageType::PointType ReducedDimensionOriginType
Superclass2::RegistrationPointer RegistrationPointer
int BeforeAll(void) override
FixedImageType::PointType PointType
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
unsigned int InitializeEulerTransform()
void operator=(const Self &)
Superclass2::CombinationTransformType CombinationTransformType
ReducedDimensionRegionType::IndexType ReducedDimensionIndexType
ReducedDimensionImageType::PointType ReducedDimensionPointType
Superclass2::ElastixPointer ElastixPointer
itkStaticConstMacro(ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1)
EulerStackTransformPointer m_EulerStackTransform
This class is the elastix base class for all Transforms.
Configuration::Pointer ConfigurationPointer
ElastixType::FixedImageType FixedImageType
itk::WeakPointer< ElastixType > ElastixPointer
OptimizerType::ScalesType ScalesType
RegistrationType * RegistrationPointer
ElastixType::MovingImageType MovingImageType
ElastixType::CoordRepType CoordRepType
ElastixType::RegistrationBaseType RegistrationType
This class combines two transforms: an 'initial transform' with a 'current transform'.
Superclass::NumberOfParametersType NumberOfParametersType
Transform maps points, vectors and covariant vectors from an input space to an output space.
This class combines the Euler2DTransform with the Euler3DTransform.
Superclass::InputPointType InputPointType
Superclass::OutputVectorType OutputVectorType
Implements stack of transforms: one for every last dimension index.


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo