ITK  4.13.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< typename TFixedImage,
40  typename TMovingImage >
41 class ITK_TEMPLATE_EXPORT CenteredVersorTransformInitializer:
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() ITK_OVERRIDE;
91 
94  itkSetMacro(ComputeRotation, bool);
95  itkGetMacro(ComputeRotation, bool);
96  itkBooleanMacro(ComputeRotation);
98 
99 protected:
101  ~CenteredVersorTransformInitializer() ITK_OVERRIDE {}
102 
103  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
104 
105 private:
106  ITK_DISALLOW_COPY_AND_ASSIGN(CenteredVersorTransformInitializer);
107 
108  bool m_ComputeRotation;
109 }; //class CenteredVersorTransformInitializer
110 } // namespace itk
111 
112 #ifndef ITK_MANUAL_INSTANTIATION
113 #include "itkCenteredVersorTransformInitializer.hxx"
114 #endif
115 
116 #endif /* itkCenteredVersorTransformInitializer_h */
CenteredTransformInitializer< VersorRigid3DTransform< double >, TFixedImage, TMovingImage > Superclass
Light weight base class for most itk classes.
VersorRigid3DTransform of a vector space (e.g. space coordinates)
Control indentation during Print() invocation.
Definition: itkIndent.h:49
CenteredVersorTransformInitializer is a helper class intended to initialize the center of rotation...
Base class for most ITK classes.
Definition: itkObject.h:59
CenteredTransformInitializer is a helper class intended to initialize the center of rotation and the ...