ITK  4.4.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 
63  typedef typename Superclass::TransformType TransformType;
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);
98 
99 protected:
102 
103  void PrintSelf(std::ostream & os, Indent indent) const;
104 
105 private:
106  CenteredVersorTransformInitializer(const Self &); //purposely not implemented
107  void operator=(const Self &); //purposely not implemented
108 
110 }; //class CenteredVersorTransformInitializer
111 } // namespace itk
112 
113 #ifndef ITK_MANUAL_INSTANTIATION
114 #include "itkCenteredVersorTransformInitializer.hxx"
115 #endif
116 
117 #endif /* __itkCenteredVersorTransformInitializer_h */
118