ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkTimeVaryingBSplineVelocityFieldTransform.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 itkTimeVaryingBSplineVelocityFieldTransform_h
19 #define itkTimeVaryingBSplineVelocityFieldTransform_h
20 
22 
23 namespace itk
24 {
25 
67 template<typename TParametersValueType, unsigned int NDimensions>
69  public VelocityFieldTransform<TParametersValueType, NDimensions>
70 {
71 public:
72 
78 
81 
83  itkNewMacro( Self );
84 
87 
91 
95 
98 
105 
108 
110  itkStaticConstMacro( Dimension, unsigned int, NDimensions );
111 
113  itkStaticConstMacro( VelocityFieldDimension, unsigned int, NDimensions + 1 );
114 
116  typedef typename VelocityFieldType::SizeType VelocityFieldSizeType;
117  typedef typename VelocityFieldType::SpacingType VelocityFieldSpacingType;
119 
121  typedef typename VelocityFieldType::Pointer TimeVaryingVelocityFieldControlPointLatticePointer;
122 
128 
131  {
132  return this->GetModifiableVelocityField();
133  }
134 
137  {
138  this->SetVelocityField( fieldLattice );
139  }
140 
148  virtual void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 ) ITK_OVERRIDE;
149 
151  virtual void IntegrateVelocityField() ITK_OVERRIDE;
152 
154  itkSetMacro( VelocityFieldOrigin, VelocityFieldPointType );
155  itkGetConstMacro( VelocityFieldOrigin, VelocityFieldPointType );
157 
159  itkSetMacro( VelocityFieldSpacing, VelocityFieldSpacingType );
160  itkGetConstMacro( VelocityFieldSpacing, VelocityFieldSpacingType );
162 
164  itkSetMacro( VelocityFieldSize, VelocityFieldSizeType );
165  itkGetConstMacro( VelocityFieldSize, VelocityFieldSizeType );
167 
169  itkSetMacro( VelocityFieldDirection, VelocityFieldDirectionType );
170  itkGetConstMacro( VelocityFieldDirection, VelocityFieldDirectionType );
172 
174  itkSetMacro( SplineOrder, unsigned int );
175  itkGetConstMacro( SplineOrder, unsigned int );
177 
178 protected:
180  virtual ~TimeVaryingBSplineVelocityFieldTransform();
181  void PrintSelf( std::ostream& os, Indent indent ) const ITK_OVERRIDE;
182 
183 private:
184  TimeVaryingBSplineVelocityFieldTransform( const Self& ); //purposely not implementen
185  void operator=( const Self& ); //purposely not implemented
186 
187  unsigned int m_SplineOrder;
189 
190  VelocityFieldPointType m_VelocityFieldOrigin;
191  VelocityFieldSpacingType m_VelocityFieldSpacing;
192  VelocityFieldDirectionType m_VelocityFieldDirection;
193  VelocityFieldSizeType m_VelocityFieldSize;
194 };
195 
196 } // end namespace itk
197 
198 #ifndef ITK_MANUAL_INSTANTIATION
199 # include "itkTimeVaryingBSplineVelocityFieldTransform.hxx"
200 #endif
201 
202 #endif // itkTimeVaryingBSplineVelocityFieldTransform_h
virtual VelocityFieldType * GetModifiableVelocityField()
Light weight base class for most itk classes.
VectorInterpolateImageFunction< DisplacementFieldType, ScalarType > InterpolatorType
Superclass::DisplacementFieldType DisplacementFieldType
Represent the size (bounds) of a n-dimensional image.
Definition: itkSize.h:52
Superclass::ParametersType ParametersType
virtual void SetTimeVaryingVelocityFieldControlPointLattice(VelocityFieldType *fieldLattice)
Integrate a time-varying velocity field represented by a B-spline control point lattice.
VelocityFieldTransform< TParametersValueType, NDimensions > Superclass
TPixel PixelType
Definition: itkImage.h:89
Superclass::NumberOfParametersType NumberOfParametersType
virtual void SetVelocityField(VelocityFieldType *)
Superclass::InverseTransformBasePointer InverseTransformBasePointer
Image< OutputVectorType, VelocityFieldDimension > VelocityFieldType
VectorInterpolateImageFunction< VelocityFieldType, ScalarType > VelocityFieldInterpolatorType
virtual void UpdateTransformParameters(const DerivativeType &update, ScalarType factor=1.0) override
Superclass::DerivativeType DerivativeType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void IntegrateVelocityField() override
Provides local/dense/high-dimensionality transformation via a a velocity field.
Superclass::FixedParametersType FixedParametersType