go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxBSplineStackTransform.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 __elxBSplineStackTransform_h
19#define __elxBSplineStackTransform_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
22
26#include "itkStackTransform.h"
27
31
32namespace elastix
33{
34
111template< class TElastix >
113 public
115 typename elx::TransformBase< TElastix >::CoordRepType,
116 elx::TransformBase< TElastix >::FixedImageDimension >,
117 public
118 TransformBase< TElastix >
119{
120public:
121
128 typedef itk::SmartPointer< Self > Pointer;
129 typedef itk::SmartPointer< const Self > ConstPointer;
130
132 itkNewMacro( Self );
133
136
141 elxClassNameMacro( "BSplineStackTransform" );
142
144 itkStaticConstMacro( SpaceDimension, unsigned int, Superclass2::FixedImageDimension );
145 itkStaticConstMacro( ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1 );
146
152 itkGetStaticConstMacro( SpaceDimension ) > BSplineTransformBaseType;
154
158 itkGetStaticConstMacro( ReducedSpaceDimension ) > ReducedDimensionBSplineTransformBaseType;
160
162 typedef itk::StackTransform<
164 itkGetStaticConstMacro( SpaceDimension ),
165 itkGetStaticConstMacro( SpaceDimension ) > BSplineStackTransformType;
167
171 itkGetStaticConstMacro( ReducedSpaceDimension ),
175 itkGetStaticConstMacro( ReducedSpaceDimension ),
179 itkGetStaticConstMacro( ReducedSpaceDimension ),
181
186
188 typedef typename BSplineTransformBaseType::PixelType PixelType;
197
210
212 typedef itk::Image< PixelType,
213 itkGetStaticConstMacro( ReducedSpaceDimension ) > ReducedDimensionImageType;
214 typedef itk::ImageRegion<
215 itkGetStaticConstMacro( ReducedSpaceDimension ) > ReducedDimensionRegionType;
216 typedef typename ReducedDimensionRegionType::SizeType ReducedDimensionSizeType;
217 typedef typename ReducedDimensionRegionType::IndexType ReducedDimensionIndexType;
218 typedef typename ReducedDimensionImageType::SpacingType ReducedDimensionSpacingType;
219 typedef typename ReducedDimensionImageType::DirectionType ReducedDimensionDirectionType;
220 typedef typename ReducedDimensionImageType::PointType ReducedDimensionOriginType;
221
224 CoordRepType, ReducedSpaceDimension > GridScheduleComputerType;
226 typedef typename GridScheduleComputerType
231
233 typedef std::vector< std::string > ParameterValueType;
234
240 int BeforeAll( void ) override;
241
255 void BeforeRegistration( void ) override;
256
261 void BeforeEachResolution( void ) override;
262
268 virtual void InitializeTransform( void );
269
276 virtual void IncreaseScale( void );
277
279 void ReadFromFile( void ) override;
280
282 void WriteToFile( const ParametersType & param ) const override;
283
285 virtual void SetOptimizerScales( const unsigned int edgeWidth );
286
289 const ParametersType & param, ParameterMapType * paramsMap ) const override;
290
291protected:
292
295
298
300 virtual void PreComputeGridInformation( void );
301
302private:
303
305 BSplineStackTransform( const Self & ); // purposely not implemented
306 void operator=( const Self & ); // purposely not implemented
307
312
316
318 unsigned int m_SplineOrder;
319
323
326
327};
328
329} // end namespace elastix
330
331#ifndef ITK_MANUAL_INSTANTIATION
332#include "elxBSplineStackTransform.hxx"
333#endif
334
335#endif // end #ifndef __elxBSplineStackTransform_h
A B-spline transform based on the itkStackTransform.
ReducedDimensionBSplineTransformBaseType::Pointer ReducedDimensionBSplineTransformBasePointer
Superclass2::ParameterMapType ParameterMapType
void CreateTransformParametersMap(const ParametersType &param, ParameterMapType *paramsMap) const override
void BeforeRegistration(void) override
BSplineTransformBaseType::IndexType IndexType
Superclass1::NumberOfParametersType NumberOfParametersType
itk::AdvancedBSplineDeformableTransformBase< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension) > BSplineTransformBaseType
GridScheduleComputerType::Pointer GridScheduleComputerPointer
virtual void InitializeTransform(void)
itk::SmartPointer< const Self > ConstPointer
Superclass2::ElastixPointer ElastixPointer
Superclass2::CombinationTransformType CombinationTransformType
Superclass1::ParametersType ParametersType
Superclass2::CoordRepType CoordRepType
Superclass2::MovingImageType MovingImageType
void WriteToFile(const ParametersType &param) const override
Superclass2::ConfigurationType ConfigurationType
ReducedDimensionImageType::SpacingType ReducedDimensionSpacingType
GridScheduleComputerPointer m_GridScheduleComputer
ReducedDimensionRegionType::IndexType ReducedDimensionIndexType
Superclass2::FixedImageType FixedImageType
BSplineStackTransformPointer m_BSplineStackTransform
virtual void PreComputeGridInformation(void)
Superclass2::RegistrationPointer RegistrationPointer
itk::AdvancedBSplineDeformableTransformBase< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionBSplineTransformBaseType
itk::AdvancedBSplineDeformableTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(ReducedSpaceDimension), 1 > BSplineTransformLinearType
BSplineTransformBaseType::Pointer BSplineTransformBasePointer
BSplineTransformBaseType::SpacingType SpacingType
ReducedDimensionImageType::DirectionType ReducedDimensionDirectionType
Superclass2::ConfigurationPointer ConfigurationPointer
itk::UpsampleBSplineParametersFilter< ParametersType, ReducedDimensionImageType > GridUpsamplerType
void BeforeEachResolution(void) override
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
BSplineTransformBaseType::OriginType OriginType
itk::GridScheduleComputer< CoordRepType, ReducedSpaceDimension > GridScheduleComputerType
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
void operator=(const Self &)
BSplineTransformBaseType::DirectionType DirectionType
itk::AdvancedBSplineDeformableTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(ReducedSpaceDimension), 3 > BSplineTransformCubicType
itk::AdvancedBSplineDeformableTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(ReducedSpaceDimension), 2 > BSplineTransformQuadraticType
BSplineTransformBaseType::RegionType RegionType
Superclass2::RegistrationType RegistrationType
ReducedDimensionRegionType::SizeType ReducedDimensionSizeType
BSplineTransformBaseType::ImagePointer ImagePointer
void ReadFromFile(void) override
std::vector< std::string > ParameterValueType
ReducedDimensionImageType::PointType ReducedDimensionOriginType
GridUpsamplerType::Pointer GridUpsamplerPointer
virtual void IncreaseScale(void)
elxClassNameMacro("BSplineStackTransform")
BSplineStackTransformType::Pointer BSplineStackTransformPointer
itk::Image< PixelType, itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionImageType
unsigned int InitializeBSplineTransform()
BSplineTransformBaseType::ImageType ImageType
ReducedDimensionBSplineTransformBasePointer m_BSplineDummySubTransform
elx::TransformBase< TElastix > Superclass2
int BeforeAll(void) override
virtual void SetOptimizerScales(const unsigned int edgeWidth)
BSplineTransformBaseType::SizeType SizeType
itk::ImageRegion< itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionRegionType
GridScheduleComputerType::VectorGridSpacingFactorType GridScheduleType
itkStaticConstMacro(ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1)
itk::StackTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension), itkGetStaticConstMacro(SpaceDimension) > BSplineStackTransformType
A class that deals with user given parameters and command line arguments.
This class is the elastix base class for all Transforms.
Configuration::Pointer ConfigurationPointer
ElastixType::FixedImageType FixedImageType
ElastixType::ParameterMapType ParameterMapType
itk::WeakPointer< ElastixType > ElastixPointer
RegistrationType * RegistrationPointer
ElastixType::MovingImageType MovingImageType
ElastixType::CoordRepType CoordRepType
ElastixType::RegistrationBaseType RegistrationType
Base class for deformable transform using a B-spline representation.
Deformable transform using a B-spline representation.
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 computes all information about the B-spline grid, given the image information and the desi...
std::vector< GridSpacingFactorType > VectorGridSpacingFactorType
Implements stack of transforms: one for every last dimension index.
Convenience class for upsampling a B-spline coefficient image.


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo