go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxAdvancedBSplineTransform.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 __elxAdvancedBSplineTransform_h
19 #define __elxAdvancedBSplineTransform_h
20 
21 #include "elxIncludes.h" // include first to avoid MSVS warning
24 
29 
30 namespace elastix
31 {
106 template< class TElastix >
108  public
110  typename elx::TransformBase< TElastix >::CoordRepType,
111  elx::TransformBase< TElastix >::FixedImageDimension >,
112  public
113  TransformBase< TElastix >
114 {
115 public:
116 
123  typedef itk::SmartPointer< Self > Pointer;
124  typedef itk::SmartPointer< const Self > ConstPointer;
125 
127  itkNewMacro( Self );
128 
131 
136  elxClassNameMacro( "BSplineTransform" );
137 
139  itkStaticConstMacro( SpaceDimension, unsigned int, Superclass2::FixedImageDimension );
140 
145  typename elx::TransformBase< TElastix >::CoordRepType,
146  itkGetStaticConstMacro( SpaceDimension ) > BSplineTransformBaseType;
148 
151  typename elx::TransformBase< TElastix >::CoordRepType,
152  itkGetStaticConstMacro( SpaceDimension ),
155  typename elx::TransformBase< TElastix >::CoordRepType,
156  itkGetStaticConstMacro( SpaceDimension ),
159  typename elx::TransformBase< TElastix >::CoordRepType,
160  itkGetStaticConstMacro( SpaceDimension ),
163  typename elx::TransformBase< TElastix >::CoordRepType,
164  itkGetStaticConstMacro( SpaceDimension ),
167  typename elx::TransformBase< TElastix >::CoordRepType,
168  itkGetStaticConstMacro( SpaceDimension ),
171  typename elx::TransformBase< TElastix >::CoordRepType,
172  itkGetStaticConstMacro( SpaceDimension ),
174 
188 
199  typedef typename
201  typedef typename
203 
216 
223  typedef typename GridScheduleComputerType
228 
231 
236  virtual int BeforeAll( void );
237 
249  virtual void BeforeRegistration( void );
250 
255  virtual void BeforeEachResolution( void );
256 
262  virtual void InitializeTransform( void );
263 
269  virtual void IncreaseScale( void );
270 
272  virtual void ReadFromFile( void );
273 
275  virtual void WriteToFile( const ParametersType & param ) const;
276 
281  virtual void CreateTransformParametersMap(
282  const ParametersType & param, ParameterMapType * paramsMap ) const;
283 
285  virtual void SetOptimizerScales( const unsigned int edgeWidth );
286 
287 protected:
288 
291 
294 
296  virtual void PreComputeGridInformation( void );
297 
298 private:
299 
301  AdvancedBSplineTransform( const Self & ); // purposely not implemented
303  void operator=( const Self & ); // purposely not implemented
304 
306  BSplineTransformBasePointer m_BSplineTransform;
307  GridScheduleComputerPointer m_GridScheduleComputer;
308  GridUpsamplerPointer m_GridUpsampler;
309 
311  unsigned int m_SplineOrder;
312  bool m_Cyclic;
313 
315  unsigned int InitializeBSplineTransform();
316 
317 };
318 
319 } // end namespace elastix
320 
321 #ifndef ITK_MANUAL_INSTANTIATION
322 #include "elxAdvancedBSplineTransform.hxx"
323 #endif
324 
325 #endif // end #ifndef __elxAdvancedBSplineTransform_h
unsigned int InitializeBSplineTransform()
This class combines two transforms: an 'initial transform' with a 'current transform'.
virtual void PreComputeGridInformation(void)
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass1::InputVnlVectorType InputVnlVectorType
Superclass::RegistrationPointer RegistrationPointer
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Deformable transform using a B-spline representation.
BSplineTransformBaseType::ImagePointer ImagePointer
Superclass1::OutputCovariantVectorType OutputCovariantVectorType
BSplineTransformBaseType::SizeType SizeType
virtual void SetOptimizerScales(const unsigned int edgeWidth)
GridUpsamplerType::Pointer GridUpsamplerPointer
ElastixType::ParameterMapType ParameterMapType
Superclass1::OutputVectorType OutputVectorType
Superclass1::InputCovariantVectorType InputCovariantVectorType
Superclass2::RegistrationPointer RegistrationPointer
itk::UpsampleBSplineParametersFilter< ParametersType, ImageType > GridUpsamplerType
ImageRegion< itkGetStaticConstMacro(SpaceDimension) > RegionType
GridScheduleComputerPointer m_GridScheduleComputer
std::vector< GridSpacingFactorType > VectorGridSpacingFactorType
Superclass1::OutputVnlVectorType OutputVnlVectorType
itk::AdvancedBSplineDeformableTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension), 3 > BSplineTransformCubicType
BSplineTransformBaseType::Pointer BSplineTransformBasePointer
elx::TransformBase< TElastix > Superclass2
itk::AdvancedBSplineDeformableTransformBase< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension) > BSplineTransformBaseType
BSplineTransformBaseType::ContinuousIndexType ContinuousIndexType
BSplineTransformBaseType::ImageType ImageType
BSplineTransformBasePointer m_BSplineTransform
itk::CyclicBSplineDeformableTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension), 3 > CyclicBSplineTransformCubicType
BSplineTransformBaseType::PixelType PixelType
ElastixType::FixedImageType FixedImageType
itk::CyclicBSplineDeformableTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension), 2 > CyclicBSplineTransformQuadraticType
BSplineTransformBaseType::DirectionType DirectionType
Superclass1::InputVectorType InputVectorType
virtual void WriteToFile(void) const
Deformable transform using a B-spline representation in which the B-spline grid is formulated in a cy...
This class computes all information about the B-spline grid, given the image information and the desi...
Superclass::ElastixType ElastixType
Transform maps points, vectors and covariant vectors from an input space to an output space...
BSplineTransformBaseType::SpacingType SpacingType
Superclass2::ConfigurationPointer ConfigurationPointer
GridScheduleComputerType::Pointer GridScheduleComputerPointer
BSplineTransformBaseType::IndexType IndexType
Superclass2::ParameterMapType ParameterMapType
virtual void InitializeTransform(void)
Superclass1::OutputPointType OutputPointType
ElastixType::MovingImageType MovingImageType
Superclass2::ConfigurationType ConfigurationType
Superclass::ElastixPointer ElastixPointer
ElastixType::CoordRepType CoordRepType
Superclass::RegistrationType RegistrationType
Superclass1::NumberOfParametersType NumberOfParametersType
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
This class computes all information about the B-spline grid.
itk::CyclicGridScheduleComputer< CoordRepType, SpaceDimension > CyclicGridScheduleComputerType
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
Superclass2::MovingImageType MovingImageType
virtual void BeforeRegistration(void)
Superclass::NumberOfParametersType NumberOfParametersType
ContinuousIndex< ScalarType, SpaceDimension > ContinuousIndexType
itk::SmartPointer< const Self > ConstPointer
This class is the elastix base class for all Transforms.
A transform based on the itkAdvancedBSplineTransform.
BSplineTransformBaseType::RegionType RegionType
Superclass::ConfigurationType ConfigurationType
Superclass::OutputVnlVectorType OutputVnlVectorType
itk::AdvancedBSplineDeformableTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension), 1 > BSplineTransformLinearType
itk::CyclicBSplineDeformableTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension), 1 > CyclicBSplineTransformLinearType
BSplineTransformBaseType::ParameterIndexArrayType ParameterIndexArrayType
Convenience class for upsampling a B-spline coefficient image.
Superclass::ConfigurationPointer ConfigurationPointer
Superclass::InputVnlVectorType InputVnlVectorType
Superclass2::CombinationTransformType CombinationTransformType
Base class for deformable transform using a B-spline representation.
Superclass2::RegistrationType RegistrationType
virtual void CreateTransformParametersMap(const ParametersType &param, ParameterMapType *paramsMap) const
itk::AdvancedBSplineDeformableTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension), 2 > BSplineTransformQuadraticType
elxClassNameMacro("BSplineTransform")
virtual void IncreaseScale(void)
virtual void BeforeEachResolution(void)
BSplineTransformBaseType::OriginType OriginType
GridScheduleComputerType::VectorGridSpacingFactorType GridScheduleType
itk::GridScheduleComputer< CoordRepType, SpaceDimension > GridScheduleComputerType


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo