ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkBSplineSmoothingOnUpdateDisplacementFieldTransform.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 __itkBSplineSmoothingOnUpdateDisplacementFieldTransform_h
19 #define __itkBSplineSmoothingOnUpdateDisplacementFieldTransform_h
20 
22 
24 #include "itkPointSet.h"
25 
26 namespace itk
27 {
28 
51 template<class TScalar, unsigned int NDimensions>
53  public DisplacementFieldTransform<TScalar, NDimensions>
54 {
55 public:
61 
64 
66  itkNewMacro( Self );
67 
69  itkStaticConstMacro( Dimension, unsigned int, NDimensions );
70 
72  typedef typename Superclass::ScalarType ScalarType;
73  typedef typename Superclass::DerivativeType DerivativeType;
74  typedef typename DerivativeType::ValueType DerivativeValueType;
75  typedef typename Superclass::DisplacementFieldType DisplacementFieldType;
76  typedef typename Superclass::DisplacementFieldPointer DisplacementFieldPointer;
77 
80 
85  typedef typename DisplacementFieldType::PixelType DisplacementVectorType;
87  typedef unsigned int SplineOrderType;
93 
104  virtual void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 );
105 
109  itkSetMacro( SplineOrder, SplineOrderType );
110 
114  itkGetConstMacro( SplineOrder, SplineOrderType );
115 
123  itkSetMacro( NumberOfControlPointsForTheUpdateField, ArrayType );
124 
132  itkGetConstMacro( NumberOfControlPointsForTheUpdateField, ArrayType );
133 
140  void SetMeshSizeForTheUpdateField( const ArrayType & );
141 
149  itkSetMacro( NumberOfControlPointsForTheTotalField, ArrayType );
150 
158  itkGetConstMacro( NumberOfControlPointsForTheTotalField, ArrayType );
159 
166  void SetMeshSizeForTheTotalField( const ArrayType & );
167 
171  itkBooleanMacro( EnforceStationaryBoundary );
172  itkSetMacro( EnforceStationaryBoundary, bool );
173  itkGetConstMacro( EnforceStationaryBoundary, bool );
175 
176 protected:
179 
180  void PrintSelf( std::ostream& os, Indent indent ) const;
181 
183  virtual typename LightObject::Pointer InternalClone() const;
184 
188  DisplacementFieldPointer BSplineSmoothDisplacementField( const DisplacementFieldType *, const ArrayType & );
189 
190 private:
191  BSplineSmoothingOnUpdateDisplacementFieldTransform( const Self& ); //purposely not implemented
192  void operator=( const Self& ); //purposely not implemented
193 
198 };
199 
200 } // end namespace itk
201 
202 #if ITK_TEMPLATE_EXPLICIT
203 # include "Templates/itkBSplineSmoothingOnUpdateDisplacementFieldTransform+-.h"
204 #endif
205 
206 #if ITK_TEMPLATE_TXX
207 # include "itkBSplineSmoothingOnUpdateDisplacementFieldTransform.hxx"
208 #endif
209 
210 #endif // __itkBSplineSmoothingOnUpdateDisplacementFieldTransform_h
211