ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkConstantVelocityFieldTransform.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 __itkConstantVelocityFieldTransform_h
19 #define __itkConstantVelocityFieldTransform_h
20 
22 
23 namespace itk
24 {
25 
35 template
36 <class TScalar, unsigned int NDimensions>
38  public DisplacementFieldTransform<TScalar, NDimensions>
39 {
40 public:
46 
49 
51  itkNewMacro( Self );
52 
55 
58 
62 
65 
68 
72 
76 
79 
82 
84  itkStaticConstMacro( ConstantVelocityFieldDimension, unsigned int, NDimensions );
85 
87  itkStaticConstMacro( Dimension, unsigned int, NDimensions );
88 
91  typedef typename DisplacementFieldType::Pointer DisplacementFieldPointer;
92 
96 
105 
107 
112 
116 
122  itkGetModifiableObjectMacro(ConstantVelocityField, ConstantVelocityFieldType );
124 
125  virtual void SetFixedParameters( const ParametersType & );
126 
130  itkGetModifiableObjectMacro(ConstantVelocityFieldInterpolator, ConstantVelocityFieldInterpolatorType );
132 
134  itkGetConstReferenceMacro( ConstantVelocityFieldSetTime, ModifiedTimeType );
135 
136  virtual void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 );
137 
139  bool GetInverse( Self *inverse ) const;
140 
143 
146  virtual void IntegrateVelocityField();
147 
148  // Set/get compute number of exp. integration steps automatically
149  itkSetMacro( CalculateNumberOfIntegrationStepsAutomatically, bool );
150  itkGetConstMacro( CalculateNumberOfIntegrationStepsAutomatically, bool );
151  itkBooleanMacro( CalculateNumberOfIntegrationStepsAutomatically );
152 
157  itkSetClampMacro( LowerTimeBound, ScalarType, 0, 1 );
158 
163  itkGetConstMacro( LowerTimeBound, ScalarType );
164 
169  itkSetClampMacro( UpperTimeBound, ScalarType, 0, 1 );
170 
175  itkGetConstMacro( UpperTimeBound, ScalarType );
176 
180  itkSetMacro( NumberOfIntegrationSteps, unsigned int );
181 
185  itkGetConstMacro( NumberOfIntegrationSteps, unsigned int );
186 
187 protected:
188 
191  void PrintSelf( std::ostream& os, Indent indent ) const;
192 
194  virtual typename LightObject::Pointer InternalClone() const;
195 
196  typename DisplacementFieldType::Pointer CopyDisplacementField( const DisplacementFieldType * ) const;
197 
199 
201 
204 
208 
211 
213 
214 private:
215  ConstantVelocityFieldTransform( const Self & ); // purposely not implemented
216  void operator=( const Self & ); // purposely not implemented
217 
222  virtual void SetFixedParametersFromConstantVelocityField() const;
223 
224 };
225 
226 } // end namespace itk
227 
228 #ifndef ITK_MANUAL_INSTANTIATION
229 #include "itkConstantVelocityFieldTransform.hxx"
230 #endif
231 
232 #endif // __itkConstantVelocityFieldTransform_h
Superclass::ParametersValueType ParametersValueType
Provides local/dense/high-dimensionality transformation via a a constant velocity field...
ConstantVelocityFieldType::PixelType PixelType
Superclass::RegionType RegionType
Definition: itkImage.h:140
Light weight base class for most itk classes.
Superclass::OutputVectorPixelType OutputVectorPixelType
ConstantVelocityFieldType::IndexType IndexType
Superclass::InverseTransformBasePointer InverseTransformBasePointer
ConstantVelocityFieldInterpolatorType::Pointer ConstantVelocityFieldInterpolatorPointer
Represent the size (bounds) of a n-dimensional image.
Definition: itkSize.h:52
Superclass::NumberOfParametersType NumberOfParametersType
Superclass::OutputVectorPixelType OutputVectorPixelType
Superclass::InputVectorPixelType InputVectorPixelType
Provides local/dense/high-dimensionaltiy transformation via a a displacement field.
DisplacementFieldType::Pointer CopyDisplacementField(const DisplacementFieldType *) const
Image< OutputVectorType, Dimension > DisplacementFieldType
unsigned long ModifiedTimeType
Definition: itkIntTypes.h:164
ImageVectorOptimizerParametersHelper< ScalarType, Dimension, ConstantVelocityFieldDimension > OptimizerParametersHelperType
DisplacementFieldTransform< TScalar, NDimensions > Superclass
Superclass::DisplacementFieldType DisplacementFieldType
virtual void SetFixedParameters(const ParametersType &)
virtual LightObject::Pointer InternalClone() const
DisplacementFieldType::Pointer DisplacementFieldPointer
void PrintSelf(std::ostream &os, Indent indent) const
bool GetInverse(Self *inverse) const
TPixel PixelType
Definition: itkImage.h:89
ConstantVelocityFieldType::SpacingType SpacingType
virtual InverseTransformBasePointer GetInverseTransform() const
Superclass::ParametersValueType ParametersValueType
VectorInterpolateImageFunction< ConstantVelocityFieldType, ScalarType > ConstantVelocityFieldInterpolatorType
virtual void SetConstantVelocityFieldInterpolator(ConstantVelocityFieldInterpolatorType *)
ConstantVelocityFieldType::RegionType RegionType
Class to hold and manage parameters of type Image&lt;Vector&lt;...&gt;,...&gt;, used in Transforms, etc.
Class to hold and manage different parameter types used during optimization.
Superclass::TransformCategoryType TransformCategoryType
Superclass::IndexType IndexType
Definition: itkImage.h:122
Image< OutputVectorType, ConstantVelocityFieldDimension > ConstantVelocityFieldType
ConstantVelocityFieldType::DirectionType DirectionType
ConstantVelocityFieldInterpolatorPointer m_ConstantVelocityFieldInterpolator
Superclass::NumberOfParametersType NumberOfParametersType
Superclass::OutputVectorType OutputVectorType
virtual void SetConstantVelocityField(ConstantVelocityFieldType *)
ConstantVelocityFieldType::Pointer ConstantVelocityFieldPointer
virtual void SetFixedParametersFromConstantVelocityField() const
ConstantVelocityFieldType::PointType PointType
Superclass::TransformCategoryType TransformCategoryType
virtual void UpdateTransformParameters(const DerivativeType &update, ScalarType factor=1.0)
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for all vector image interpolaters.
Superclass::InputVectorPixelType InputVectorPixelType
Superclass::InverseTransformBasePointer InverseTransformBasePointer
ConstantVelocityFieldType::SizeType SizeType
Templated n-dimensional image class.
Definition: itkImage.h:75