ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkCenteredVersorTransformInitializer.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 __itkCenteredVersorTransformInitializer_h
19 #define __itkCenteredVersorTransformInitializer_h
20 
23 
24 namespace itk
25 {
39 template< class TFixedImage,
40  class TMovingImage >
43  VersorRigid3DTransform< double >,
44  TFixedImage, TMovingImage >
45 {
46 public:
51  TFixedImage, TMovingImage > Superclass;
52 
55 
57  itkNewMacro(Self);
58 
61 
64  typedef typename Superclass::TransformPointer TransformPointer;
65 
67  itkStaticConstMacro(InputSpaceDimension, unsigned int,
68  Superclass::InputSpaceDimension);
69  itkStaticConstMacro(OutputSpaceDimension, unsigned int,
70  Superclass::OutputSpaceDimension);
72 
74  typedef typename Superclass::FixedImageType FixedImageType;
75  typedef typename Superclass::MovingImageType MovingImageType;
76 
77  typedef typename Superclass::FixedImagePointer FixedImagePointer;
78  typedef typename Superclass::MovingImagePointer MovingImagePointer;
79 
81  typedef typename Superclass::OffsetType OffsetType;
82 
84  typedef typename Superclass::InputPointType InputPointType;
85 
87  typedef typename Superclass::OutputVectorType OutputVectorType;
88 
90  void InitializeTransform();
91 
94  itkSetMacro(ComputeRotation, bool);
95  itkGetMacro(ComputeRotation, bool);
96  itkBooleanMacro(ComputeRotation);
97 protected:
101 
102  void PrintSelf(std::ostream & os, Indent indent) const;
103 
104 private:
105  CenteredVersorTransformInitializer(const Self &); //purposely not implemented
106  void operator=(const Self &); //purposely not implemented
107 
109 }; //class CenteredVersorTransformInitializer
110 } // namespace itk
111 
112 // Define instantiation macro for this template.
113 #define ITK_TEMPLATE_CenteredVersorTransformInitializer(_, EXPORT, TypeX, TypeY) \
114  namespace itk \
115  { \
116  _( 2 ( class EXPORT CenteredVersorTransformInitializer< ITK_TEMPLATE_2 TypeX > ) ) \
117  namespace Templates \
118  { \
119  typedef CenteredVersorTransformInitializer< ITK_TEMPLATE_2 TypeX > \
120  CenteredVersorTransformInitializer##TypeY; \
121  } \
122  }
123 
124 #if ITK_TEMPLATE_EXPLICIT
125 #include "Templates/itkCenteredVersorTransformInitializer+-.h"
126 #endif
127 
128 #if ITK_TEMPLATE_TXX
129 #include "itkCenteredVersorTransformInitializer.hxx"
130 #endif
131 
132 #endif /* __itkCenteredVersorTransformInitializer_h */
133