ITK  5.4.0
Insight Toolkit
itkCenteredVersorTransformInitializer.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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  * https://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, typename TMovingImage>
40 class ITK_TEMPLATE_EXPORT CenteredVersorTransformInitializer
41  : public CenteredTransformInitializer<VersorRigid3DTransform<double>, TFixedImage, TMovingImage>
42 {
43 public:
44  ITK_DISALLOW_COPY_AND_MOVE(CenteredVersorTransformInitializer);
45 
49 
52 
54  itkNewMacro(Self);
55 
57  itkOverrideGetNameOfClassMacro(CenteredVersorTransformInitializer);
58 
60  using typename Superclass::TransformType;
61  using typename Superclass::TransformPointer;
62 
64  static constexpr unsigned int InputSpaceDimension = Superclass::InputSpaceDimension;
65  static constexpr unsigned int OutputSpaceDimension = Superclass::OutputSpaceDimension;
66 
68  using typename Superclass::FixedImageType;
69  using typename Superclass::MovingImageType;
70 
71  using typename Superclass::FixedImagePointer;
72  using typename Superclass::MovingImagePointer;
73 
75  using typename Superclass::OffsetType;
76 
78  using typename Superclass::InputPointType;
79 
81  using typename Superclass::OutputVectorType;
82 
84  void
85  InitializeTransform() override;
86 
89  itkSetMacro(ComputeRotation, bool);
90  itkGetMacro(ComputeRotation, bool);
91  itkBooleanMacro(ComputeRotation);
94 protected:
96  ~CenteredVersorTransformInitializer() override = default;
97 
98  void
99  PrintSelf(std::ostream & os, Indent indent) const override;
100 
101 private:
102  bool m_ComputeRotation{ false };
103 }; // class CenteredVersorTransformInitializer
104 } // namespace itk
105 
106 #ifndef ITK_MANUAL_INSTANTIATION
107 # include "itkCenteredVersorTransformInitializer.hxx"
108 #endif
109 
110 #endif /* itkCenteredVersorTransformInitializer_h */
itkCenteredTransformInitializer.h
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itk::CenteredVersorTransformInitializer
CenteredVersorTransformInitializer is a helper class intended to initialize the center of rotation,...
Definition: itkCenteredVersorTransformInitializer.h:40
itkVersorRigid3DTransform.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::CenteredTransformInitializer
CenteredTransformInitializer is a helper class intended to initialize the center of rotation and the ...
Definition: itkCenteredTransformInitializer.h:61