ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkBSplineExponentialDiffeomorphicTransform.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 itkBSplineExponentialDiffeomorphicTransform_h
19 #define itkBSplineExponentialDiffeomorphicTransform_h
20 
23 #include "itkPointSet.h"
24 
25 namespace itk
26 {
27 
55 template<typename TParametersValueType, unsigned int NDimensions>
57  public ConstantVelocityFieldTransform<TParametersValueType, NDimensions>
58 {
59 public:
65 
68 
70  itkNewMacro( Self );
71 
73  itkStaticConstMacro( ConstantVelocityFieldDimension, unsigned int, NDimensions );
74 
76  itkStaticConstMacro( Dimension, unsigned int, NDimensions );
77 
81  typedef typename DerivativeType::ValueType DerivativeValueType;
82 
87 
92 
93  typedef typename DisplacementFieldType::PixelType DisplacementVectorType;
94 
100  typedef unsigned int SplineOrderType;
105 
111  virtual void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 ) ITK_OVERRIDE;
112 
117 
121  itkSetMacro( SplineOrder, SplineOrderType );
122  itkGetConstMacro( SplineOrder, SplineOrderType );
124 
132  itkSetMacro( NumberOfControlPointsForTheConstantVelocityField, ArrayType );
133  itkGetConstMacro( NumberOfControlPointsForTheConstantVelocityField, ArrayType );
135 
143  itkSetMacro( NumberOfControlPointsForTheUpdateField, ArrayType );
144  itkGetConstMacro( NumberOfControlPointsForTheUpdateField, ArrayType );
146 
153  void SetMeshSizeForTheConstantVelocityField( const ArrayType & );
154 
161  void SetMeshSizeForTheUpdateField( const ArrayType & );
162 
163 protected:
165  virtual ~BSplineExponentialDiffeomorphicTransform();
166 
167  void PrintSelf( std::ostream &, Indent ) const ITK_OVERRIDE;
168 
169 private:
170  BSplineExponentialDiffeomorphicTransform( const Self& ) ITK_DELETE_FUNCTION;
171  void operator=( const Self& ) ITK_DELETE_FUNCTION;
172 
175 
176  SplineOrderType m_SplineOrder;
177 };
178 
179 } // end namespace itk
180 
181 #ifndef ITK_MANUAL_INSTANTIATION
182 # include "itkBSplineExponentialDiffeomorphicTransform.hxx"
183 #endif
184 
185 #endif // itkBSplineExponentialDiffeomorphicTransform_h
Provides local/dense/high-dimensionality transformation via a a constant velocity field...
Light weight base class for most itk classes.
ConstantVelocityFieldTransform< TParametersValueType, NDimensions > Superclass
virtual ConstantVelocityFieldPointer BSplineSmoothConstantVelocityField(const ConstantVelocityFieldType *, const ArrayType &)
void SetMeshSizeForTheConstantVelocityField(const ArrayType &)
ConstantVelocityFieldType::Pointer ConstantVelocityFieldPointer
Exponential transform using B-splines as the smoothing kernel.
PointSet< ConstantVelocityFieldType, Dimension > PointSetType
void SetMeshSizeForTheUpdateField(const ArrayType &)
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
Definition: itkPointSet.h:84
Superclass::FixedParametersType FixedParametersType
virtual void UpdateTransformParameters(const DerivativeType &update, ScalarType factor=1.0) override
Superclass::ParametersValueType ParametersValueType
DisplacementFieldToBSplineImageFilter< ConstantVelocityFieldType > BSplineFilterType
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
DisplacementFieldType::Pointer DisplacementFieldPointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::DisplacementFieldType DisplacementFieldType
Class which takes a dense displacement field image and/or a set of points with associated displacemen...
Image< OutputVectorType, ConstantVelocityFieldDimension > ConstantVelocityFieldType
Superclass::FixedParametersValueType FixedParametersValueType
void PrintSelf(std::ostream &, Indent) const override