ITK  6.0.0
Insight Toolkit
itkBSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor.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 itkBSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor_h
19 #define itkBSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor_h
20 
22 
23 namespace itk
24 {
32 template <typename TTransform>
35 {
36 public:
38 
44 
46  itkNewMacro(Self);
47 
50 
51  using TransformType = TTransform;
52  using ScalarType = typename TransformType::ScalarType;
53  using SplineOrderType = typename TransformType::SplineOrderType;
54  using ArrayType = typename TransformType::ArrayType;
55 
57  static constexpr unsigned int SpaceDimension = TransformType::Dimension;
58 
66  virtual void
67  SetNumberOfControlPointsForTheUpdateField(const ArrayType &);
68 
76  itkGetConstMacro(NumberOfControlPointsForTheUpdateField, ArrayType);
77 
84  void
85  SetMeshSizeForTheUpdateField(const ArrayType &);
86 
94  virtual void
95  SetNumberOfControlPointsForTheTotalField(const ArrayType &);
96 
104  itkGetConstMacro(NumberOfControlPointsForTheTotalField, ArrayType);
105 
112  void
113  SetMeshSizeForTheTotalField(const ArrayType &);
114 
118  void
119  AdaptTransformParameters() override;
120 
121 protected:
124 
125  void
126  PrintSelf(std::ostream & os, Indent indent) const override;
127 
128 private:
129  ArrayType m_NumberOfControlPointsForTheUpdateField{};
130  ArrayType m_NumberOfControlPointsForTheTotalField{};
131  ModifiedTimeType m_NumberOfControlPointsForTheUpdateFieldSetTime{};
132  ModifiedTimeType m_NumberOfControlPointsForTheTotalFieldSetTime{};
133 
134 
135 }; // class BSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor
136 } // namespace itk
137 
138 #ifndef ITK_MANUAL_INSTANTIATION
139 # include "itkBSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor.hxx"
140 #endif
141 
142 #endif /* itkBSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor_h */
itk::ModifiedTimeType
SizeValueType ModifiedTimeType
Definition: itkIntTypes.h:105
itk::BSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor::SplineOrderType
typename TransformType::SplineOrderType SplineOrderType
Definition: itkBSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor.h:53
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::DisplacementFieldTransformParametersAdaptor
DisplacementFieldTransformParametersAdaptor is a helper class intended to definition.
Definition: itkDisplacementFieldTransformParametersAdaptor.h:64
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itk::BSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor
Helper class for multiresolution image registration.
Definition: itkBSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor.h:33
itk::BSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor::ScalarType
typename TransformType::ScalarType ScalarType
Definition: itkBSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor.h:52
itk::BSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor::TransformType
TTransform TransformType
Definition: itkBSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor.h:51
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itkDisplacementFieldTransformParametersAdaptor.h
itk::BSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor::ArrayType
typename TransformType::ArrayType ArrayType
Definition: itkBSplineSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor.h:54
itk::GTest::TypedefsAndConstructors::Dimension2::Dimension
constexpr unsigned int Dimension
Definition: itkGTestTypedefsAndConstructors.h:44