ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkBSplineTransformInitializer.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 itkBSplineTransformInitializer_h
19 #define itkBSplineTransformInitializer_h
20 
21 #include "itkObject.h"
22 #include "itkObjectFactory.h"
23 
24 namespace itk
25 {
40 template<typename TTransform, typename TImage>
41 class ITK_TEMPLATE_EXPORT BSplineTransformInitializer
42 : public Object
43 {
44 public:
45 
48  typedef Object Superclass;
51 
53  itkNewMacro( Self );
54 
57 
59  typedef TTransform TransformType;
60 
62  typedef TImage ImageType;
63  typedef typename ImageType::ConstPointer ImagePointer;
64  typedef typename ImageType::IndexType IndexType;
66  typedef typename ImagePointType::CoordRepType ImagePointCoordRepType;
67 
69  typedef typename TransformType::Pointer TransformPointer;
70  typedef typename TransformType::RegionType RegionType;
71  typedef typename RegionType::SizeType SizeType;
72  typedef typename TransformType::SpacingType SpacingType;
73  typedef typename TransformType::OriginType OriginType;
75  typedef typename TransformType::PhysicalDimensionsType PhysicalDimensionsType;
76  typedef typename TransformType::MeshSizeType MeshSizeType;
77  typedef typename SpacingType::ComponentType SpacingComponentType;
78 
80  itkStaticConstMacro( SpaceDimension, unsigned int,
81  TransformType::SpaceDimension );
82 
84  itkGetConstObjectMacro( Transform, TransformType );
85  itkSetObjectMacro( Transform, TransformType );
87 
89  itkGetConstObjectMacro( Image, ImageType );
90  itkSetConstObjectMacro( Image, ImageType );
92 
96  itkGetConstMacro( TransformDomainMeshSize, MeshSizeType );
97  void SetTransformDomainMeshSize( const MeshSizeType );
99 
101  virtual void InitializeTransform() const;
102 
103 protected:
105  ~BSplineTransformInitializer() ITK_OVERRIDE;
106 
107  virtual void PrintSelf( std::ostream & os, Indent indent ) const ITK_OVERRIDE;
108 
109 private:
110  ITK_DISALLOW_COPY_AND_ASSIGN(BSplineTransformInitializer);
111 
112  ImagePointer m_Image;
113  TransformPointer m_Transform;
114 
115  MeshSizeType m_TransformDomainMeshSize;
116  bool m_SetTransformDomainMeshSizeViaInitializer;
117 
118 }; //class BSplineTransformInitializer
119 } // namespace itk
120 
121 #ifndef ITK_MANUAL_INSTANTIATION
122 #include "itkBSplineTransformInitializer.hxx"
123 #endif
124 
125 #endif /* itkBSplineTransformInitializer_h */
BSplineTransformInitializer is a helper class intended to initialize the control point grid such that...
Light weight base class for most itk classes.
ImagePointType::CoordRepType ImagePointCoordRepType
TransformType::PhysicalDimensionsType PhysicalDimensionsType
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:82
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for most ITK classes.
Definition: itkObject.h:59
Templated n-dimensional image class.
Definition: itkImage.h:75