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 
32 namespace elastix
33 {
34 
111 template< class TElastix >
113  public
115  typename elx::TransformBase< TElastix >::CoordRepType,
116  elx::TransformBase< TElastix >::FixedImageDimension >,
117  public
118  TransformBase< TElastix >
119 {
120 public:
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 
151  typename elx::TransformBase< TElastix >::CoordRepType,
152  itkGetStaticConstMacro( SpaceDimension ) > BSplineTransformBaseType;
154 
157  typename elx::TransformBase< TElastix >::CoordRepType,
158  itkGetStaticConstMacro( ReducedSpaceDimension ) > ReducedDimensionBSplineTransformBaseType;
160 
162  typedef itk::StackTransform<
163  typename elx::TransformBase< TElastix >::CoordRepType,
164  itkGetStaticConstMacro( SpaceDimension ),
165  itkGetStaticConstMacro( SpaceDimension ) > BSplineStackTransformType;
167 
170  typename elx::TransformBase< TElastix >::CoordRepType,
171  itkGetStaticConstMacro( ReducedSpaceDimension ),
174  typename elx::TransformBase< TElastix >::CoordRepType,
175  itkGetStaticConstMacro( ReducedSpaceDimension ),
178  typename elx::TransformBase< TElastix >::CoordRepType,
179  itkGetStaticConstMacro( ReducedSpaceDimension ),
181 
186 
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  virtual int BeforeAll( void );
241 
255  virtual void BeforeRegistration( void );
256 
261  virtual void BeforeEachResolution( void );
262 
268  virtual void InitializeTransform( void );
269 
276  virtual void IncreaseScale( void );
277 
279  virtual void ReadFromFile( void );
280 
282  virtual void WriteToFile( const ParametersType & param ) const;
283 
285  virtual void SetOptimizerScales( const unsigned int edgeWidth );
286 
288  virtual void CreateTransformParametersMap(
289  const ParametersType & param, ParameterMapType * paramsMap ) const;
290 
291 protected:
292 
295 
298 
300  virtual void PreComputeGridInformation( void );
301 
302 private:
303 
305  BSplineStackTransform( const Self & ); // purposely not implemented
306  void operator=( const Self & ); // purposely not implemented
307 
309  BSplineStackTransformPointer m_BSplineStackTransform;
311  ReducedDimensionBSplineTransformBasePointer m_BSplineDummySubTransform;
312 
314  GridScheduleComputerPointer m_GridScheduleComputer;
315  GridUpsamplerPointer m_GridUpsampler;
316 
318  unsigned int m_SplineOrder;
319 
323 
325  unsigned int InitializeBSplineTransform();
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
This class combines two transforms: an &#39;initial transform&#39; with a &#39;current transform&#39;.
Superclass2::ElastixPointer ElastixPointer
virtual void CreateTransformParametersMap(const ParametersType &param, ParameterMapType *paramsMap) const
Superclass::RegistrationPointer RegistrationPointer
itk::AdvancedBSplineDeformableTransformBase< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionBSplineTransformBaseType
virtual void SetOptimizerScales(const unsigned int edgeWidth)
virtual void IncreaseScale(void)
Deformable transform using a B-spline representation.
BSplineTransformBaseType::SpacingType SpacingType
ReducedDimensionRegionType::IndexType ReducedDimensionIndexType
elx::TransformBase< TElastix > Superclass2
void operator=(const Self &)
itk::Image< PixelType, itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionImageType
itk::AdvancedBSplineDeformableTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(ReducedSpaceDimension), 2 > BSplineTransformQuadraticType
BSplineTransformBaseType::ImagePointer ImagePointer
virtual void WriteToFile(void) const
ElastixType::ParameterMapType ParameterMapType
BSplineTransformBaseType::RegionType RegionType
itk::GridScheduleComputer< CoordRepType, ReducedSpaceDimension > GridScheduleComputerType
A B-spline transform based on the itkStackTransform.
Superclass2::ConfigurationType ConfigurationType
Superclass2::MovingImageType MovingImageType
itk::SmartPointer< const Self > ConstPointer
ImageRegion< itkGetStaticConstMacro(SpaceDimension) > RegionType
std::vector< GridSpacingFactorType > VectorGridSpacingFactorType
BSplineTransformBaseType::PixelType PixelType
BSplineStackTransformType::Pointer BSplineStackTransformPointer
Superclass2::CoordRepType CoordRepType
Superclass2::RegistrationPointer RegistrationPointer
itk::AdvancedBSplineDeformableTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(ReducedSpaceDimension), 1 > BSplineTransformLinearType
virtual void BeforeRegistration(void)
Implements stack of transforms: one for every last dimension index.
elxClassNameMacro("BSplineStackTransform")
itk::AdvancedBSplineDeformableTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(ReducedSpaceDimension), 3 > BSplineTransformCubicType
ElastixType::FixedImageType FixedImageType
virtual void PreComputeGridInformation(void)
This class computes all information about the B-spline grid, given the image information and the desi...
BSplineTransformBaseType::Pointer BSplineTransformBasePointer
Superclass::ElastixType ElastixType
Transform maps points, vectors and covariant vectors from an input space to an output space...
unsigned int InitializeBSplineTransform()
Superclass2::ConfigurationPointer ConfigurationPointer
BSplineTransformBaseType::DirectionType DirectionType
BSplineTransformBaseType::OriginType OriginType
itk::StackTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension), itkGetStaticConstMacro(SpaceDimension) > BSplineStackTransformType
ReducedDimensionBSplineTransformBasePointer m_BSplineDummySubTransform
ReducedDimensionImageType::PointType ReducedDimensionOriginType
Superclass1::NumberOfParametersType NumberOfParametersType
GridScheduleComputerPointer m_GridScheduleComputer
Superclass2::ParameterMapType ParameterMapType
BSplineTransformBaseType::ImageType ImageType
ElastixType::MovingImageType MovingImageType
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
Superclass1::ParametersType ParametersType
Superclass::ElastixPointer ElastixPointer
ElastixType::CoordRepType CoordRepType
Superclass::RegistrationType RegistrationType
ReducedDimensionImageType::DirectionType ReducedDimensionDirectionType
itk::ImageRegion< itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionRegionType
virtual void ReadFromFile(void)
std::vector< std::string > ParameterValueType
BSplineTransformBaseType::SizeType SizeType
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
itk::AdvancedBSplineDeformableTransformBase< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension) > BSplineTransformBaseType
BSplineStackTransformPointer m_BSplineStackTransform
Superclass::NumberOfParametersType NumberOfParametersType
Superclass2::RegistrationType RegistrationType
BSplineTransformBaseType::IndexType IndexType
This class is the elastix base class for all Transforms.
Superclass::ConfigurationType ConfigurationType
GridUpsamplerType::Pointer GridUpsamplerPointer
Superclass2::CombinationTransformType CombinationTransformType
Convenience class for upsampling a B-spline coefficient image.
Superclass::ConfigurationPointer ConfigurationPointer
virtual void BeforeEachResolution(void)
GridScheduleComputerType ::VectorGridSpacingFactorType GridScheduleType
Base class for deformable transform using a B-spline representation.
ReducedDimensionBSplineTransformBaseType::Pointer ReducedDimensionBSplineTransformBasePointer
ReducedDimensionImageType::SpacingType ReducedDimensionSpacingType
Superclass2::FixedImageType FixedImageType
GridScheduleComputerType::Pointer GridScheduleComputerPointer
ReducedDimensionRegionType::SizeType ReducedDimensionSizeType
itk::UpsampleBSplineParametersFilter< ParametersType, ReducedDimensionImageType > GridUpsamplerType
virtual void InitializeTransform(void)


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.13 elastix logo