ITK  4.6.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>
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;
65  typedef typename ImageType::PointType ImagePointType;
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;
74  typedef typename TransformType::DirectionType DirectionType;
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  itkSetObjectMacro( Transform, TransformType );
85 
87  itkSetConstObjectMacro( Image, ImageType );
88 
95 
97  virtual void InitializeTransform() const;
98 
99 protected:
102 
103  virtual void PrintSelf( std::ostream & os, Indent indent ) const ITK_OVERRIDE;
104 
105 private:
106  BSplineTransformInitializer( const Self & ); //purposely not
107  // implemented
108  void operator=( const Self & ); //purposely not
109  // implemented
110 
113 
116 
117 }; //class BSplineTransformInitializer
118 } // namespace itk
119 
120 #ifndef ITK_MANUAL_INSTANTIATION
121 #include "itkBSplineTransformInitializer.hxx"
122 #endif
123 
124 #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
void SetTransformDomainMeshSize(const MeshSizeType)
TransformType::PhysicalDimensionsType PhysicalDimensionsType
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:82
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual void InitializeTransform() const
Base class for most ITK classes.
Definition: itkObject.h:57
Templated n-dimensional image class.
Definition: itkImage.h:75