ITK  5.0.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:
47  ITK_DISALLOW_COPY_AND_ASSIGN(CenteredVersorTransformInitializer);
48 
53  TFixedImage, TMovingImage >;
54 
57 
59  itkNewMacro(Self);
60 
63 
65  using TransformType = typename Superclass::TransformType;
66  using TransformPointer = typename Superclass::TransformPointer;
67 
69  static constexpr unsigned int InputSpaceDimension = Superclass::InputSpaceDimension;
70  static constexpr unsigned int OutputSpaceDimension = Superclass::OutputSpaceDimension;
71 
73  using FixedImageType = typename Superclass::FixedImageType;
74  using MovingImageType = typename Superclass::MovingImageType;
75 
76  using FixedImagePointer = typename Superclass::FixedImagePointer;
77  using MovingImagePointer = typename Superclass::MovingImagePointer;
78 
80  using OffsetType = typename Superclass::OffsetType;
81 
83  using InputPointType = typename Superclass::InputPointType;
84 
86  using OutputVectorType = typename Superclass::OutputVectorType;
87 
89  void InitializeTransform() override;
90 
93  itkSetMacro(ComputeRotation, bool);
94  itkGetMacro(ComputeRotation, bool);
95  itkBooleanMacro(ComputeRotation);
97 
98 protected:
100  ~CenteredVersorTransformInitializer() override = default;
101 
102  void PrintSelf(std::ostream & os, Indent indent) const override;
103 
104 private:
106 }; //class CenteredVersorTransformInitializer
107 } // namespace itk
108 
109 #ifndef ITK_MANUAL_INSTANTIATION
110 #include "itkCenteredVersorTransformInitializer.hxx"
111 #endif
112 
113 #endif /* itkCenteredVersorTransformInitializer_h */
Light weight base class for most itk classes.
VersorRigid3DTransform of a vector space (e.g. space coordinates)
typename Superclass::OutputVectorType OutputVectorType
typename Superclass::TransformPointer TransformPointer
typename Superclass::MovingImagePointer MovingImagePointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::FixedImagePointer FixedImagePointer
CenteredVersorTransformInitializer is a helper class intended to initialize the center of rotation...
Base class for most ITK classes.
Definition: itkObject.h:60
CenteredTransformInitializer is a helper class intended to initialize the center of rotation and the ...