ITK  4.6.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 TScalar, unsigned int NDimensions>
57  public ConstantVelocityFieldTransform<TScalar, 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 
88  typedef typename DisplacementFieldType::PixelType DisplacementVectorType;
89 
95  typedef unsigned int SplineOrderType;
101 
107  virtual void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 );
108 
113 
117  itkSetMacro( SplineOrder, SplineOrderType );
118  itkGetConstMacro( SplineOrder, SplineOrderType );
120 
128  itkSetMacro( NumberOfControlPointsForTheConstantVelocityField, ArrayType );
129  itkGetConstMacro( NumberOfControlPointsForTheConstantVelocityField, ArrayType );
131 
139  itkSetMacro( NumberOfControlPointsForTheUpdateField, ArrayType );
140  itkGetConstMacro( NumberOfControlPointsForTheUpdateField, ArrayType );
142 
150 
157  void SetMeshSizeForTheUpdateField( const ArrayType & );
158 
159 protected:
162 
163  void PrintSelf( std::ostream &, Indent ) const;
164 
165 private:
166  BSplineExponentialDiffeomorphicTransform( const Self& ); //purposely not implemented
167  void operator=( const Self& ); //purposely not implemented
168 
171 
173 };
174 
175 } // end namespace itk
176 
177 #ifndef ITK_MANUAL_INSTANTIATION
178 # include "itkBSplineExponentialDiffeomorphicTransform.hxx"
179 #endif
180 
181 #endif // __itkBSplineExponentialDiffeomorphicTransform_h
void SetMeshSizeForTheConstantVelocityField(const ArrayType &)
Provides local/dense/high-dimensionality transformation via a a constant velocity field...
PointSet< ConstantVelocityFieldType, Dimension > PointSetType
Light weight base class for most itk classes.
ConstantVelocityFieldTransform< TScalar, NDimensions > Superclass
void PrintSelf(std::ostream &, Indent) const
virtual void UpdateTransformParameters(const DerivativeType &update, ScalarType factor=1.0)
Superclass::DisplacementFieldType DisplacementFieldType
DisplacementFieldType::Pointer DisplacementFieldPointer
void SetMeshSizeForTheUpdateField(const ArrayType &)
Exponential transform using B-splines as the smoothing kernel.
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
Definition: itkPointSet.h:84
Image< OutputVectorType, ConstantVelocityFieldDimension > ConstantVelocityFieldType
virtual ConstantVelocityFieldPointer BSplineSmoothConstantVelocityField(const ConstantVelocityFieldType *, const ArrayType &)
ConstantVelocityFieldType::Pointer ConstantVelocityFieldPointer
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Class which takes a displacement field image and smooths it using B-splines. The inverse can also be ...
DisplacementFieldToBSplineImageFilter< ConstantVelocityFieldType, ConstantVelocityFieldType > BSplineFilterType