ITK  5.2.0
Insight Toolkit
itkDisplacementFieldTransformParametersAdaptor.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  * 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 itkDisplacementFieldTransformParametersAdaptor_h
19 #define itkDisplacementFieldTransformParametersAdaptor_h
20 
22 
23 namespace itk
24 {
63 template <typename TTransform>
64 class ITK_TEMPLATE_EXPORT DisplacementFieldTransformParametersAdaptor : public TransformParametersAdaptor<TTransform>
65 {
66 public:
67  ITK_DISALLOW_COPY_AND_MOVE(DisplacementFieldTransformParametersAdaptor);
68 
74 
76  itkNewMacro(Self);
77 
80 
82  using TransformType = TTransform;
83  using TransformPointer = typename TransformType::Pointer;
84  using FixedParametersType = typename TransformType::FixedParametersType;
85  using FixedParametersValueType = typename TransformType::FixedParametersValueType;
86  using ParametersType = typename TransformType::ParametersType;
87  using ParametersValueType = typename TransformType::ParametersValueType;
88 
89  using DisplacementFieldType = typename TransformType::DisplacementFieldType;
93  using SpacingType = typename DisplacementFieldType::SpacingType;
94 
96  static constexpr unsigned int SpaceDimension = TransformType::Dimension;
97 
99  void
100  SetRequiredSize(const SizeType &);
101 
103  virtual const SizeType
104  GetRequiredSize() const;
105 
107  void
108  SetRequiredOrigin(const PointType &);
109 
111  virtual const PointType
112  GetRequiredOrigin() const;
113 
115  void
116  SetRequiredSpacing(const SpacingType &);
117 
119  virtual const SpacingType
120  GetRequiredSpacing() const;
121 
123  void
124  SetRequiredDirection(const DirectionType &);
125 
127  virtual const DirectionType
128  GetRequiredDirection() const;
129 
131  void
132  AdaptTransformParameters() override;
133 
134 protected:
136  ~DisplacementFieldTransformParametersAdaptor() override = default;
137 }; // class DisplacementFieldTransformParametersAdaptor
138 } // namespace itk
139 
140 #ifndef ITK_MANUAL_INSTANTIATION
141 # include "itkDisplacementFieldTransformParametersAdaptor.hxx"
142 #endif
143 
144 #endif /* itkDisplacementFieldTransformParametersAdaptor_h */
itk::DisplacementFieldTransformParametersAdaptor::ParametersType
typename TransformType::ParametersType ParametersType
Definition: itkDisplacementFieldTransformParametersAdaptor.h:86
itk::GTest::TypedefsAndConstructors::Dimension2::DirectionType
ImageBaseType::DirectionType DirectionType
Definition: itkGTestTypedefsAndConstructors.h:52
itk::GTest::TypedefsAndConstructors::Dimension2::PointType
ImageBaseType::PointType PointType
Definition: itkGTestTypedefsAndConstructors.h:51
itk::DisplacementFieldTransformParametersAdaptor::FixedParametersType
typename TransformType::FixedParametersType FixedParametersType
Definition: itkDisplacementFieldTransformParametersAdaptor.h:84
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::SmartPointer< Self >
itk::DisplacementFieldTransformParametersAdaptor
DisplacementFieldTransformParametersAdaptor is a helper class intended to definition.
Definition: itkDisplacementFieldTransformParametersAdaptor.h:64
itk::DisplacementFieldTransformParametersAdaptor::PointType
typename DisplacementFieldType::PointType PointType
Definition: itkDisplacementFieldTransformParametersAdaptor.h:90
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::DisplacementFieldTransformParametersAdaptor::ParametersValueType
typename TransformType::ParametersValueType ParametersValueType
Definition: itkDisplacementFieldTransformParametersAdaptor.h:87
itk::DisplacementFieldTransformParametersAdaptor::SizeType
typename DisplacementFieldType::SizeType SizeType
Definition: itkDisplacementFieldTransformParametersAdaptor.h:91
itk::DisplacementFieldTransformParametersAdaptor::TransformType
TTransform TransformType
Definition: itkDisplacementFieldTransformParametersAdaptor.h:82
itk::DisplacementFieldTransformParametersAdaptor::FixedParametersValueType
typename TransformType::FixedParametersValueType FixedParametersValueType
Definition: itkDisplacementFieldTransformParametersAdaptor.h:85
itk::TransformParametersAdaptor
Base helper class intended for multi-resolution image registration.
Definition: itkTransformParametersAdaptor.h:55
itkTransformParametersAdaptor.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::DisplacementFieldTransformParametersAdaptor::SpacingType
typename DisplacementFieldType::SpacingType SpacingType
Definition: itkDisplacementFieldTransformParametersAdaptor.h:93
itk::DisplacementFieldTransformParametersAdaptor::TransformPointer
typename TransformType::Pointer TransformPointer
Definition: itkDisplacementFieldTransformParametersAdaptor.h:83
itk::DisplacementFieldTransformParametersAdaptor::DirectionType
typename DisplacementFieldType::DirectionType DirectionType
Definition: itkDisplacementFieldTransformParametersAdaptor.h:92
itk::GTest::TypedefsAndConstructors::Dimension2::Dimension
constexpr unsigned int Dimension
Definition: itkGTestTypedefsAndConstructors.h:44
itk::DisplacementFieldTransformParametersAdaptor::DisplacementFieldType
typename TransformType::DisplacementFieldType DisplacementFieldType
Definition: itkDisplacementFieldTransformParametersAdaptor.h:89